void-packages/srcpkgs/python-zope.interface/template

43 lines
1.3 KiB
Bash

# Template file for 'python-zope.interface'
pkgname=python-zope.interface
version=4.3.2
revision=2
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="zope"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-setuptools"
short_desc="Zope interfaces for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://pypi.python.org/pypi/zope.interface"
license="ZPL-2.1"
distfiles="${PYPI_SITE}/z/zope.interface/zope.interface-${version}.tar.gz"
checksum=6a0e224a052e3ce27b3a7b1300a24747513f7a507217fcc2a4cb02eb92945cee
post_install() {
# delete C source
find ${DESTDIR} -type f -name '*.c' -delete
# zope.interface provides the zope namespace
for pyver in $python_versions; do
vinstall src/zope/__init__.py 644 usr/lib/python${pyver}/site-packages/zope
done
vlicense LICENSE.txt LICENSE
}
python3-zope.interface_package() {
pycompile_module="zope"
replaces="python3.4-zope.interface>=0"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}
python3.4-zope.interface_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-zope.interface>=${version}_${revision}"
}