2014-07-10 11:37:57 +02:00
|
|
|
# Template file for 'python-zope.interface'
|
|
|
|
pkgname=python-zope.interface
|
2014-12-28 13:10:06 +01:00
|
|
|
version=4.1.2
|
|
|
|
revision=1
|
2014-07-10 11:37:57 +02:00
|
|
|
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"
|
|
|
|
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"
|
2014-12-28 13:10:06 +01:00
|
|
|
distfiles="${PYPI_SITE}/z/zope.interface/zope.interface-${version}.tar.gz"
|
|
|
|
checksum=441fefcac1fbac57c55239452557d3598571ab82395198b2565a29d45d1232f6
|
2014-07-10 11:37:57 +02:00
|
|
|
|
|
|
|
post_install() {
|
2014-12-28 13:10:06 +01:00
|
|
|
# delete C source
|
|
|
|
find ${DESTDIR} -type f -name '*.c' -delete
|
|
|
|
# remove setuptools from requires.txt
|
|
|
|
find ${DESTDIR} -type f -name requires.txt -exec sed -i '/^setuptools$/d' {} \;
|
|
|
|
vlicense LICENSE.txt
|
2014-07-10 11:37:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-zope.interface_package() {
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="zope/interface"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
2014-12-28 13:10:06 +01:00
|
|
|
vlicense ${wrksrc}/LICENSE.txt
|
2014-07-10 11:37:57 +02:00
|
|
|
}
|
|
|
|
}
|