Arpack: bump, test fix (#2894)

This commit is contained in:
miqlas
2018-08-05 19:38:52 +02:00
committed by waddlesplash
parent c599caa7bb
commit 27bc1393e0

View File

@@ -0,0 +1,98 @@
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="673c8202de996fd3127350725eb1818e534db4e79de56d5dcee8c00768db599a"
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$secondaryArchSuffix
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
# Cleanup
mkdir -p $includeDir
mv $prefix/include/* $includeDir
rmdir $prefix/include
prepareInstalledDevelLib libarpack
packageEntries devel \
$developDir
}
TEST()
{
cd build
make test
}