New package: python-Cython-0.22; replaces Cython
Add python3.4 subpkg.
This commit is contained in:
parent
17c0eb5259
commit
24ff84127f
4 changed files with 47 additions and 14 deletions
|
@ -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 <xtraeme@gmail.com>"
|
|
||||||
homepage="http://cython.org"
|
|
||||||
license="Apache-2.0"
|
|
||||||
distfiles="http://www.cython.org/release/${pkgname}-${version}.tar.gz"
|
|
||||||
checksum=14307e7a69af9a0d0e0024d446af7e51cc0e3e4d0dfb10d36ba837e5e5844015
|
|
45
srcpkgs/python-Cython/template
Normal file
45
srcpkgs/python-Cython/template
Normal file
|
@ -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 <al3hex@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
|
@ -1 +1,2 @@
|
||||||
|
pkgname=Cython
|
||||||
ignore="*a* *b* *rc*"
|
ignore="*a* *b* *rc*"
|
1
srcpkgs/python3.4-Cython
Symbolic link
1
srcpkgs/python3.4-Cython
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-Cython
|
Loading…
Reference in a new issue