void-packages/srcpkgs/python-Cython/template
2016-05-01 01:14:24 +02:00

41 lines
1.1 KiB
Bash

# Template file for 'python-Cython'
pkgname=python-Cython
version=0.24
revision=2
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"
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
checksum=6de44d8c482128efc12334641347a9c3e5098d807dd3c69e867fa8f84ec2a3f1
alternatives="
cython:cygdb:/usr/bin/cygdb2.7
cython:cython:/usr/bin/cython2.7
cython:cythonize:/usr/bin/cythonize2.7"
# Skip build phase, otherwise Cython gets confused when cross compiling
do_build() {
:
}
python3.4-Cython_package() {
alternatives="
cython:cygdb:/usr/bin/cygdb3.4
cython:cython:/usr/bin/cython3.4
cython:cythonize:/usr/bin/cythonize3.4"
pycompile_version="3.4"
pycompile_module="Cython pyximport cython.py"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
}
}