python-zope.component: 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 04:06:55 +02:00
parent 5c5271a1b0
commit feabc2154d
2 changed files with 14 additions and 8 deletions

View file

@ -1,13 +1,12 @@
# Template file for 'python-zope.component' # Template file for 'python-zope.component'
pkgname=python-zope.component pkgname=python-zope.component
version=4.3.0 version=4.3.0
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="${pkgname#*-}-${version}" wrksrc="${pkgname#*-}-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4"
pycompile_module="zope/component" pycompile_module="zope/component"
hostmakedepends="python-setuptools python3.4-setuptools" hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-zope.interface python-zope.event" depends="python-setuptools python-zope.interface python-zope.event"
short_desc="Zope component architecture for Python2" short_desc="Zope component architecture for Python2"
maintainer="Toyam Cox <Vaelatern@gmail.com>" maintainer="Toyam Cox <Vaelatern@gmail.com>"
@ -20,14 +19,20 @@ post_install() {
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }
python3.4-zope.component_package() { python3-zope.component_package() {
noarch=yes noarch=yes
pycompile_version="3.4"
pycompile_module="zope/component" pycompile_module="zope/component"
depends="python3.4-setuptools python3.4-zope.interface python3.4-zope.event" replaces="python3.4-zope.component>=0"
short_desc="${short_desc/Python2/Python3.4}" depends="python3-setuptools python3-zope.interface python3-zope.event"
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-zope.component_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-zope.component>=${version}_${revision}"
}

View file

@ -0,0 +1 @@
python-zope.component