From 117a1b72eb3a11bb890ab507b6f237a8b33bf8b5 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Thu, 10 Jul 2014 11:37:57 +0200 Subject: [PATCH] New package: python-zope.interface-4.1.1 with python3.4 subpkg, replaces zope.interface Switch to setuptools; revbump Twisted. --- srcpkgs/Twisted/template | 8 ++++-- srcpkgs/python-zope.interface/template | 38 ++++++++++++++++++++++++++ srcpkgs/python3.4-zope.interface | 1 + srcpkgs/zope.interface/template | 14 ---------- 4 files changed, 45 insertions(+), 16 deletions(-) create mode 100644 srcpkgs/python-zope.interface/template create mode 120000 srcpkgs/python3.4-zope.interface delete mode 100644 srcpkgs/zope.interface/template diff --git a/srcpkgs/Twisted/template b/srcpkgs/Twisted/template index 0d5d3c584cd..66f34b7641b 100644 --- a/srcpkgs/Twisted/template +++ b/srcpkgs/Twisted/template @@ -1,9 +1,9 @@ # Template file for 'Twisted' pkgname=Twisted version=14.0.0 -revision=1 +revision=2 build_style=python-module -hostmakedepends="python-devel zope.interface>=4.0.1 python-crypto python-openssl" +hostmakedepends="python-devel python-zope.interface>=4.0.1 python-crypto python-openssl" makedepends="${hostmakedepends}" depends="${makedepends/python-devel/}" pycompile_module="twisted" @@ -13,3 +13,7 @@ homepage="http://twistedmatrix.com/" license="MIT" distfiles="https://pypi.python.org/packages/source/T/Twisted/Twisted-${version}.tar.bz2" checksum=bdfd961ac2216f5c65b07f2c3a5e5116f6713b8c1cf076c40010c64810d26963 + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python-zope.interface/template b/srcpkgs/python-zope.interface/template new file mode 100644 index 00000000000..d6ada66ed91 --- /dev/null +++ b/srcpkgs/python-zope.interface/template @@ -0,0 +1,38 @@ +# 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 " +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 + } +} diff --git a/srcpkgs/python3.4-zope.interface b/srcpkgs/python3.4-zope.interface new file mode 120000 index 00000000000..48f8d4c160e --- /dev/null +++ b/srcpkgs/python3.4-zope.interface @@ -0,0 +1 @@ +python-zope.interface \ No newline at end of file diff --git a/srcpkgs/zope.interface/template b/srcpkgs/zope.interface/template deleted file mode 100644 index 4e81d6c360b..00000000000 --- a/srcpkgs/zope.interface/template +++ /dev/null @@ -1,14 +0,0 @@ -# Template file for 'zope.interface' -pkgname=zope.interface -version=4.1.1 -revision=1 -build_style=python-module -hostmakedepends="python-distribute" -makedepends="python-devel" -pycompile_module="zope/interface" -short_desc="zope.interface package from Zope 3" -maintainer="Juan RP " -homepage="http://pypi.python.org/pypi/zope.interface" -license="ZPL" -distfiles="http://pypi.python.org/packages/source/z/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=91cba7b7cd7cb82f6f4e023fe77f94dc3df4ae5287fd55def2148dc232d0c7da