diff options
Diffstat (limited to 'sci-chemistry/mpqc/mpqc-2.2.3.ebuild')
-rw-r--r-- | sci-chemistry/mpqc/mpqc-2.2.3.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sci-chemistry/mpqc/mpqc-2.2.3.ebuild b/sci-chemistry/mpqc/mpqc-2.2.3.ebuild new file mode 100644 index 000000000000..41fd9e403d52 --- /dev/null +++ b/sci-chemistry/mpqc/mpqc-2.2.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/mpqc/mpqc-2.2.3.ebuild,v 1.1 2005/05/24 21:57:34 spyderous Exp $ + +DESCRIPTION="The Massively Parallel Quantum Chemistry Program" +HOMEPAGE="http://www.mpqc.org/" +SRC_URI="mirror://sourceforge/mpqc/${P}.tar.bz2 + doc? ( mirror://sourceforge/mpqc/${PN}-man-${PV}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +# Should work on x86, amd64 and ppc, at least +KEYWORDS="~x86 ~ppc ~amd64" +IUSE="doc X threads" + +DEPEND="sys-devel/flex + virtual/blas + virtual/lapack + dev-lang/perl + >=sys-apps/sed-4 + 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 \ + $(use_enable threads) \ + ${myconf} || die "configure failed" + sed -i -e "s:^CFLAGS =.*$:CFLAGS=${CFLAGS_SAVE}:" \ + -e "s:^FFLAGS =.*$:FFLAGS=${CFLAGS_SAVE}:" \ + -e "s:^CXXFLAGS =.*$:CXXFLAGS=${CXXFLAGS_SAVE}:" \ + lib/LocalMakefile + emake || die "emake failed" +} + +src_install() { + sed -i -e "s:^prefix=.*$:prefix=${D}/usr:" lib/LocalMakefile + use doc && doman ${WORKDIR}/${PN}-man-${PV}/man3/* + make install install_devel install_inc || die "install failed" +} |