diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/arpack/arpack-3.1.5.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/arpack/arpack-3.1.5.ebuild')
-rw-r--r-- | sci-libs/arpack/arpack-3.1.5.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sci-libs/arpack/arpack-3.1.5.ebuild b/sci-libs/arpack/arpack-3.1.5.ebuild new file mode 100644 index 000000000000..ff9435a97943 --- /dev/null +++ b/sci-libs/arpack/arpack-3.1.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +#AUTOTOOLS_AUTORECONF=true + +inherit autotools-utils eutils flag-o-matic 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=" + http://forge.scilab.org/upload/arpack-ng/files/${MY_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}/${MY_P/_/-}" + +src_configure() { + tc-export PKG_CONFIG + local myeconfargs=( + --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" + --with-lapack="$($(tc-getPKG_CONFIG) --libs lapack)" + $(use_enable mpi) + ) + autotools-utils_src_configure +} + +src_test() { + cp "${S}"/TESTS/testA.mtx "${BUILD_DIR}"/TESTS || die + autotools-utils_src_test +} + +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 +} |