Files
haikuports/dev-python/cython/cython_python-0.29.13.recipe
Gerasim Troeglazov e5b22bd4b7 cython: bump version
2019-09-29 18:09:32 +10:00

63 lines
1.5 KiB
Bash

SUMMARY="Optimising static compiler for Python"
DESCRIPTION="Cython is an optimising static compiler for both the Python \
programming language and the extended Cython programming language (based on \
Pyrex). It makes writing C extensions for Python as easy as Python itself."
HOMEPAGE="https://cython.org/"
COPYRIGHT="2007-2018 Stefan Behnel, Robert Bradshaw, et al."
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://github.com/cython/cython/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="af71d040fa9fa1af0ea2b7a481193776989ae93ae828eb018416cac771aef07f"
SOURCE_FILENAME="cython-$portVersion.tar.gz"
SOURCE_DIR="cython-$portVersion"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
PROVIDES="
cython_python = $portVersion
cmd:cygdb2
cmd:cygdb2.7
cmd:cython2
cmd:cython2.7
cmd:cythonize2
cmd:cythonize2.7
"
REQUIRES="
haiku
cmd:python2
"
REPLACES="
python_cython
"
BUILD_REQUIRES="
haiku_devel
setuptools_python
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:make
cmd:python2
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$(python2 --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
--root=/ --prefix=$prefix --skip-build
for file in cygdb cython cythonize; \
do mv $binDir/$file $binDir/${file}2 ; \
done
}