diff options
author | Markus Dittrich <markusle@gentoo.org> | 2008-10-11 17:29:21 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2008-10-11 17:29:21 +0000 |
commit | 56a0528c2648bbf78e97e22d0774f73e3e13c498 (patch) | |
tree | d427d0d29743b198f97d2b20f43c7a7c150ed96a /sci-chemistry/apbs/apbs-1.0.0-r1.ebuild | |
parent | ppc stable, bug #231831 (diff) | |
download | gentoo-2-56a0528c2648bbf78e97e22d0774f73e3e13c498.tar.gz gentoo-2-56a0528c2648bbf78e97e22d0774f73e3e13c498.tar.bz2 gentoo-2-56a0528c2648bbf78e97e22d0774f73e3e13c498.zip |
Version bump to pull in updated patch fixing bad install location for docs (see bug #241316). Added patch for ignored LDFLAGS.
(Portage version: 2.2_rc11/cvs/Linux 2.6.26-SENTINEL-2 i686)
Diffstat (limited to 'sci-chemistry/apbs/apbs-1.0.0-r1.ebuild')
-rw-r--r-- | sci-chemistry/apbs/apbs-1.0.0-r1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/sci-chemistry/apbs/apbs-1.0.0-r1.ebuild b/sci-chemistry/apbs/apbs-1.0.0-r1.ebuild new file mode 100644 index 000000000000..61d74bfa4e7a --- /dev/null +++ b/sci-chemistry/apbs/apbs-1.0.0-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.0.0-r1.ebuild,v 1.1 2008/10/11 17:29:20 markusle Exp $ + +inherit eutils fortran autotools + +MY_P="${P}-source" +S="${WORKDIR}"/"${MY_P}" + +DESCRIPTION=" Software for evaluating the electrostatic properties of nanoscale biomolecular systems" +LICENSE="BSD" +HOMEPAGE="http://agave.wustl.edu/apbs/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +SLOT="0" +IUSE="blas mpi python doc" +KEYWORDS="~ppc ~x86 ~amd64" + +DEPEND="blas? ( virtual/blas ) + python? ( dev-lang/python ) + 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} + cd "${S}" + epatch "${FILESDIR}"/${P}-openmpi.patch + epatch "${FILESDIR}"/${P}-install-fix.patch + epatch "${FILESDIR}"/${P}-libmaloc-noinstall.patch + epatch "${FILESDIR}"/${P}-LDFLAGS.patch + eautoreconf +} + +src_compile() { + local myconf="--docdir=/usr/share/doc/${PF}" + use blas && myconf="${myconf} --with-blas=-lblas" + + # check which mpi version is installed and tell configure + if use mpi; then + if has_version sys-cluster/mpich; then + myconf="${myconf} --with-mpich=/usr" + elif has_version sys-cluster/mpich2; then + myconf="${myconf} --with-mpich2=/usr" + elif has_version sys-cluster/lam-mpi; then + myconf="${myconf} --with-lam=/usr" + elif has_version sys-cluster/openmpi; then + myconf="${myconf} --with-openmpi=/usr" + fi + fi || die "Failed to select proper mpi implementation" + + econf $(use_enable python) \ + ${myconf} || die "configure failed" + + emake -j1 || die "make failed" +} + +src_test() { + cd examples && make test \ + || die "Tests failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS INSTALL README NEWS ChangeLog \ + || die "Failed to install docs" +} |