python-zope.interface: split python3-zope.interface

This commit is contained in:
Michal Vasilek 2023-06-17 21:15:00 +02:00
parent 9f233b2c0f
commit 8a56c5dc7e
3 changed files with 26 additions and 16 deletions

View File

@ -2,9 +2,9 @@
pkgname=python-zope.interface
version=5.5.2
revision=1
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
build_style=python2-module
hostmakedepends="python-setuptools"
makedepends="python-devel"
depends="python-setuptools"
short_desc="Zope interfaces for Python2"
maintainer="Orphaned <orphan@voidlinux.org>"
@ -18,17 +18,6 @@ make_check=no
post_install() {
# zope.interface provides the zope namespace
for py_sitelib in $py2_sitelib $py3_sitelib; do
vinstall src/zope/__init__.py 644 ${py_sitelib}/zope
done
vinstall src/zope/__init__.py 644 ${py2_sitelib}/zope
vlicense LICENSE.txt LICENSE
}
python3-zope.interface_package() {
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}

View File

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

View File

@ -0,0 +1,22 @@
# Template file for 'python3-zope.interface'
pkgname=python3-zope.interface
version=5.5.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
depends="python3-setuptools"
short_desc="Zope interfaces for Python3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ZPL-2.1"
homepage="https://github.com/zopefoundation/zope.interface"
changelog="https://raw.githubusercontent.com/zopefoundation/zope.interface/master/CHANGES.rst"
distfiles="${PYPI_SITE}/z/zope.interface/zope.interface-${version}.tar.gz"
checksum=bfee1f3ff62143819499e348f5b8a7f3aa0259f9aca5e0ddae7391d059dce671
# Tests can't find the package they test
make_check=no
post_install() {
vinstall src/zope/__init__.py 644 ${py3_sitelib}/zope
vlicense LICENSE.txt LICENSE
}