adjust recipes to use python 3.6, bump revisions.

This commit is contained in:
Jerome Duval
2017-03-27 23:08:42 +02:00
parent 7a7ebe6cae
commit 7204e0f284
10 changed files with 69 additions and 62 deletions

View File

@@ -9,10 +9,11 @@ general-purpose data-base applications."
HOMEPAGE="http://numpy.scipy.org/"
COPYRIGHT="2005-2016 NumPy Developers."
LICENSE="BSD (3-clause)"
REVISION="1"
REVISION="2"
SOURCE_URI="http://downloads.sourceforge.net/project/numpy/NumPy/$portVersion/numpy-$portVersion.tar.gz"
CHECKSUM_SHA256="04db2fbd64e2e7c68e740b14402b25af51418fc43a59d9e54172b38b906b0f69"
SOURCE_DIR="numpy-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
@@ -22,7 +23,7 @@ PROVIDES="
"
REQUIRES="
haiku
cmd:python3
cmd:python$PYTHON_VERSION
lib:libopenblas
"
@@ -32,32 +33,29 @@ BUILD_REQUIRES="
devel:libopenblas
"
BUILD_PREREQUIRES="
cmd:python3
cmd:python$PYTHON_VERSION
cmd:git
cmd:gcc
cmd:gfortran
"
PATCH()
BUILD()
{
# Check at every update in site.cfg.example!
echo "[openblas]" >> site.cfg
echo "[openblas]" > site.cfg
echo "libraries = openblas" >> site.cfg
echo "library_dirs = /system/`echo ${relativeDevelopLibDir}`" >> site.cfg
echo "include_dirs = /system/`echo ${relativeIncludeDir}`" >> site.cfg
echo "runtime_library_dirs = /system/`echo ${relativeLibDir}`" >> site.cfg
}
BUILD()
{
rm -rf doc/sphinxext/.git
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build $jobArgs
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build $jobArgs
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python3/bin/python3
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH