diff options
author | je_fro <je_fro@32389bae-6d03-0410-99cf-db05cde120eb> | 2007-02-23 14:12:26 +0000 |
---|---|---|
committer | je_fro <je_fro@32389bae-6d03-0410-99cf-db05cde120eb> | 2007-02-23 14:12:26 +0000 |
commit | aee556ba0c14156640f354d4059c3d2ac022376b (patch) | |
tree | c89ff9d3c856d7387df2255ea05006a7a7b78b83 /sci-chemistry | |
parent | Fixing apbs-0.5.0 (diff) | |
download | sci-aee556ba0c14156640f354d4059c3d2ac022376b.tar.gz sci-aee556ba0c14156640f354d4059c3d2ac022376b.tar.bz2 sci-aee556ba0c14156640f354d4059c3d2ac022376b.zip |
Fixing apbs-0.5.0
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@497 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/apbs/apbs-0.5.0.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-chemistry/apbs/apbs-0.5.0.ebuild b/sci-chemistry/apbs/apbs-0.5.0.ebuild new file mode 100644 index 000000000..be0a51285 --- /dev/null +++ b/sci-chemistry/apbs/apbs-0.5.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-0.4.0.ebuild,v 1.5 2006/10/12 14:08:14 je_fro Exp $ + +inherit eutils fortran + +MY_P="${P}-source-2" +S="${WORKDIR}"/"${MY_P}" + +DESCRIPTION=" Software for evaluating the electrostatic properties of nanoscale biomolecular systems" +LICENSE="GPL-2" +HOMEPAGE="http://agave.wustl.edu/apbs/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +SLOT="0" +IUSE="blas mpi" +KEYWORDS="~ppc ~x86 ~amd64" + +DEPEND="blas? ( virtual/blas ) + sys-libs/readline + mpi? ( virtual/mpi )" + +FORTRAN="g77 gfortran" + +pkg_setup() { + # It is important that you use the same compiler to compile + # APBS that you used when compiling MPI. + fortran_pkg_setup +} + +src_unpack() { + unpack ${A} +} + +src_compile() { + + # use blas + use blas && local myconf="--with-blas=-lblas" + + use mpi && myconf="${myconf} --with-mpiinc=/usr/include" + + econf $( use_enable python ) ${myconf} || die "configure failed" + + # build + make DESTDIR=${D} || die "make failed" +} + +src_install() { + + # install apbs binary + dobin bin/apbs || die "failed to install apbs binary" + + # fix up and install examples + find ./examples -name 'test.sh' -exec rm -f {} \; || \ + die "Failed to remove test.sh files" + find ./examples -name 'Makefile*' -exec rm -f {} \; || \ + die "Failed to remove Makefiles" + find ./doc -name 'Makefile*' -exec rm -f {} \; || \ + die "Failed to remove Makefiles" + insinto /usr/share/doc/${PF}/examples + doins -r examples/* || die "failed to install examples" + + # install docs + insinto /usr/share/doc/${PF}/html/programmer + doins doc/programmer/* || die "failed to install html docs" + + insinto /usr/share/doc/${PF}/html/tutorial + doins doc/tutorial/* || die "failed to install html docs" + + insinto /usr/share/doc/${PF}/html/user-guide + doins doc/user-guide/* || die "failed to install html docs" +} |