From 24ff84127fc35b2e585107418ec4c4e5014f9b16 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 31 Mar 2015 00:31:03 +0200 Subject: [PATCH] New package: python-Cython-0.22; replaces Cython Add python3.4 subpkg. --- srcpkgs/Cython/template | 14 -------- srcpkgs/python-Cython/template | 45 ++++++++++++++++++++++++ srcpkgs/{Cython => python-Cython}/update | 1 + srcpkgs/python3.4-Cython | 1 + 4 files changed, 47 insertions(+), 14 deletions(-) delete mode 100644 srcpkgs/Cython/template create mode 100644 srcpkgs/python-Cython/template rename srcpkgs/{Cython => python-Cython}/update (59%) create mode 120000 srcpkgs/python3.4-Cython diff --git a/srcpkgs/Cython/template b/srcpkgs/Cython/template deleted file mode 100644 index 1c3469350f..0000000000 --- a/srcpkgs/Cython/template +++ /dev/null @@ -1,14 +0,0 @@ -# Template file for 'Cython' -pkgname=Cython -version=0.22 -revision=1 -build_style=python-module -hostmakedepends="python-devel" -makedepends="${hostmakedepends}" -pycompile_module="pyximport Cython cython.py" -short_desc="C-Extensions for Python" -maintainer="Juan RP " -homepage="http://cython.org" -license="Apache-2.0" -distfiles="http://www.cython.org/release/${pkgname}-${version}.tar.gz" -checksum=14307e7a69af9a0d0e0024d446af7e51cc0e3e4d0dfb10d36ba837e5e5844015 diff --git a/srcpkgs/python-Cython/template b/srcpkgs/python-Cython/template new file mode 100644 index 0000000000..22ca903d04 --- /dev/null +++ b/srcpkgs/python-Cython/template @@ -0,0 +1,45 @@ +# Template file for 'python-Cython' +pkgname=python-Cython +version=0.22 +revision=2 +wrksrc="Cython-${version}" +build_style=python-module +python_versions="2.7 3.4" +hostmakedepends="python-devel python3.4-devel" +makedepends="${hostmakedepends}" +replaces="Cython<0.22_1" +pycompile_module="Cython pyximport cython.py" +short_desc="C-Extensions for Python2" +maintainer="Alessio Sergi " +homepage="http://cython.org" +license="Apache-2.0" +distfiles="http://www.cython.org/release/Cython-${version}.tar.gz" +checksum=14307e7a69af9a0d0e0024d446af7e51cc0e3e4d0dfb10d36ba837e5e5844015 + +pre_build() { + # Fix non-executable scripts + sed -i '/^#!.*python$/d' Cython/{Build/Cythonize,Debugger/{libpython,Cygdb}}.py cython.py +} +# Skip build phase, otherwise Cython gets confused when cross compiling +do_build() { + : +} +post_install() { + rm -f ${DESTDIR}/usr/bin/* + for f in build-2.7/scripts-2.7/*; do + vbin ${f} + done + for f in build-3.4/scripts-3.4/*; do + vbin ${f}{,3} + done +} + +python3.4-Cython_package() { + pycompile_version="3.4" + pycompile_module="Cython pyximport cython.py" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3.4 + } +} diff --git a/srcpkgs/Cython/update b/srcpkgs/python-Cython/update similarity index 59% rename from srcpkgs/Cython/update rename to srcpkgs/python-Cython/update index 25ef51d109..498bcbc6d8 100644 --- a/srcpkgs/Cython/update +++ b/srcpkgs/python-Cython/update @@ -1 +1,2 @@ +pkgname=Cython ignore="*a* *b* *rc*" diff --git a/srcpkgs/python3.4-Cython b/srcpkgs/python3.4-Cython new file mode 120000 index 0000000000..61695ff83c --- /dev/null +++ b/srcpkgs/python3.4-Cython @@ -0,0 +1 @@ +python-Cython \ No newline at end of file