python-virtualenv: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 19:29:29 +02:00
parent 3623bfc796
commit c8ab07e163
2 changed files with 17 additions and 11 deletions

View file

@ -1,12 +1,11 @@
# Template file for 'python-virtualenv'
pkgname=python-virtualenv
version=15.0.3
revision=1
revision=2
noarch=yes
wrksrc="virtualenv-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
pycompile_module="virtualenv.py"
short_desc="Virtual Python2 environment builder"
@ -15,22 +14,28 @@ homepage="https://virtualenv.pypa.io/"
license="MIT"
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
checksum=6d9c760d3fc5fa0894b0f99b9de82a4647e1164f0b700a7f99055034bf548b1d
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2.7"
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3.4-virtualenv_package() {
python3-virtualenv_package() {
noarch=yes
depends="python3.4-setuptools"
pycompile_version="3.4"
depends="python3-setuptools"
pycompile_module="virtualenv.py"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3.4"
replaces="python3.4-virtualenv>=0"
short_desc="${short_desc/Python2/Python3}"
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"
pkg_install() {
vmove usr/bin/virtualenv3.4
vmove usr/lib/python3.4
vmove usr/bin/virtualenv3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}
python3.4-virtualenv_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-virtualenv>=${version}_${revision}"
}

1
srcpkgs/python3-virtualenv Symbolic link
View file

@ -0,0 +1 @@
python-virtualenv