# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="2" inherit fortran eutils multilib toolchain-funcs flag-o-matic autotools subversion DESCRIPTION="The ETSF library of exchange-correlation functionals" HOMEPAGE="http://www.tddft.org/programs/octopus/wiki/index.php/Libxc" ESVN_REPO_URI="http://www.tddft.org/svn/octopus/trunk/${PN}/" ESVN_BOOTSTRAP="eautoreconf -i" LICENSE="LGPL" SLOT="0" IUSE="fortran debug" KEYWORDS="~amd64 ~x86" RDEPEND="" DEPEND="${RDEPEND}" pkg_setup() { if use fortran ; then FORTRAN="gfortran ifc g77 pgf77 pgf90" fortran_pkg_setup fi } src_configure() { econf "$(use_enable fortran)" || die "econf failed" } src_compile() { emake -j1 || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc README NEWS ChangeLog AUTHORS || die "dodoc failed" if use fortran; then insinto /usr/$(get_libdir)/finclude cd src doins *.mod fi }