mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
cython: bump version (#1086)
This commit is contained in:
55
dev-python/cython/python3_cython-0.25.2.recipe
Normal file
55
dev-python/cython/python3_cython-0.25.2.recipe
Normal file
@@ -0,0 +1,55 @@
|
||||
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="http://cython.org/"
|
||||
COPYRIGHT="2007-2016 Stefan Behnel, Robert Bradshaw, et al."
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/b7/67/7e2a817f9e9c773ee3995c1e15204f5d01c8da71882016cac10342ef031b/Cython-0.25.2.tar.gz"
|
||||
CHECKSUM_SHA256="f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306"
|
||||
SOURCE_DIR="Cython-$portVersion"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
python3_cython = $portVersion
|
||||
cmd:cygdb3
|
||||
cmd:cython3
|
||||
cmd:cythonize3
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
python3_setuptools
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
cmd:python3
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
pythonVersion=$(python3 --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
||||
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||
mkdir -p $installLocation
|
||||
|
||||
$portPackageLinksDir/cmd~python3/bin/python3 setup.py install \
|
||||
--prefix=$prefix --skip-build
|
||||
|
||||
for file in cygdb cython cythonize; \
|
||||
do mv $binDir/$file $binDir/${file}3 ; \
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user