2015-03-31 00:31:03 +02:00
|
|
|
# Template file for 'python-Cython'
|
|
|
|
pkgname=python-Cython
|
2015-10-12 09:00:00 +02:00
|
|
|
version=0.23.4
|
2015-06-21 23:25:25 +02:00
|
|
|
revision=1
|
2015-03-31 00:31:03 +02:00
|
|
|
wrksrc="Cython-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-devel python3.4-devel"
|
|
|
|
makedepends="${hostmakedepends}"
|
|
|
|
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"
|
2015-08-24 00:08:00 +02:00
|
|
|
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
|
2015-10-12 09:00:00 +02:00
|
|
|
checksum=fec42fecee35d6cc02887f1eef4e4952c97402ed2800bfe41bbd9ed1a0730d8e
|
2015-03-31 00:31:03 +02:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# Fix non-executable scripts
|
2015-08-24 00:08:00 +02:00
|
|
|
sed -i '/^#!/d' Cython/{Build/Cythonize,Debugger/{libpython,Cygdb}}.py cython.py
|
2015-03-31 00:31:03 +02:00
|
|
|
}
|
|
|
|
# Skip build phase, otherwise Cython gets confused when cross compiling
|
|
|
|
do_build() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/bin/*
|
2015-08-24 00:08:00 +02:00
|
|
|
for f in cygdb cython cythonize; do
|
|
|
|
vbin build-2.7/scripts-2.7/${f}
|
|
|
|
vbin build-3.4/scripts-3.4/${f} ${f}3
|
2015-03-31 00:31:03 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|