summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2017-02-02 19:50:05 -0600
committerMatthias Maier <tamiko@gentoo.org>2017-02-02 21:01:28 -0600
commitbf43a7c4da79d31df267c6cc68b098344800393b (patch)
treef470796456095f7fb4867ff4a7fc8d8be35494e6 /sci-libs/arpack/arpack-3.4.0.ebuild
parentdev-python/pyocr: 0.4.6 bump (diff)
downloadgentoo-bf43a7c4da79d31df267c6cc68b098344800393b.tar.gz
gentoo-bf43a7c4da79d31df267c6cc68b098344800393b.tar.bz2
gentoo-bf43a7c4da79d31df267c6cc68b098344800393b.zip
sci-libs/arpack: version bump to 3.4.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sci-libs/arpack/arpack-3.4.0.ebuild')
-rw-r--r--sci-libs/arpack/arpack-3.4.0.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/sci-libs/arpack/arpack-3.4.0.ebuild b/sci-libs/arpack/arpack-3.4.0.ebuild
new file mode 100644
index 000000000000..bbfd903fc978
--- /dev/null
+++ b/sci-libs/arpack/arpack-3.4.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils fortran-2 toolchain-funcs
+
+MY_P="${PN}-ng_${PV}"
+
+DESCRIPTION="Arnoldi package library to solve large scale eigenvalue problems"
+HOMEPAGE="http://www.caam.rice.edu/software/ARPACK/ http://forge.scilab.org/index.php/p/arpack-ng/"
+SRC_URI="
+ https://github.com/opencollab/${PN}-ng/archive/${PV}.tar.gz -> ${P}.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 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc examples mpi static-libs"
+
+RDEPEND="
+ virtual/blas
+ virtual/lapack
+ mpi? ( virtual/mpi[fortran] )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}-ng-${PV}"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
+ --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" \
+ $(use_enable mpi)
+}
+
+src_test() {
+ cp "${S}"/TESTS/testA.mtx "${BUILD_DIR}"/TESTS || die
+ default
+}
+
+src_install() {
+ default
+
+ 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
+}