void-packages/srcpkgs/python-Cython/template

46 lines
1.3 KiB
Bash

# Template file for 'python-Cython'
pkgname=python-Cython
version=0.29.14
revision=1
wrksrc="Cython-${version}"
build_style=python-module
pycompile_module="Cython pyximport cython.py"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-setuptools"
short_desc="C-Extensions for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://cython.org/"
changelog="https://raw.githubusercontent.com/cython/cython/master/CHANGES.rst"
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
checksum=e4d6bb8703d0319eb04b7319b12ea41580df44fd84d83ccda13ea463c6801414
alternatives="
cython:cygdb:/usr/bin/cygdb2
cython:cython:/usr/bin/cython2
cython:cythonize:/usr/bin/cythonize2"
case "$XBPS_TARGET_MACHINE" in
arm*) broken="leaks host CFLAGS into build, works locally and on travis";;
esac
# Skip build phase, otherwise Cython gets confused when cross compiling
do_build() {
:
}
python3-Cython_package() {
alternatives="
cython:cygdb:/usr/bin/cygdb3
cython:cython:/usr/bin/cython3
cython:cythonize:/usr/bin/cythonize3"
pycompile_module="Cython pyximport cython.py"
short_desc="${short_desc/Python2/Python3}"
depends="python3-setuptools"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
}
}