diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-24 16:49:51 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-24 16:49:51 +0000 |
commit | dba23a9c17616f8cb8afe0e85a0a8c81dfb15488 (patch) | |
tree | 93a6644ba2254b7fc0faefed27c06cc55e7569af /sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild | |
parent | Moving to sci-chemistry/mpqc (diff) | |
download | gentoo-2-dba23a9c17616f8cb8afe0e85a0a8c81dfb15488.tar.gz gentoo-2-dba23a9c17616f8cb8afe0e85a0a8c81dfb15488.tar.bz2 gentoo-2-dba23a9c17616f8cb8afe0e85a0a8c81dfb15488.zip |
Moved from app-sci/mpqc to sci-chemistry/mpqc.
Diffstat (limited to 'sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild')
-rw-r--r-- | sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild b/sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild new file mode 100644 index 000000000000..43798f00be21 --- /dev/null +++ b/sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/mpqc/mpqc-2.2.2-r1.ebuild,v 1.1 2004/12/24 16:49:51 ribosome Exp $ + +DESCRIPTION="The Massively Parallel Quantum Chemistry Program" +HOMEPAGE="http://www.mpqc.org/" +SRC_URI="mirror://sourceforge/mpqc/${P}.tar.gz + doc? ( mirror://sourceforge/mpqc/${PN}-man-${PV}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +# Should work on x86, amd64 and ppc, at least +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="doc X" + +DEPEND="sys-devel/flex + virtual/blas + virtual/lapack + dev-lang/perl + X? ( virtual/x11 )" + +src_compile() { + CFLAGS_SAVE=${CFLAGS}; CXXFLAGS_SAVE=${CXXFLAGS} + myconf="${myconf} --prefix=/usr" + use X && myconf="${myconf} --x-includes=/usr/X11R6/include \ + --x-libraries=/usr/X11R6/lib" + ./configure ${myconf} || die "configure failed" + sed -e "s:^CFLAGS =.*$:CFLAGS=${CFLAGS_SAVE}:" \ + -e "s:^FFLAGS =.*$:FFLAGS=${CFLAGS_SAVE}:" \ + -e "s:^CXXFLAGS =.*$:CXXFLAGS=${CXXFLAGS_SAVE}:" \ + lib/LocalMakefile > lib/LocalMakefile.foo + mv lib/LocalMakefile.foo lib/LocalMakefile + emake || die "emake failed" +} + +src_install() { + sed -e "s:^prefix=.*$:prefix=${D}/usr:" lib/LocalMakefile \ + > lib/LocalMakefile.foo + mv lib/LocalMakefile.foo lib/LocalMakefile + use doc && doman ${WORKDIR}/${PN}-man-${PV}/man3/* + make install install_devel install_inc || die "install failed" +} |