a360767c58
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'python-Cython'
|
|
pkgname=python-Cython
|
|
version=0.24.1
|
|
revision=2
|
|
wrksrc="Cython-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-devel python3-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=84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9
|
|
|
|
alternatives="
|
|
cython:cygdb:/usr/bin/cygdb2
|
|
cython:cython:/usr/bin/cython2
|
|
cython:cythonize:/usr/bin/cythonize2"
|
|
|
|
# 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}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-Cython_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Cython>=${version}_${revision}"
|
|
}
|