Files
haikuports/dev-python/numpy/python_numpy-1.14.5.recipe
Zoltán Mizsei cde0815ce1 NumPy: bump
2018-07-25 17:57:34 -04:00

68 lines
1.9 KiB
Bash

SUMMARY="Array processing for numbers, strings, records, and objects"
DESCRIPTION="NumPy is a general-purpose array-processing package designed to \
efficiently manipulate large multi-dimensional arrays of arbitrary records \
without sacrificing too much speed for small multi-dimensional arrays.
NumPy is built on the Numeric code base and adds features introduced by \
numarray as well as an extended C-API and the ability to create arrays of \
arbitrary type which also makes NumPy suitable for interfacing with \
general-purpose data-base applications."
HOMEPAGE="http://numpy.scipy.org/"
COPYRIGHT="2005-2016 NumPy Developers."
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/d5/6e/f00492653d0fdf6497a181a1c1d46bbea5a2383e7faf4c8ca6d6f3d2581d/numpy-1.14.5.zip"
CHECKSUM_SHA256="a4a433b3a264dbc9aa9c7c241e87c0358a503ea6394f8737df1683c7c9a102ac"
SOURCE_DIR="numpy-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
PROVIDES="
python_numpy = $portVersion
cmd:f2py2
"
REQUIRES="
haiku
cmd:python2
lib:libopenblas
"
BUILD_REQUIRES="
haiku_devel
setuptools_python
devel:libopenblas
"
BUILD_PREREQUIRES="
cmd:python2
cmd:git
cmd:gcc
cmd:gfortran
"
BUILD()
{
# Check at every update in site.cfg.example!
cat > site.cfg << EOF
[openblas]
libraries = openblas
library_dirs = /system/`echo ${relativeDevelopLibDir}`
include_dirs = /system/`echo ${relativeIncludeDir}`
runtime_library_dirs = /system/`echo ${relativeLibDir}`
EOF
rm -rf doc/sphinxext/.git
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build $jobArgs
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python2/bin/python2
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$python setup.py build $jobArgs install \
--prefix $prefix
}