python-pytz: 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 17:20:51 +02:00
parent 10f48e6722
commit edac400a1e
2 changed files with 14 additions and 8 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-pytz' # Template file for 'python-pytz'
pkgname=python-pytz pkgname=python-pytz
version=2016.7 version=2016.7
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="pytz-${version}" wrksrc="pytz-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" hostmakedepends="python-setuptools python3-setuptools"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python tzdata" depends="python tzdata"
pycompile_module="pytz" pycompile_module="pytz"
short_desc="Python2 timezone library" short_desc="Python2 timezone library"
@ -26,14 +25,20 @@ post_install() {
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }
python3.4-pytz_package() { python3-pytz_package() {
noarch=yes noarch=yes
depends="python3.4 tzdata" depends="python3 tzdata"
pycompile_version="3.4"
pycompile_module="pytz" pycompile_module="pytz"
short_desc="${short_desc/Python2/Python3.4}" replaces="python3.4-pytz>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }
} }
python3.4-pytz_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-pytz>=${version}_${revision}"
}

1
srcpkgs/python3-pytz Symbolic link
View File

@ -0,0 +1 @@
python-pytz