summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-09-05 19:54:42 +0000
committerJustin Lecher <jlec@gentoo.org>2012-09-05 19:54:42 +0000
commit3a186ec6b1ef16b9fd01785c3c2ed23c437fc089 (patch)
treed37f88a68deec02443bc8cb3527ec657f1771bd4
parentFix handling of EPREFIX with whitespace. Patch by Arfrever. (diff)
downloadgentoo-2-3a186ec6b1ef16b9fd01785c3c2ed23c437fc089.tar.gz
gentoo-2-3a186ec6b1ef16b9fd01785c3c2ed23c437fc089.tar.bz2
gentoo-2-3a186ec6b1ef16b9fd01785c3c2ed23c437fc089.zip
sci-libs/arpack: Version bump
(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)
-rw-r--r--sci-libs/arpack/ChangeLog8
-rw-r--r--sci-libs/arpack/arpack-3.1.2.ebuild88
-rw-r--r--sci-libs/arpack/files/arpack-3.1.2-test.patch36
3 files changed, 131 insertions, 1 deletions
diff --git a/sci-libs/arpack/ChangeLog b/sci-libs/arpack/ChangeLog
index 6fe3635a2b4d..b0738fb7d033 100644
--- a/sci-libs/arpack/ChangeLog
+++ b/sci-libs/arpack/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-libs/arpack
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/ChangeLog,v 1.41 2012/06/13 10:57:51 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/ChangeLog,v 1.42 2012/09/05 19:54:42 jlec Exp $
+
+*arpack-3.1.2 (05 Sep 2012)
+
+ 05 Sep 2012; Justin Lecher <jlec@gentoo.org> +arpack-3.1.2.ebuild,
+ +files/arpack-3.1.2-test.patch:
+ Version bump
*arpack-0.96-r3 (13 Jun 2012)
diff --git a/sci-libs/arpack/arpack-3.1.2.ebuild b/sci-libs/arpack/arpack-3.1.2.ebuild
new file mode 100644
index 000000000000..fff9d4a62e7c
--- /dev/null
+++ b/sci-libs/arpack/arpack-3.1.2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/arpack-3.1.2.ebuild,v 1.1 2012/09/05 19:54:42 jlec Exp $
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils eutils flag-o-matic fortran-2 toolchain-funcs
+
+DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems"
+HOMEPAGE="http://www.caam.rice.edu/software/ARPACK/"
+SRC_URI="
+ http://forge.scilab.org/upload/arpack-ng/files/${PN}-ng_${PV}.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="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc examples mpi static-libs"
+
+RDEPEND="
+ virtual/fortran
+ virtual/blas
+ virtual/lapack
+ mpi? ( virtual/mpi[fortran] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}-ng_${PV}"
+
+PATCHES=( "${FILESDIR}"/${P}-test.patch )
+
+src_configure() {
+ local myeconfargs=(
+ --with-blas="$(pkg-config --libs blas)"
+ --with-lapack="$(pkg-config --libs lapack)"
+ $(use_enable mpi)
+ )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ default
+ pushd EXAMPLES/SIMPLE
+ touch ../../ARmake.inc
+ emake simple FC=$(tc-getFC) LDFLAGS="${LDFLAGS} -L${AUTOTOOLS_BUILD_DIR}/.libs"
+ local prog=
+ for p in ss ds sn dn cn zn; do
+ prog=${p}simp
+ LD_LIBRARY_PATH="${AUTOTOOLS_BUILD_DIR}/.libs" ./${prog} \
+ || die "${prog} test failed"
+ rm -f ${prog} *.o || die
+ done
+ popd
+
+ if use mpi; then
+ pushd "${AUTOTOOLS_BUILD_DIR}"/PARPACK/EXAMPLES/MPI
+ emake \
+ FC=mpif77 \
+ LDFLAGS="${LDFLAGS} -L${AUTOTOOLS_BUILD_DIR}/.libs -L${AUTOTOOLS_BUILD_DIR}/PARPACK/.libs ${LIBS}"
+ for p in 1 3; do
+ prog=pdndrv${p}
+ LD_LIBRARY_PATH="${AUTOTOOLS_BUILD_DIR}/.libs:${AUTOTOOLS_BUILD_DIR}/PARPACK/.libs" \
+ ./${prog} || die "${prog} test failed"
+ rm -f ${prog} *.o || die
+ done
+ popd
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ dodoc 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
+}
diff --git a/sci-libs/arpack/files/arpack-3.1.2-test.patch b/sci-libs/arpack/files/arpack-3.1.2-test.patch
new file mode 100644
index 000000000000..434fdb5b6c1b
--- /dev/null
+++ b/sci-libs/arpack/files/arpack-3.1.2-test.patch
@@ -0,0 +1,36 @@
+ EXAMPLES/SIMPLE/makefile | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/EXAMPLES/SIMPLE/makefile b/EXAMPLES/SIMPLE/makefile
+index 9eb51db..0764b44 100644
+--- a/EXAMPLES/SIMPLE/makefile
++++ b/EXAMPLES/SIMPLE/makefile
+@@ -7,21 +7,21 @@
+ #\SCCS Information: @(#)
+ # FILE: makefile SID: 2.2 DATE OF SID: 9/24/96 RELEASE: 2
+ #
+-include ../../ARmake.inc
++#include ../../ARmake.inc
+ #
+ # simple drivers
+ #
+ simple: sssimp dssimp snsimp dnsimp cnsimp znsimp
+ #
+ sssimp: sssimp.o
+- $(FC) $(FFLAGS) sssimp.o $(ALIBS) -o sssimp
++ $(FC) $(FFLAGS) $(LDFLAGS) sssimp.o $(ALIBS) -o sssimp `pkg-config --libs blas lapack` -larpack
+ dssimp: dssimp.o
+- $(FC) $(FFLAGS) dssimp.o $(ALIBS) -o dssimp
++ $(FC) $(FFLAGS) $(LDFLAGS) dssimp.o $(ALIBS) -o dssimp `pkg-config --libs blas lapack` -larpack
+ snsimp: snsimp.o
+- $(FC) $(FFLAGS) snsimp.o $(ALIBS) -o snsimp
++ $(FC) $(FFLAGS) $(LDFLAGS) snsimp.o $(ALIBS) -o snsimp `pkg-config --libs blas lapack` -larpack
+ dnsimp: dnsimp.o
+- $(FC) $(FFLAGS) dnsimp.o $(ALIBS) -o dnsimp
++ $(FC) $(FFLAGS) $(LDFLAGS) dnsimp.o $(ALIBS) -o dnsimp `pkg-config --libs blas lapack` -larpack
+ cnsimp: cnsimp.o
+- $(FC) $(FFLAGS) cnsimp.o $(ALIBS) -o cnsimp
++ $(FC) $(FFLAGS) $(LDFLAGS) cnsimp.o $(ALIBS) -o cnsimp `pkg-config --libs blas lapack` -larpack
+ znsimp: znsimp.o
+- $(FC) $(FFLAGS) znsimp.o $(ALIBS) -o znsimp
++ $(FC) $(FFLAGS) $(LDFLAGS) znsimp.o $(ALIBS) -o znsimp `pkg-config --libs blas lapack` -larpack