# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit multilib DESCRIPTION="DFT atomic program and pseudo-potential generator" HOMEPAGE="" SRC_URI="${P}.tar.gz" LICENSE="GPL-2 FDL-1.1" SLOT="0" KEYWORDS="~amd64" IUSE="" RDEPEND=">=sci-libs/gsl-1.12" DEPEND="${RDEPEND}" # bundled # >=dev-libs/string_f-1.0:0 # >=sci-libs/libxc-0.9:0 src_compile() { econf FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}" || die emake -j1 || die } src_test() { emake check || die } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ChangeLog AUTHORS || die # Deal with bundled crap rm -f \ "${D}"/usr/$(get_libdir)/libstring_f.a \ "${D}"/usr/$(get_libdir)/libxc.a \ "${D}"/usr/include/xc.h \ "${D}"/usr/include/string_f.h \ || die }