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