diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-07-06 11:36:22 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-07-06 11:36:22 +0000 |
commit | be324916d1941379bb9702551c8a8e43f72145dd (patch) | |
tree | 3610d1ee5a6ff7cbc7c75db3205b358d5160d4d4 /sci-chemistry/psi/psi-3.4.0-r1.ebuild | |
parent | Use FFLAGS instead of CFLAGS for compilation, Xarthisius on irc (diff) | |
download | gentoo-2-be324916d1941379bb9702551c8a8e43f72145dd.tar.gz gentoo-2-be324916d1941379bb9702551c8a8e43f72145dd.tar.bz2 gentoo-2-be324916d1941379bb9702551c8a8e43f72145dd.zip |
Prll build fix, sanbox violation fix, #326185, LDFLAGS respected, thanks to Xarthisius providing again an exelent patch set to fix science stuff!
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/psi/psi-3.4.0-r1.ebuild')
-rw-r--r-- | sci-chemistry/psi/psi-3.4.0-r1.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/sci-chemistry/psi/psi-3.4.0-r1.ebuild b/sci-chemistry/psi/psi-3.4.0-r1.ebuild new file mode 100644 index 000000000000..55785e8a3be9 --- /dev/null +++ b/sci-chemistry/psi/psi-3.4.0-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/psi/psi-3.4.0-r1.ebuild,v 1.1 2010/07/06 11:36:22 jlec Exp $ + +EAPI="3" + +inherit autotools eutils + +DESCRIPTION="Suite of ab initio quantum chemistry programs to compute various molecular properties" +HOMEPAGE="http://www.psicode.org/" +SRC_URI="mirror://sourceforge/psicode/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +# File collision, see bug #249423 +RDEPEND=" + !sci-visualization/extrema + virtual/blas + virtual/lapack + >=sci-libs/libint-1.1.4" +DEPEND="${RDEPEND} + test? ( dev-lang/perl )" + +S="${WORKDIR}/${PN}${PV:0:1}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-dont-build-libint.patch \ + "${FILESDIR}"/use-external-libint.patch \ + "${FILESDIR}"/${PV}-gcc-4.3.patch \ + "${FILESDIR}"/${PV}-destdir.patch \ + "${FILESDIR}"/${P}-parallel-make.patch \ + "${FILESDIR}"/${PV}-man_paths.patch \ + "${FILESDIR}"/${PV}-ldflags.patch \ + "${FILESDIR}"/${PV}-parallel_fix.patch + + # Broken test + sed \ + -e 's:scf-mvd-opt ::g' \ + -e 's:scf-mvd-opt-puream ::g' \ + -i tests/Makefile.in || die + + sed \ + -e "/LIBPATTERNS/d" \ + -i src/{bin,util,samples}/MakeVars.in || die + eautoreconf +} + +src_configure() { + # This variable gets set sometimes to /usr/lib/src and breaks stuff + unset CLIBS + + econf \ + --with-opt="${CXXFLAGS}" \ + --datadir="${EPREFIX}"/usr/share/${PN} \ + --with-blas="$(pkg-config blas --libs)" +} + +src_compile() { + emake SCRATCH="${WORKDIR}/libint" DODEPEND="no" || die +} + +src_test() { + emake EXECDIR="${S}"/bin TESTFLAGS="" -j1 tests || die +} + +src_install() { + emake DESTDIR="${D}" DODEPEND="no" install || die +} |