--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX arpack-autotools.patch 9250 RMD160 c7cddd949dcde963ff825a276160edb5dde70ad2 SHA1 fde3a89bed5ca0d80a71a64a2df8c91ce7e29938 SHA256 bdcc1ebd5e339704ac35f208a51b184f5d37bee577b18f14fc937374d8a29289
+MD5 ddb1496cbf4c282e24f0549acab0b155 files/arpack-autotools.patch 9250
+RMD160 c7cddd949dcde963ff825a276160edb5dde70ad2 files/arpack-autotools.patch 9250
+SHA256 bdcc1ebd5e339704ac35f208a51b184f5d37bee577b18f14fc937374d8a29289 files/arpack-autotools.patch 9250
+DIST arpack96.tar.gz 636865 RMD160 3d1c1c307223961506066f895b7ab291861e73fe SHA1 3f91de2b39b484bc8365f8048c9eb109e0306e1c SHA256 c6a47eca30a256cbae60e69c606251b84b6a0f352ba527b2dcbd4789ce85ecfc
+DIST parpack96.tar.gz 509316 RMD160 224d61ef7ff9eec5f59b747d669f3deb74eb2ba5 SHA1 ebcb4de09639a2faa929bb1a46ba7350d1aa58da SHA256 3b6a1ceec06f14e2a06c323721baa908c2f7823d1da79cdfd3f91961f8b6b926
+DIST patch.tar.gz 226473 RMD160 4ccda2de8dc04c9ecb0ea722f230f5dd5c981154 SHA1 9fc6db4180d516d834d959a5f079e63f174f98fa SHA256 af8914d60af47e49fbad55812d0a5d0a7040fba90c93e5ef1a8d88d32027d3ad
+DIST ppatch.tar.gz 253097 RMD160 d1d42293fa98864060189410e9619484682bb176 SHA1 da11e982c359576722ae3f6fd17f15d36a0ac76a SHA256 3422c0916ff74a1c980ac4b79552357af56cd84e81102ac67928b80e913a580f
+DIST tutorial.ps.gz 105599 RMD160 aaba42a6d5ce212e56f312d6187ba932d3b674b7 SHA1 70961d4e3463d012b33a1bbe25b5761d2a25a4d0 SHA256 2f745fe80b0a4fcdf1c273995ed67bc6cf03684ccbaa44442ad1187ea41b81c0
+DIST ug.ps.gz 248543 RMD160 29911161dbc7f496ee16db3c98047dae0be51da2 SHA1 6ad34e7ddee64a340e756d55690a2f4e4f46e767 SHA256 ff1faac74bfc42442955906132756ecd7f0034803898d507dbd1bc960f6f4ab0
+EBUILD arpack-96.ebuild 2425 RMD160 844da134b09650c5f25d57145c95aff46297e3f0 SHA1 a0e8376d8e18ebbaca1be9c9306c3f0be36d0d0e SHA256 175bf4b57f3eceff9a1ee9a7309d361901bd373b2e6d33ff14cc25f0ee7c430d
+MD5 cdd04f21819911dc98cc0ad5e84a96df arpack-96.ebuild 2425
+RMD160 844da134b09650c5f25d57145c95aff46297e3f0 arpack-96.ebuild 2425
+SHA256 175bf4b57f3eceff9a1ee9a7309d361901bd373b2e6d33ff14cc25f0ee7c430d arpack-96.ebuild 2425
+MISC ChangeLog 461 RMD160 084c4eb52b8db0414a6ec7b0a987f2256a9477ca SHA1 6a9d4725599977ca310472730e86ac8947b2a6f3 SHA256 e67f00fb507ca21b5dad1e027553da21c927066f1c94f2c08e9c7b00cf562bfe
+MD5 c776f849a9522ad90f6ec8a31e064e5d ChangeLog 461
+RMD160 084c4eb52b8db0414a6ec7b0a987f2256a9477ca ChangeLog 461
+SHA256 e67f00fb507ca21b5dad1e027553da21c927066f1c94f2c08e9c7b00cf562bfe ChangeLog 461
+MISC metadata.xml 783 RMD160 32b72a8ead2943359dc32f1a26792bb30c1204ae SHA1 0b2d3050b2b9381aaf0802b9e2766c6a904225d4 SHA256 f2242db1d9196d1c81aee49b2db5db3d7e77f369671bf8c49fe2d09c56ec1673
+MD5 1b6ce3df65ed45c0a8d8c5b1b70e2702 metadata.xml 783
+RMD160 32b72a8ead2943359dc32f1a26792bb30c1204ae metadata.xml 783
+SHA256 f2242db1d9196d1c81aee49b2db5db3d7e77f369671bf8c49fe2d09c56ec1673 metadata.xml 783
+MD5 35f0ceb0e081833a9e319ce91b06a3a8 files/digest-arpack-96 1320
+RMD160 34fd0a5c999db47d20df58992b08c07a35d9e3f2 files/digest-arpack-96 1320
+SHA256 808e451aaf667943f559972bf12f0eec89a42f6501cc538ed15fc490cdbda9ea files/digest-arpack-96 1320
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFGAq3h1ycZbhPLE2ARAheRAJ0dOC2rPMqvZoJWN/tdbpjuv1vxuQCdFHLj
+m3ZUnTVP1RCDWFG737mzsm0=
+=1yaE
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/arpack-96.ebuild,v 1.1 2007/03/22 16:24:55 bicatali Exp $
+
+inherit eutils autotools fortran
+
+DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems."
+HOMEPAGE="http://www.caam.rice.edu/software/ARPACK"
+SRC_URI="http://www.caam.rice.edu/software/ARPACK/SRC/${PN}${PV}.tar.gz
+ http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz
+ http://www.caam.rice.edu/software/ARPACK/SRC/p${PN}${PV}.tar.gz
+ http://www.caam.rice.edu/software/ARPACK/SRC/ppatch.tar.gz
+ doc? ( http://www.caam.rice.edu/software/ARPACK/SRC/ug.ps.gz
+ http://www.caam.rice.edu/software/ARPACK/DOCS/tutorial.ps.gz )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="mpi doc examples"
+
+DEPEND="mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND} virtual/lapack"
+
+S=${WORKDIR}/ARPACK
+RESTRICT="mirror"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-autotools.patch
+
+ # fix examples library paths
+ sed -i \
+ -e '/^include/d' \
+ -e 's/$(ALIBS)/-larpack -lblas -llapack/g' \
+ -e 's/$(FFLAGS)/$(LDFLAGS)/g' \
+ EXAMPLES/*/makefile || die "sed failed"
+
+ sed -i \
+ -e '/^include/d' \
+ -e 's/$(PLIBS)/-larpack -lparpack -lblas -llapack -lmpi/g' \
+ -e 's/_$(PLAT)//g' \
+ -e 's/$(PFC)/mpif77/g' \
+ -e 's/$(PFFLAGS)/$(LDFLAGS)/g' \
+ PARPACK/EXAMPLES/MPI/makefile || die "sed failed"
+
+ eautoreconf
+}
+
+src_compile() {
+ econf $(use_enable mpi) || "econf failed"
+ emake || "emake failed"
+}
+
+src_test() {
+ cd "${S}"/EXAMPLES/SIMPLE
+ make simple FC="${FORTRANC}" LDFLAGS="-L${S}/.libs"
+ for p in ss ds sn dn cn zn; do
+ prog=${p}simp
+ LD_LIBRARY_PATH="${S}/.libs" ./${prog} || die "${prog} test failed"
+ rm -f ${prog}
+ done
+ if use mpi; then
+ cd "${S}"/PARPACK/EXAMPLES/MPI
+ make pdndrv FC=mpif77 LDFLAGS="-L${S}/.libs -L${S}/PARPACK/.libs"
+ for p in 1 3; do
+ prog=pdndrv${p}
+ LD_LIBRARY_PATH="${S}/.libs:${S}/PARPACK/.libs" ./${prog} || die "${prog} test failed"
+ rm -f ${prog}
+ done
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc README DOCUMENTS/*.doc
+ newdoc DOCUMENTS/README README.doc
+ use doc && dodoc "${WORKDIR}"/*.ps
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r EXAMPLES
+ if use mpi; then
+ insinto /usr/share/doc/${PF}/EXAMPLES/PARPACK
+ doins -r PARPACK/EXAMPLES/MPI
+ fi
+ fi
+}
--- /dev/null
+diff -Nur ../ARPACK.orig/Makefile.am ./Makefile.am
+--- ../ARPACK.orig/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./Makefile.am 2007-03-22 15:18:07.579698500 +0000
+@@ -0,0 +1,7 @@
++SUBDIRS = UTIL SRC @MPIDIR@
++SUBLIBS = SRC/libarpacksrc.la UTIL/libarpackutil.la
++lib_LTLIBRARIES = libarpack.la
++libarpack_la_SOURCES =
++libarpack_la_LDFLAGS = -version-info 0:0
++libarpack_la_LIBADD = $(SUBLIBS)
++EXTRA_DIST = README
+diff -Nur ../ARPACK.orig/PARPACK/Makefile.am ./PARPACK/Makefile.am
+--- ../ARPACK.orig/PARPACK/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./PARPACK/Makefile.am 2007-03-22 15:17:54.390874250 +0000
+@@ -0,0 +1,6 @@
++SUBDIRS = UTIL SRC
++SUBLIBS = SRC/MPI/libparpacksrcmpi.la UTIL/MPI/libparpackutilmpi.la
++lib_LTLIBRARIES = libparpack.la
++libparpack_la_SOURCES =
++libarpack_la_LDFLAGS = -version-info 0:0
++libparpack_la_LIBADD = $(SUBLIBS) @MPILIBS@
+diff -Nur ../ARPACK.orig/PARPACK/SRC/MPI/Makefile.am ./PARPACK/SRC/MPI/Makefile.am
+--- ../ARPACK.orig/PARPACK/SRC/MPI/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./PARPACK/SRC/MPI/Makefile.am 2007-03-21 21:20:19.771953500 +0000
+@@ -0,0 +1,14 @@
++noinst_LTLIBRARIES = libparpacksrcmpi.la
++libparpacksrcmpi_la_SOURCES = \
++ psgetv0.f \
++ psnaitr.f psnapps.f psnaup2.f psnaupd.f psneigh.f psngets.f \
++ pssaitr.f pssapps.f pssaup2.f pssaupd.f psseigt.f pssgets.f \
++ psneupd.f psseupd.f pslarnv.f pslamch.f psnorm2.f \
++ pdgetv0.f \
++ pdnaitr.f pdnapps.f pdnaup2.f pdnaupd.f pdneigh.f pdngets.f \
++ pdsaitr.f pdsapps.f pdsaup2.f pdsaupd.f pdseigt.f pdsgets.f \
++ pdneupd.f pdseupd.f pdlarnv.f pdlamch.f pdnorm2.f \
++ pcnaitr.f pcnapps.f pcnaup2.f pcnaupd.f pcneigh.f \
++ pcneupd.f pcngets.f pcgetv0.f pscnorm2.f pclarnv.f \
++ pznaitr.f pznapps.f pznaup2.f pznaupd.f pzneigh.f \
++ pzneupd.f pzngets.f pzgetv0.f pdznorm2.f pzlarnv.f
+diff -Nur ../ARPACK.orig/PARPACK/SRC/Makefile.am ./PARPACK/SRC/Makefile.am
+--- ../ARPACK.orig/PARPACK/SRC/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./PARPACK/SRC/Makefile.am 2007-03-21 21:20:19.771953500 +0000
+@@ -0,0 +1 @@
++SUBDIRS = MPI
+diff -Nur ../ARPACK.orig/PARPACK/UTIL/MPI/Makefile.am ./PARPACK/UTIL/MPI/Makefile.am
+--- ../ARPACK.orig/PARPACK/UTIL/MPI/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./PARPACK/UTIL/MPI/Makefile.am 2007-03-21 21:20:19.771953500 +0000
+@@ -0,0 +1,5 @@
++noinst_LTLIBRARIES = libparpackutilmpi.la
++libparpackutilmpi_la_SOURCES = \
++ pivout.f psvout.f psmout.f pdvout.f \
++ pdmout.f pcvout.f pcmout.f pzvout.f pzmout.f
++
+diff -Nur ../ARPACK.orig/PARPACK/UTIL/Makefile.am ./PARPACK/UTIL/Makefile.am
+--- ../ARPACK.orig/PARPACK/UTIL/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./PARPACK/UTIL/Makefile.am 2007-03-21 21:20:19.771953500 +0000
+@@ -0,0 +1 @@
++SUBDIRS = MPI
+\ No newline at end of file
+diff -Nur ../ARPACK.orig/SRC/Makefile.am ./SRC/Makefile.am
+--- ../ARPACK.orig/SRC/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./SRC/Makefile.am 2007-03-21 21:20:19.771953500 +0000
+@@ -0,0 +1,14 @@
++noinst_LTLIBRARIES = libarpacksrc.la
++libarpacksrc_la_SOURCES = \
++ sgetv0.f slaqrb.f sstqrb.f ssortc.f ssortr.f sstatn.f sstats.f \
++ snaitr.f snapps.f snaup2.f snaupd.f snconv.f sneigh.f sngets.f \
++ ssaitr.f ssapps.f ssaup2.f ssaupd.f ssconv.f sseigt.f ssgets.f \
++ sneupd.f sseupd.f ssesrt.f \
++ dgetv0.f dlaqrb.f dstqrb.f dsortc.f dsortr.f dstatn.f dstats.f \
++ dnaitr.f dnapps.f dnaup2.f dnaupd.f dnconv.f dneigh.f dngets.f \
++ dsaitr.f dsapps.f dsaup2.f dsaupd.f dsconv.f dseigt.f dsgets.f \
++ dneupd.f dseupd.f dsesrt.f \
++ cnaitr.f cnapps.f cnaup2.f cnaupd.f cneigh.f cneupd.f cngets.f \
++ cgetv0.f csortc.f cstatn.f \
++ znaitr.f znapps.f znaup2.f znaupd.f zneigh.f zneupd.f zngets.f \
++ zgetv0.f zsortc.f zstatn.f
+diff -Nur ../ARPACK.orig/UTIL/Makefile.am ./UTIL/Makefile.am
+--- ../ARPACK.orig/UTIL/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ ./UTIL/Makefile.am 2007-03-21 21:20:19.775953750 +0000
+@@ -0,0 +1,5 @@
++noinst_LTLIBRARIES = libarpackutil.la
++libarpackutil_la_SOURCES = \
++ icnteq.f icopy.f iset.f iswap.f ivout.f second.f \
++ svout.f smout.f dvout.f dmout.f cvout.f cmout.f \
++ zvout.f zmout.f
+diff -Nur ../ARPACK.orig/acx_mpi.m4 ./acx_mpi.m4
+--- ../ARPACK.orig/acx_mpi.m4 1970-01-01 01:00:00.000000000 +0100
++++ ./acx_mpi.m4 2007-03-21 21:20:19.775953750 +0000
+@@ -0,0 +1,107 @@
++dnl @synopsis ACX_MPI([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
++dnl
++dnl @summary figure out how to compile/link code with MPI
++dnl
++dnl This macro tries to find out how to compile programs that use MPI
++dnl (Message Passing Interface), a standard API for parallel process
++dnl communication (see http://www-unix.mcs.anl.gov/mpi/)
++dnl
++dnl On success, it sets the MPICC, MPICXX, or MPIF77 output variable to
++dnl the name of the MPI compiler, depending upon the current language.
++dnl (This may just be $CC/$CXX/$F77, but is more often something like
++dnl mpicc/mpiCC/mpif77.) It also sets MPILIBS to any libraries that are
++dnl needed for linking MPI (e.g. -lmpi, if a special
++dnl MPICC/MPICXX/MPIF77 was not found).
++dnl
++dnl If you want to compile everything with MPI, you should set:
++dnl
++dnl CC="$MPICC" #OR# CXX="$MPICXX" #OR# F77="$MPIF77"
++dnl LIBS="$MPILIBS $LIBS"
++dnl
++dnl NOTE: The above assumes that you will use $CC (or whatever) for
++dnl linking as well as for compiling. (This is the default for automake
++dnl and most Makefiles.)
++dnl
++dnl The user can force a particular library/compiler by setting the
++dnl MPICC/MPICXX/MPIF77 and/or MPILIBS environment variables.
++dnl
++dnl ACTION-IF-FOUND is a list of shell commands to run if an MPI
++dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
++dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
++dnl default action will define HAVE_MPI.
++dnl
++dnl @category InstalledPackages
++dnl @author Steven G. Johnson <stevenj@alum.mit.edu>
++dnl @version 2005-09-02
++dnl @license GPLWithACException
++
++AC_DEFUN([ACX_MPI], [
++AC_PREREQ(2.50) dnl for AC_LANG_CASE
++
++AC_LANG_CASE([C], [
++ AC_REQUIRE([AC_PROG_CC])
++ AC_ARG_VAR(MPICC,[MPI C compiler command])
++ AC_CHECK_PROGS(MPICC, mpicc hcc mpcc mpcc_r mpxlc cmpicc, $CC)
++ acx_mpi_save_CC="$CC"
++ CC="$MPICC"
++ AC_SUBST(MPICC)
++],
++[C++], [
++ AC_REQUIRE([AC_PROG_CXX])
++ AC_ARG_VAR(MPICXX,[MPI C++ compiler command])
++ AC_CHECK_PROGS(MPICXX, mpic++ mpiCC mpicxx mpCC hcp mpxlC mpxlC_r cmpic++, $CXX)
++ acx_mpi_save_CXX="$CXX"
++ CXX="$MPICXX"
++ AC_SUBST(MPICXX)
++],
++[Fortran 77], [
++ AC_REQUIRE([AC_PROG_F77])
++ AC_ARG_VAR(MPIF77,[MPI Fortran compiler command])
++ AC_CHECK_PROGS(MPIF77, mpif77 hf77 mpxlf mpf77 mpif90 mpf90 mpxlf90 mpxlf95 mpxlf_r cmpifc cmpif90c, $F77)
++ acx_mpi_save_F77="$F77"
++ F77="$MPIF77"
++ AC_SUBST(MPIF77)
++])
++
++if test x = x"$MPILIBS"; then
++ AC_LANG_CASE([C], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=" "])],
++ [C++], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=" "])],
++ [Fortran 77], [AC_MSG_CHECKING([for MPI_Init])
++ AC_TRY_LINK([],[ call MPI_Init], [MPILIBS=" "
++ AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])])
++fi
++if test x = x"$MPILIBS"; then
++ AC_CHECK_LIB(mpi, MPI_Init, [MPILIBS="-lmpi"])
++fi
++if test x = x"$MPILIBS"; then
++ AC_CHECK_LIB(mpich, MPI_Init, [MPILIBS="-lmpich"])
++fi
++
++dnl We have to use AC_TRY_COMPILE and not AC_CHECK_HEADER because the
++dnl latter uses $CPP, not $CC (which may be mpicc).
++AC_LANG_CASE([C], [if test x != x"$MPILIBS"; then
++ AC_MSG_CHECKING([for mpi.h])
++ AC_TRY_COMPILE([#include <mpi.h>],[],[AC_MSG_RESULT(yes)], [MPILIBS=""
++ AC_MSG_RESULT(no)])
++fi],
++[C++], [if test x != x"$MPILIBS"; then
++ AC_MSG_CHECKING([for mpi.h])
++ AC_TRY_COMPILE([#include <mpi.h>],[],[AC_MSG_RESULT(yes)], [MPILIBS=""
++ AC_MSG_RESULT(no)])
++fi])
++
++AC_LANG_CASE([C], [CC="$acx_mpi_save_CC"],
++ [C++], [CXX="$acx_mpi_save_CXX"],
++ [Fortran 77], [F77="$acx_mpi_save_F77"])
++
++AC_SUBST(MPILIBS)
++
++# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
++if test x = x"$MPILIBS"; then
++ $2
++ :
++else
++ ifelse([$1],,[AC_DEFINE(HAVE_MPI,1,[Define if you have the MPI library.])],[$1])
++ :
++fi
++])dnl ACX_MPI
+diff -Nur ../ARPACK.orig/configure.ac ./configure.ac
+--- ../ARPACK.orig/configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ ./configure.ac 2007-03-22 11:17:43.207027250 +0000
+@@ -0,0 +1,45 @@
++# -*- Autoconf -*-
++# Process this file with autoconf to produce a configure script.
++
++AC_PREREQ(2.59)
++AC_INIT(arpack, 96, http://www.caam.rice.edu/software/ARPACK/)
++AM_INIT_AUTOMAKE([foreign])
++
++# Checks for standard programs.
++AC_PROG_F77
++AC_PROG_LIBTOOL
++
++# parpack stuff
++# Provide special option for the MPI version
++AC_MSG_CHECKING([for MPI mode])
++AC_ARG_ENABLE(mpi,
++ [AC_HELP_STRING([--enable-mpi],
++ [Enable MPI parallel processing (off by default)])],
++ use_mpi="yes"
++ AC_MSG_RESULT([yes]),
++ use_mpi="no"
++ AC_MSG_RESULT([no]),
++ use_mpi="no"
++ AC_MSG_RESULT([no]))
++
++sinclude(acx_mpi.m4)
++if test "$use_mpi" = "yes"; then
++ACX_MPI([AC_DEFINE(HAVE_MPI,1,[use MPI library.])]
++ [FC="$MPIF77" && CC="$MPICC" ],
++ use_mpi="no")
++MPIDIR="PARPACK"
++fi
++
++AC_SUBST(MPIDIR)
++
++AC_CONFIG_FILES([
++ UTIL/Makefile
++ SRC/Makefile
++ PARPACK/SRC/MPI/Makefile
++ PARPACK/SRC/Makefile
++ PARPACK/UTIL/MPI/Makefile
++ PARPACK/UTIL/Makefile
++ PARPACK/Makefile
++ Makefile
++ ])
++AC_OUTPUT