35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'python-zope.interface'
|
|
pkgname=python-zope.interface
|
|
version=5.4.0
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
depends="python-setuptools"
|
|
short_desc="Zope interfaces for Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
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=5dba5f530fec3f0988d83b78cc591b58c0b6eb8431a85edd1569a0539a8a5a0e
|
|
# Tests can't find the package they test
|
|
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
|
|
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
|
|
}
|
|
}
|