From adaf5e69fa1f9a82eeed005c723eac6497021147 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Tue, 12 Dec 2017 21:37:49 +0100 Subject: [PATCH] ARPACK: new recipe (#1889) * ARPACK: new recipe * Reorder --- sci-libs/arpack/arpack-3.5.0.recipe | 93 +++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 sci-libs/arpack/arpack-3.5.0.recipe diff --git a/sci-libs/arpack/arpack-3.5.0.recipe b/sci-libs/arpack/arpack-3.5.0.recipe new file mode 100644 index 000000000..b38abc690 --- /dev/null +++ b/sci-libs/arpack/arpack-3.5.0.recipe @@ -0,0 +1,93 @@ +SUMMARY="Arnoldi package library to solve large scale eigenvalue problems" +DESCRIPTION="ARPACK-NG is a collection of Fortran77 subroutines designed to \ +solve large scale eigenvalue problems. + +Important Features: + +* Reverse Communication Interface. +* Single and Double Precision Real Arithmetic Versions for Symmetric, \ +Non-symmetric, Standard or Generalized Problems. +* Single and Double Precision Complex Arithmetic Versions for Standard or \ +Generalized Problems. +* Routines for Banded Matrices - Standard or Generalized Problems. +* Routines for The Singular Value Decomposition. +* Example driver routines that may be used as templates to implement numerous \ +Shift-Invert strategies for all problem types, data types and precision." +HOMEPAGE="https://github.com/opencollab/arpack-ng" +COPYRIGHT="1996-2008 Rice University + 2001-2011 Scilab Enterprises + 2010 Jordi Guti\érrez Hermoso + 2007 S\ébastien Fabbro" +LICENSE="BSD (3-clause)" +REVISION="1" +SOURCE_URI="https://github.com/opencollab/arpack-ng/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="50f7a3e3aec2e08e732a487919262238f8504c3ef927246ec3495617dde81239" +SOURCE_DIR="arpack-ng-$portVersion" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + arpack$secondaryArchSuffix = $portVersion + lib:libarpack$secondaryArchSuffix = 2.0.0 compat >= 2 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgfortran$secondaryArchSuffix + lib:liblapack$secondaryArchSuffix + lib:libopenblas$secondaryArchSuffix + lib:libquadmath$secondaryArchSuffix + " + +PROVIDES_devel=" + arpack${secondaryArchSuffix}_devel = $portVersion + devel:libarpack$secondaryArchSuffix = 2.0.0 compat >= 2 + " +REQUIRES_devel=" + arpack$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgfortran$secondaryArchSuffix + devel:liblapack$secondaryArchSuffix + devel:libopenblas$secondaryArchSuffix + devel:libquadmath$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:make + cmd:gfortran + cmd:g++$secondaryArchSuffix + " + +defineDebugInfoPackage arpack$secondaryArchSuffix \ + $libDir/libarpack.so.2.0.0 + +BUILD() +{ + mkdir -p build + cd build + cmake .. \ + -DBUILD_SHARED_LIBS=ON \ + $cmakeDirArgs + + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLib libarpack + + packageEntries devel \ + $developDir +} + +TEST() +{ + cd build + make check +}