mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
61 lines
1.6 KiB
Plaintext
61 lines
1.6 KiB
Plaintext
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/"
|
|
SRC_URI="http://downloads.sourceforge.net/project/numpy/NumPy/$portVersion/numpy-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="325e5f2b0b434ecb6e6882c7e1034cc6cdde3eeeea87dbc482575199a6aeef2a"
|
|
LICENSE="BSD (3-clause)"
|
|
COPYRIGHT="2005-2011 NumPy Developers."
|
|
REVISION="1"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
|
|
SOURCE_DIR="numpy-$portVersion"
|
|
|
|
PROVIDES="
|
|
python3_numpy = $portVersion
|
|
cmd:f2py3
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
python3_setuptools
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:python3
|
|
cmd:git
|
|
cmd:gcc
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -rf doc/sphinxext/.git
|
|
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
# GENERIC: all python_setuptools-based installs need this
|
|
python=$portPackageLinksDir/cmd~python3/bin/python3
|
|
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 install \
|
|
--prefix=$prefix
|
|
}
|