python-virtualenv: update to 12.0.4
This commit is contained in:
parent
fcf3731d35
commit
3d4c1449c7
|
@ -1,57 +1,54 @@
|
||||||
# Template file for 'python-virtualenv'
|
# Template file for 'python-virtualenv'
|
||||||
pkgname=python-virtualenv
|
pkgname=python-virtualenv
|
||||||
version=1.11.6
|
version=12.0.4
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="${pkgname#*-}-${version}"
|
wrksrc="virtualenv-${version}"
|
||||||
python_versions="2.7 3.4"
|
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
makedepends="python-devel python3.4-devel"
|
depends="python-setuptools"
|
||||||
depends="python python-setuptools"
|
|
||||||
pycompile_module="virtualenv.py"
|
pycompile_module="virtualenv.py"
|
||||||
short_desc="Virtual Python2 environment builder"
|
short_desc="Virtual Python2 environment builder"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="https://virtualenv.pypa.io/"
|
homepage="https://virtualenv.pypa.io/"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="https://pypi.python.org/packages/source/v/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
||||||
checksum=3e7a4c151e2ee97f51db0215bfd2a073b04a91e9786df6cb67c916f16abe04f7
|
checksum=43d886c79e9ddeac0ba50d99d7be154003c5b2df5aca861e8b48cb9aba4c68eb
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
cp -a ${wrksrc} /tmp/python2.7-build
|
cp -a ${wrksrc} /tmp/virtualenv-2.7
|
||||||
cp -a ${wrksrc} /tmp/python3.4-build
|
cp -a ${wrksrc} /tmp/virtualenv-3.4
|
||||||
mv /tmp/python{2.7,3.4}-build ${wrksrc}
|
mv /tmp/virtualenv-{2.7,3.4} ${wrksrc}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cd ${wrksrc}/python3.4-build
|
cd ${wrksrc}/virtualenv-3.4
|
||||||
sed -i 's,virtualenv=,virtualenv3=,' setup.py
|
sed -i 's,virtualenv=,virtualenv3=,' setup.py
|
||||||
sed -i 's,#!/usr/bin/env python,&3.4,' virtualenv.py
|
sed -i 's,#!/usr/bin/env python,&3.4,' virtualenv.py
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
cd ${wrksrc}/python2.7-build
|
cd ${wrksrc}/virtualenv-2.7
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
cd ${wrksrc}/python3.4-build
|
cd ${wrksrc}/virtualenv-3.4
|
||||||
python3.4 setup.py build
|
python3.4 setup.py build
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${wrksrc}/python2.7-build
|
cd ${wrksrc}/virtualenv-2.7
|
||||||
python setup.py install --root=${DESTDIR}
|
python setup.py install --root=${DESTDIR}
|
||||||
|
|
||||||
cd ${wrksrc}/python3.4-build
|
cd ${wrksrc}/virtualenv-3.4
|
||||||
python3.4 setup.py install --root=${DESTDIR}
|
python3.4 setup.py install --root=${DESTDIR}
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
vlicense LICENSE.txt
|
||||||
vlicense LICENSE.txt LICENSE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-virtualenv_package() {
|
python3.4-virtualenv_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4 python3.4-setuptools"
|
depends="python3.4-setuptools"
|
||||||
pycompile_version="3.4"
|
pycompile_version="3.4"
|
||||||
pycompile_module="virtualenv.py"
|
pycompile_module="virtualenv.py"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
short_desc="${short_desc/Python2/Python3.4}"
|
||||||
|
@ -59,6 +56,6 @@ python3.4-virtualenv_package() {
|
||||||
vmove usr/bin/virtualenv-3.4
|
vmove usr/bin/virtualenv-3.4
|
||||||
vmove usr/bin/virtualenv3
|
vmove usr/bin/virtualenv3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3.4
|
||||||
vlicense ${wrksrc}/LICENSE.txt LICENSE
|
vlicense ${wrksrc}/LICENSE.txt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue