diff options
Diffstat (limited to 'sci-chemistry/freeon/freeon-2012.05.03.ebuild')
-rw-r--r-- | sci-chemistry/freeon/freeon-2012.05.03.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sci-chemistry/freeon/freeon-2012.05.03.ebuild b/sci-chemistry/freeon/freeon-2012.05.03.ebuild new file mode 100644 index 000000000..99805e0dc --- /dev/null +++ b/sci-chemistry/freeon/freeon-2012.05.03.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 + +FORTRAN_STANDARD=90 + +inherit autotools-utils fortran-2 + +REAL_PN="${PN}-beta" +REAL_PV="${PV//./-}" + +DESCRIPTION="an experimental suite of programs for linear scaling quantum chemistry." +HOMEPAGE="http://www.freeon.org" +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${REAL_PN}-${REAL_PV}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +RDEPEND=" + sys-libs/zlib + sci-libs/hdf5 + virtual/blas + virtual/lapack" +DEPEND="${DEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${REAL_PN}-${REAL_PV}" + +src_prepare() { + # Get rid of the obsolete internal hdf5 + rm -r "${S}"/hdf5-1.8.3 + # as well as of the internal lapack + rm -r "${S}"/lapack + epatch "${FILESDIR}"/"${P}"-no_internal_libs.patch + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-internal-hdf5 + --disable-static-binaries + --disable-internal-lapack + --with-lapacklibs="$($(tc-getPKG_CONFIG) --libs lapack)" + ) + #TODO mv BasisSets from /usr to /usr/share/freeon/ + autotools-utils_src_configure +} |