diff --git a/dev-python/numpy/numpy-1.5.0.recipe b/dev-python/numpy/numpy-1.5.0.recipe deleted file mode 100644 index b99842db5..000000000 --- a/dev-python/numpy/numpy-1.5.0.recipe +++ /dev/null @@ -1,24 +0,0 @@ -DESCRIPTION=" -NumPy is the fundamental package needed for scientific computing with Python. -" -HOMEPAGE="http://numpy.scipy.org/" -SOURCE_URI="http://sourceforge.net/projects/numpy/files/NumPy/1.5.0/numpy-1.5.0.tar.gz/download?" -CHECKSUM_MD5="3a8bfdc434df782d647161c48943ee09" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-lang/python >= 2.6.5" -BUILD() -{ - cd numpy-1.5.0 - python setup.py config - python setup.py build -} - -INSTALL() -{ - cd numpy-1.5.0 - python setup.py install --root=${DESTDIR} -} - -LICENSE="BSD (3-clause)" -COPYRIGHT="2005 NumPy Developers" diff --git a/dev-python/numpy/python3_numpy-1.10.1.recipe b/dev-python/numpy/python3_numpy-1.11.2.recipe similarity index 65% rename from dev-python/numpy/python3_numpy-1.10.1.recipe rename to dev-python/numpy/python3_numpy-1.11.2.recipe index 042df4c72..1a0aeb8ce 100644 --- a/dev-python/numpy/python3_numpy-1.10.1.recipe +++ b/dev-python/numpy/python3_numpy-1.11.2.recipe @@ -7,14 +7,14 @@ 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-2011 NumPy Developers." +COPYRIGHT="2005-2016 NumPy Developers." LICENSE="BSD (3-clause)" REVISION="1" SOURCE_URI="http://downloads.sourceforge.net/project/numpy/NumPy/$portVersion/numpy-$portVersion.tar.gz" -CHECKSUM_SHA256="8b9f453f29ce96a14e625100d3dcf8926301d36c5f622623bf8820e748510858" +CHECKSUM_SHA256="04db2fbd64e2e7c68e740b14402b25af51418fc43a59d9e54172b38b906b0f69" SOURCE_DIR="numpy-$portVersion" -ARCHITECTURES="x86 x86_gcc2 x86_64" +ARCHITECTURES="!x86_gcc2 x86 x86_64" PROVIDES=" python3_numpy = $portVersion @@ -23,22 +23,35 @@ PROVIDES=" REQUIRES=" haiku cmd:python3 + lib:libopenblas " BUILD_REQUIRES=" haiku_devel python3_setuptools + devel:libopenblas " BUILD_PREREQUIRES=" cmd:python3 cmd:git cmd:gcc + cmd:gfortran " +PATCH() +{ + # Check at every update in site.cfg.example! + 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 + $portPackageLinksDir/cmd~python3/bin/python3 setup.py build $jobArgs } INSTALL() @@ -50,6 +63,6 @@ INSTALL() export PYTHONPATH=$installLocation:$PYTHONPATH mkdir -p $installLocation - $python setup.py install \ - --prefix=$prefix + $python setup.py build $jobArgs install \ + --prefix $prefix } diff --git a/dev-python/numpy/python_numpy-1.11.2.recipe b/dev-python/numpy/python_numpy-1.11.2.recipe new file mode 100644 index 000000000..133e3f9f2 --- /dev/null +++ b/dev-python/numpy/python_numpy-1.11.2.recipe @@ -0,0 +1,68 @@ +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="http://downloads.sourceforge.net/project/numpy/NumPy/$portVersion/numpy-$portVersion.tar.gz" +CHECKSUM_SHA256="04db2fbd64e2e7c68e740b14402b25af51418fc43a59d9e54172b38b906b0f69" +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 + python_setuptools + devel:libopenblas + " +BUILD_PREREQUIRES=" + cmd:python2 + cmd:git + cmd:gcc + cmd:gfortran + " + +PATCH() +{ + # Check at every update in site.cfg.example! + 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~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 +}