From 344098bfae0efd298fc4305879dc4a2041962fcb Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 28 Dec 2014 13:10:06 +0100 Subject: [PATCH] python-zope.interface: update to 4.1.2 --- srcpkgs/python-zope.interface/template | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/srcpkgs/python-zope.interface/template b/srcpkgs/python-zope.interface/template index d6ada66ed91..84447257388 100644 --- a/srcpkgs/python-zope.interface/template +++ b/srcpkgs/python-zope.interface/template @@ -1,38 +1,34 @@ # Template file for 'python-zope.interface' pkgname=python-zope.interface -version=4.1.1 -revision=2 +version=4.1.2 +revision=1 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 " 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 -} +distfiles="${PYPI_SITE}/z/zope.interface/zope.interface-${version}.tar.gz" +checksum=441fefcac1fbac57c55239452557d3598571ab82395198b2565a29d45d1232f6 post_install() { - vlicense LICENSE.txt LICENSE + # 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 } 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 + vlicense ${wrksrc}/LICENSE.txt } }