diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/arpack |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/arpack')
-rw-r--r-- | community/arpack/PKGBUILD | 50 | ||||
-rw-r--r-- | community/arpack/arpack-2.1-redhat.patch | 55 | ||||
-rw-r--r-- | community/arpack/license.txt | 43 |
3 files changed, 148 insertions, 0 deletions
diff --git a/community/arpack/PKGBUILD b/community/arpack/PKGBUILD new file mode 100644 index 000000000..0f909d106 --- /dev/null +++ b/community/arpack/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 18351 2010-06-02 21:49:21Z shusmann $ +# Contributor: William Rea <sillywilly@gmail.com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=arpack +pkgver=2.1 +pkgrel=4 +pkgdesc="A collection of Fortran77 subroutines designed to solve large scale eigenvalue problems" +arch=('i686' 'x86_64') +url="http://www.caam.rice.edu/software/ARPACK" +license=('custom:BSD') +depends=('glibc' 'gcc-fortran') +source=(http://www.caam.rice.edu/software/ARPACK/SRC/arpack96.tar.gz \ + http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz \ + arpack-2.1-redhat.patch \ + license.txt) +md5sums=('fffaa970198b285676f4156cebc8626e' + '14830d758f195f272b8594a493501fa2' + '95678954de317c92862bb4f9cc9d04ad' + '7caaa0099a5c39726f4478a1bde89495') + +build() { + cd $srcdir/ARPACK + patch -p1 -i ../arpack-2.1-redhat.patch + mkdir static shared + cd shared + for dir in ../SRC ../UTIL; do + make -f $dir/Makefile VPATH=$dir srcdir=$dir FC=gfortran FFLAGS="-fPIC" \ + single double complex complex16 + done + gcc -shared -Wl,-soname,libarpack.so.2 -o libarpack.so.2.1 *.o + cd .. + cd static + for dir in ../SRC ../UTIL; do + make -f $dir/Makefile VPATH=$dir srcdir=$dir FC=gfortran FFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ + all + done + ar rv libarpack.a *.o + ranlib libarpack.a +} +package() { + cd $srcdir/ARPACK + install -d $pkgdir/usr/lib + install -p -m644 $srcdir/ARPACK/static/libarpack.a $pkgdir/usr/lib + install -p -m755 $srcdir/ARPACK/shared/libarpack.so.2.1 $pkgdir/usr/lib + ln -s libarpack.so.2.1 $pkgdir/usr/lib/libarpack.so.2 + ln -s libarpack.so.2 $pkgdir/usr/lib/libarpack.so + install -D -m644 $srcdir/license.txt \ + $pkgdir/usr/share/licenses/$pkgname/license.txt +} diff --git a/community/arpack/arpack-2.1-redhat.patch b/community/arpack/arpack-2.1-redhat.patch new file mode 100644 index 000000000..154bff5d4 --- /dev/null +++ b/community/arpack/arpack-2.1-redhat.patch @@ -0,0 +1,55 @@ +--- ARPACK/ARmake.inc~ 1996-04-26 21:12:57.000000000 +0200 ++++ ARPACK/ARmake.inc 2003-07-19 11:57:10.000000000 +0200 +@@ -25,7 +25,7 @@ + # | other than your home directory. | + # %--------------------------------------% + # +-home = $(HOME)/ARPACK ++home = $(PWD)/. + # + # %--------------------------------------% + # | The platform identifier to suffix to | +@@ -43,7 +43,7 @@ + UTILdir = $(home)/UTIL + SRCdir = $(home)/SRC + # +-DIRS = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir) ++#DIRS = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir) + # + # %-------------------------------------------------------------------% + # | Comment out the previous line and uncomment the following | +@@ -51,13 +51,13 @@ + # | NOTE: ARPACK assumes the use of LAPACK version 2 codes. | + # %-------------------------------------------------------------------% + # +-#DIRS = $(UTILdir) $(SRCdir) ++DIRS = $(UTILdir) $(SRCdir) + # + # %---------------------------------------------------% + # | The name of the libraries to be created/linked to | + # %---------------------------------------------------% + # +-ARPACKLIB = $(home)/libarpack_$(PLAT).a ++ARPACKLIB = $(home)/libarpack.a + LAPACKLIB = + BLASLIB = + # +@@ -112,7 +112,7 @@ + LN = ln + LNFLAGS = -s + +-MAKE = /bin/make ++MAKE = make + + RM = rm + RMFLAGS = -f +--- ARPACK/UTIL/second.f.old 2008-07-08 17:38:51.759444357 +0200 ++++ ARPACK/UTIL/second.f 2008-07-08 17:39:37.056301918 +0200 +@@ -21,7 +21,6 @@ + * .. + * .. External Functions .. + REAL ETIME +- EXTERNAL ETIME + * .. + * .. Executable Statements .. + * diff --git a/community/arpack/license.txt b/community/arpack/license.txt new file mode 100644 index 000000000..11a5aea58 --- /dev/null +++ b/community/arpack/license.txt @@ -0,0 +1,43 @@ +Rice BSD Software License +Permits source and binary redistribution of the software ARPACK and +P_ARPACK for both non-commercial and commercial use. + +Copyright (©) 2001, Rice University +Developed by D.C. Sorensen, R.B. Lehoucq, C. Yang, and K. Maschhoff. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * If you modify the source for these routines we ask that you + change the name of the routine and comment the changes made to + the original. + + * Written notification is provided to the developers of intent to + use this software. Also, we ask that use of ARPACK is properly + cited in any resulting publications or software documentation. + + * Neither the name of Rice University (RICE) nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY RICE AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RICE OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |