mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
NumPy: bump
This commit is contained in:
committed by
waddlesplash
parent
e6e92a0a37
commit
cde0815ce1
67
dev-python/numpy/python_numpy-1.14.5.recipe
Normal file
67
dev-python/numpy/python_numpy-1.14.5.recipe
Normal file
@@ -0,0 +1,67 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user