# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils fortran-2 multilib toolchain-funcs DESCRIPTION="Abinit AtomPAW atomic data convertor" HOMEPAGE="http://www.abinit.org/downloads/PAW2/AtomPAW2Abinit-Manual-html/Old-AtomPAW2Abinit-Manual-html/AtomPAW2Abinit2.htm" SRC_URI="http://www.abinit.org/downloads/PAW2/AtomPAW2Abinit-Manual-html/Old-AtomPAW2Abinit-Manual-html/Atompaw2Abinit.tgz -> ${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=" virtual/lapack virtual/blas sci-physics/atompaw" DEPEND="${RDEPEND} virtual/pkgconfig" S=${WORKDIR}/Atompaw2Abinit.v${PV} MAKEOPTS+=" -j1" pkg_nofetch() { elog "If there is a digest mismatch, please file a bug" elog "at https://bugs.gentoo.org/ -- a version bump" elog "is probably required." } src_configure() { head -n 6 Makefile >Makefile.1 tail -n +6 Makefile >Makefile.2 cp Makefile.1 Makefile echo FC = $(tc-getFC) >>Makefile echo FFLAGS = ${FFLAGS} >>Makefile echo -n FFLAGS_LIBS= >>Makefile $(tc-getPKG_CONFIG) --libs lapack >>Makefile echo >>Makefile sed -e's/^\(FC *=\)/#\1/' -e's/^\(FFLAGS *=\)/#\1/' \ -e's/^\(FFLAGS_LIBS *=\)/#\1/' Makefile.2 >>Makefile } src_install() { dobin ${PN} }