python-chroot: 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-17 10:38:30 +02:00
parent 59ccc14a1a
commit 3325c7fd2c
2 changed files with 18 additions and 13 deletions

View File

@ -1,13 +1,12 @@
# Template file for 'python-chroot' # Template file for 'python-chroot'
pkgname=python-chroot pkgname=python-chroot
version=0.9.15 version=0.9.15
revision=2 revision=3
noarch=yes
wrksrc="pychroot-${version}" wrksrc="pychroot-${version}"
build_style=python-module build_style=python-module
pycompile_module="pychroot" pycompile_module="pychroot"
python_versions="2.7 3.4" hostmakedepends="python-setuptools python3-setuptools python-snakeoil python3-snakeoil"
noarch=yes
hostmakedepends="python-setuptools python3.4-setuptools python-snakeoil python3.4-snakeoil"
depends="python-snakeoil" depends="python-snakeoil"
short_desc="Python2 Library and CLI tool that simplify chroot handling" short_desc="Python2 Library and CLI tool that simplify chroot handling"
maintainer="Toyam Cox <Vaelatern@gmail.com>" maintainer="Toyam Cox <Vaelatern@gmail.com>"
@ -15,22 +14,27 @@ license="BSD"
homepage="https://github.com/pkgcore/pychroot" homepage="https://github.com/pkgcore/pychroot"
distfiles="${PYPI_SITE}/p/pychroot/pychroot-${version}.tar.gz" distfiles="${PYPI_SITE}/p/pychroot/pychroot-${version}.tar.gz"
checksum=d2cf687b9c890fe5adea73d1b248d3d09d3d629d946be1fc6be989eddc9f5152 checksum=d2cf687b9c890fe5adea73d1b248d3d09d3d629d946be1fc6be989eddc9f5152
alternatives="chroot:pychroot:/usr/bin/pychroot2.7" alternatives="chroot:pychroot:/usr/bin/pychroot2"
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }
python3.4-chroot_package() { python3-chroot_package() {
noarch=yes noarch=yes
pycompile_version="3.4" depends="python3-snakeoil"
pycompile_module="pychroot" replaces="python3.4-chroot>=0"
depends="python3.4-snakeoil" short_desc="${short_desc/Python2/Python3}"
short_desc="${short_desc/Python2/Python3.4}" alternatives="chroot:pychroot:/usr/bin/pychroot3"
alternatives="chroot:pychroot:/usr/bin/pychroot3.4"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
vmove usr/bin/pychroot3.4 vmove usr/bin/pychroot3
vlicense LICENSE vlicense LICENSE
} }
} }
python3.4-chroot_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-chroot>=${version}_${revision}"
}

1
srcpkgs/python3-chroot Symbolic link
View File

@ -0,0 +1 @@
python-chroot