From 538c854b0ca74beab5135d027c0f8853347600f1 Mon Sep 17 00:00:00 2001 From: bicatali Date: Mon, 16 Jan 2006 19:33:25 +0000 Subject: added package arpack (version -96) git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@61 32389bae-6d03-0410-99cf-db05cde120eb --- sci-libs/arpack/ChangeLog | 10 +++++ sci-libs/arpack/Manifest | 4 ++ sci-libs/arpack/arpack-96.ebuild | 72 ++++++++++++++++++++++++++++++++++ sci-libs/arpack/files/digest-arpack-96 | 4 ++ sci-libs/arpack/metadata.xml | 9 +++++ 5 files changed, 99 insertions(+) create mode 100644 sci-libs/arpack/ChangeLog create mode 100644 sci-libs/arpack/Manifest create mode 100644 sci-libs/arpack/arpack-96.ebuild create mode 100644 sci-libs/arpack/files/digest-arpack-96 create mode 100644 sci-libs/arpack/metadata.xml (limited to 'sci-libs/arpack') diff --git a/sci-libs/arpack/ChangeLog b/sci-libs/arpack/ChangeLog new file mode 100644 index 000000000..3d184e00a --- /dev/null +++ b/sci-libs/arpack/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-libs/arpack +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*arpack-96 (16 Jan 2006) + + 16 Jan 2006; Sebastien Fabbro +arpack-96.ebuild. + Initial import. Close bug . + Thanks David Grant for the ebuild. + diff --git a/sci-libs/arpack/Manifest b/sci-libs/arpack/Manifest new file mode 100644 index 000000000..a7480c0a5 --- /dev/null +++ b/sci-libs/arpack/Manifest @@ -0,0 +1,4 @@ +MD5 85dace53bcf9a2871ab45cb0061fb7c7 ChangeLog 304 +MD5 9be4000505715a365fffbc75d6687398 arpack-96.ebuild 1811 +MD5 78fedce5e2dc0ae0dea2d24fcf9c7745 files/digest-arpack-96 236 +MD5 db6b7bcfdff65546db2b62be1a72fe93 metadata.xml 257 diff --git a/sci-libs/arpack/arpack-96.ebuild b/sci-libs/arpack/arpack-96.ebuild new file mode 100644 index 000000000..2df453685 --- /dev/null +++ b/sci-libs/arpack/arpack-96.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit toolchain-funcs + + +DESCRIPTION="ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems." +HOMEPAGE="http://www.caam.rice.edu/software/ARPACK" +# not a very good name: patch.tar.gz :( +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 + mpi? http://www.caam.rice.edu/software/ARPACK/SRC/p${PN}${PV}.tar.gz + mpi? http://www.caam.rice.edu/software/ARPACK/SRC/ppatch.tar.gz" + +LICENSE="freedist" +SLOT="0" +IUSE="mpi examples" +KEYWORDS="~amd64 ~x86" +DEPEND="virtual/libc + mpi? ( virtual/mpi )" + +S=${WORKDIR}/ARPACK +ARPACKLIB=libarpack.a + +# lapack USE/dependence not included because README file strongly +# recommands using arpack internal lapack (unless is lapack-2, +# which does not exist on gentoo). + +# mpi use is very experimental (basically non working) + + +src_compile() { + local mpiconf="" + if use mpi; then + mpiconf='PFC=$(tc-getF77) PFFLAGS="${FFLAGS}"' + fi + + emake \ + home=${S} \ + FC=$(tc-getF77) \ + AR=$(tc-getAR) \ + RANLIB=$(tc-getRANLIB) \ + FFLAGS="${FFLAGS}" \ + MAKE=/usr/bin/make \ + ARPACKLIB=${S}/${ARPACKLIB} \ + ${mpiconf} \ + all || die "emake failed" +} + +src_install() { + dolib.a ${ARPACKLIB} + dodoc README + docinto DOCUMENTS + dodoc DOCUMENTS/* + + if use examples; then + for mkfile in `ls -d EXAMPLES/*/makefile`; do + sed -i -e "s:\$(ALIBS):-larpack:g" ${mkfile} + done + insinto /usr/share/doc/${P} + doins -r EXAMPLES + if use mpi; then + for mkfile in `ls -d PARPACK/EXAMPLES/*/makefile`; do + sed -i -e "s:\$(PLIBS):-lparpack:g" ${mkfile} + done + insinto /usr/share/doc/${P}/PARPACK + doins -r PARPACK/EXAMPLES + fi + fi + +} diff --git a/sci-libs/arpack/files/digest-arpack-96 b/sci-libs/arpack/files/digest-arpack-96 new file mode 100644 index 000000000..dbf07381f --- /dev/null +++ b/sci-libs/arpack/files/digest-arpack-96 @@ -0,0 +1,4 @@ +MD5 fffaa970198b285676f4156cebc8626e arpack96.tar.gz 636865 +MD5 598d0453b938ccd99a078246be5927f3 parpack96.tar.gz 509316 +MD5 14830d758f195f272b8594a493501fa2 patch.tar.gz 226473 +MD5 e6f0d70dd99f719c0efee351d0875c96 ppatch.tar.gz 253097 diff --git a/sci-libs/arpack/metadata.xml b/sci-libs/arpack/metadata.xml new file mode 100644 index 000000000..45e5acc2f --- /dev/null +++ b/sci-libs/arpack/metadata.xml @@ -0,0 +1,9 @@ + + + + sci + + seb@ist.utl.pt + Sebastien Fabbro + + -- cgit v1.2.3-65-gdbad