aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2009-03-26 15:44:54 +0100
committerDonnie Berkholz <dberkholz@gentoo.org>2009-03-26 15:44:54 +0100
commita494fba1528b8432d7d8d17eb2f26fdb39739548 (patch)
treeda91c203c2a502de57bc72b6c0a62bbb16242fc5 /sci-physics
parentcampos-gridpaw: Bump to 0.4.2734. Backwards versioning, I know. (diff)
downloaddberkholz-a494fba1528b8432d7d8d17eb2f26fdb39739548.tar.gz
dberkholz-a494fba1528b8432d7d8d17eb2f26fdb39739548.tar.bz2
dberkholz-a494fba1528b8432d7d8d17eb2f26fdb39739548.zip
Add ape, a DFT atomic program and pseudo-potential generator.
TODO: - Bundles libxc, libstring_f - Correct metadata (HOMEPAGE etc)
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/ape/Manifest2
-rw-r--r--sci-physics/ape/ape-1.0.1.ebuild40
2 files changed, 42 insertions, 0 deletions
diff --git a/sci-physics/ape/Manifest b/sci-physics/ape/Manifest
new file mode 100644
index 0000000..890fadf
--- /dev/null
+++ b/sci-physics/ape/Manifest
@@ -0,0 +1,2 @@
+DIST ape-1.0.1.tar.gz 653209 RMD160 980d53fe92ec41cc088b813c14dba234628aed32 SHA1 8b37def76c4e5421e464ad9e07f4e2efc96500b5 SHA256 1773d4c7520b64dd24a1e27857bb5ff941d2f91a53249972d35ed84c24c6c68a
+EBUILD ape-1.0.1.ebuild 833 RMD160 da8dd91cd501bcf21f6651f69e0e62d1f4982fc6 SHA1 bfc429ab648fff9274484c1d45341ad151658d52 SHA256 7d9f97df1899a21780600cf3f2d49b5261dfe0d5ef1bf148d47d9bf5ce180c16
diff --git a/sci-physics/ape/ape-1.0.1.ebuild b/sci-physics/ape/ape-1.0.1.ebuild
new file mode 100644
index 0000000..9c46642
--- /dev/null
+++ b/sci-physics/ape/ape-1.0.1.ebuild
@@ -0,0 +1,40 @@
+# 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
+}