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

39 lines
1.0 KiB
Plaintext

# Template file for 'python-zope.interface'
pkgname=python-zope.interface
version=4.1.1
revision=2
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python"
replaces="zope.interface>=0"
pycompile_module="zope/interface"
short_desc="Zope interfaces for Python2"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://pypi.python.org/pypi/zope.interface"
license="ZPL"
distfiles="https://pypi.python.org/packages/source/z/zope.interface/zope.interface-${version}.tar.gz"
checksum=91cba7b7cd7cb82f6f4e023fe77f94dc3df4ae5287fd55def2148dc232d0c7da
pre_install() {
# delete C sources
find . -name '*.c' -type f -delete
}
post_install() {
vlicense LICENSE.txt LICENSE
}
python3.4-zope.interface_package() {
depends="python3.4"
pycompile_version="3.4"
pycompile_module="zope/interface"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense ${wrksrc}/LICENSE.txt LICENSE
}
}