summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-01-26 10:52:12 +0000
committerJustin Lecher <jlec@gentoo.org>2012-01-26 10:52:12 +0000
commit4d7a084d67fadf970b96e1ecde65af55f39ae4de (patch)
treedef916925c0e9023f183d460cee4b51188d30da7 /sci-libs/arpack
parentDrop firewalled ftp.silug.org from alsaproject mirror list. Timeouts suck. (diff)
downloadgentoo-2-4d7a084d67fadf970b96e1ecde65af55f39ae4de.tar.gz
gentoo-2-4d7a084d67fadf970b96e1ecde65af55f39ae4de.tar.bz2
gentoo-2-4d7a084d67fadf970b96e1ecde65af55f39ae4de.zip
version Bump and new upstream, bundles mostly all downstream patches, old upstream is dead
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/arpack')
-rw-r--r--sci-libs/arpack/ChangeLog9
-rw-r--r--sci-libs/arpack/arpack-3.0.2.ebuild108
-rw-r--r--sci-libs/arpack/metadata.xml4
3 files changed, 118 insertions, 3 deletions
diff --git a/sci-libs/arpack/ChangeLog b/sci-libs/arpack/ChangeLog
index af03827a930e..5a0c8c4b3996 100644
--- a/sci-libs/arpack/ChangeLog
+++ b/sci-libs/arpack/ChangeLog
@@ -1,6 +1,13 @@
# 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.33 2012/01/23 15:29:58 klausman Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/arpack/ChangeLog,v 1.34 2012/01/26 10:52:12 jlec Exp $
+
+*arpack-3.0.2 (26 Jan 2012)
+
+ 26 Jan 2012; Justin Lecher <jlec@gentoo.org> +arpack-3.0.2.ebuild,
+ metadata.xml:
+ version Bump and new upstream, bundles mostly all downstream patches, old
+ upstream is dead
23 Jan 2012; Tobias Klausmann <klausman@gentoo.org> arpack-96-r3.ebuild:
Stable on alpha, bug #388475
diff --git a/sci-libs/arpack/arpack-3.0.2.ebuild b/sci-libs/arpack/arpack-3.0.2.ebuild
new file mode 100644
index 000000000000..2e2ff0f24326
--- /dev/null
+++ b/sci-libs/arpack/arpack-3.0.2.ebuild
@@ -0,0 +1,108 @@
+# 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.0.2.ebuild,v 1.1 2012/01/26 10:52:12 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}_${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 ~sparc ~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}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${PN}-ng-${PV}"
+
+src_prepare() {
+ # fix examples library paths
+ sed \
+ -e '/^include/d' \
+ -e "s:\$(ALIBS):-larpack $(pkg-config --libs blas lapack):g" \
+ -e 's:$(FFLAGS):$(FFLAGS) $(LDFLAGS):g' \
+ -i EXAMPLES/*/makefile || die "sed failed"
+
+ sed \
+ -e '/^include/d' \
+ -e "s:\$(PLIBS):-larpack -lparpack $(pkg-config --libs blas lapack):g" \
+ -e 's:_$(PLAT)::g' \
+ -e 's:$(PFC):mpif77:g' \
+ -e 's:$(PFFLAGS):$(FFLAGS) $(LDFLAGS) $(EXTOBJS):g' \
+ -i PARPACK/EXAMPLES/MPI/makefile || die "sed failed"
+
+ # bug #354993
+ rm -f PARPACK/{SRC,UTIL,EXAMPLES}/MPI/mpif.h
+ #ln -s "${EPREFIX}"/usr/include/mpif*.h PARPACK/SRC/MPI/
+
+ autotools-utils_src_prepare
+}
+
+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() {
+ pushd EXAMPLES/SIMPLE
+ 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 PARPACK/EXAMPLES/MPI
+ emake \
+ FC=mpif77 \
+ LDFLAGS="${LDFLAGS} -L${AUTOTOOLS_BUILD_DIR}/.libs -L${AUTOTOOLS_BUILD_DIR}/PARPACK/.libs ${LIBS}" \
+ pdndrv
+ 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/metadata.xml b/sci-libs/arpack/metadata.xml
index b177f1085672..3ae32bd2b8eb 100644
--- a/sci-libs/arpack/metadata.xml
+++ b/sci-libs/arpack/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>sci</herd>
-<longdescription lang="en">
+ <herd>sci</herd>
+ <longdescription lang="en">
The ARnoldi PACKage is a library of routines capable of solving large scale symmetric,
nonsymmetric, and generalized eigenproblems. The software is designed to compute a few
eigenvalues with user specified features such as those of largest real