aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@mpip-mainz.mpg.de>2009-05-16 16:16:46 +0200
committerChristoph Junghans <junghans@mpip-mainz.mpg.de>2009-05-16 16:16:46 +0200
commitc6ed09fe1551cb171d2c12e8d03d11ea4c4d86b3 (patch)
treed241164df48d842752137e30d54c292fb1d7c4d1 /sci-physics
parentfix typo (diff)
downloadsci-c6ed09fe1551cb171d2c12e8d03d11ea4c4d86b3.tar.gz
sci-c6ed09fe1551cb171d2c12e8d03d11ea4c4d86b3.tar.bz2
sci-c6ed09fe1551cb171d2c12e8d03d11ea4c4d86b3.zip
Added sci-physics/espresso ebuild
(Portage version: 2.1.6.11/git/Linux i686) (Signed Manifest commit)
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/espresso/ChangeLog7
-rw-r--r--sci-physics/espresso/Manifest14
-rw-r--r--sci-physics/espresso/espresso-2.1.2j.ebuild109
-rw-r--r--sci-physics/espresso/metadata.xml9
4 files changed, 139 insertions, 0 deletions
diff --git a/sci-physics/espresso/ChangeLog b/sci-physics/espresso/ChangeLog
new file mode 100644
index 000000000..5387039f9
--- /dev/null
+++ b/sci-physics/espresso/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for sci-physics/espresso
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 16 May 2009; Christoph Junghans <kleiner_otti@gmx.de> ChangeLog:
+ Initial commit. Ebuild written by me. bug #266648
+
diff --git a/sci-physics/espresso/Manifest b/sci-physics/espresso/Manifest
new file mode 100644
index 000000000..57f5b6540
--- /dev/null
+++ b/sci-physics/espresso/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST Espresso-2.1.2j.tar.gz 4864773 RMD160 bd0a1997d5fd9f543500352c379cf5c87bc67688 SHA1 3a70ad9181961187547fe38a6afd3f70571075df SHA256 775a9d190253297f22ce727fd56971599d0b30db80abf56d28bc4a3a919bf445
+EBUILD espresso-2.1.2j.ebuild 2483 RMD160 4c68ba55f43e251e4e8ca711a253afba1caf9018 SHA1 19b0ffd6fa5010267e7bc267b0d76640c4f07cea SHA256 3a0e3304a1bb9e38a576c0aa3518b4cf623b04b32e65fac3546b86f69dfcd1e2
+MISC ChangeLog 241 RMD160 736f032e9a5a812cfa454c93d859b920c9cd61a6 SHA1 95ef0f3ee86169a040fe9262c25517f0a3ec3f72 SHA256 450a5938ede8c6cd812292a22b7b254807e1d81cfec7402bc4a4a23bb0ce4007
+MISC metadata.xml 291 RMD160 5ae1471fd0e7b60d7de7027f8b807dcd005bd0b0 SHA1 10bcd36795a8dcc9ebf5b720fe79bd42a9518b7a SHA256 112c54edd1ef7cbe34d7132ba3fd95a0728b9298eea9b2e957fa5e40962842ea
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkoOys4ACgkQy0OE/ans1/k45ACfQoDyrNAzzgDp8d9JITq9/I31
+zMIAnir7WLJiu9lJroQyd7Q7K17E0rRR
+=Skgs
+-----END PGP SIGNATURE-----
diff --git a/sci-physics/espresso/espresso-2.1.2j.ebuild b/sci-physics/espresso/espresso-2.1.2j.ebuild
new file mode 100644
index 000000000..9823e4eb2
--- /dev/null
+++ b/sci-physics/espresso/espresso-2.1.2j.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit autotools savedconfig
+
+DESCRIPTION="Extensible Simulation Package for Research on Soft matter"
+HOMEPAGE="http://www.espresso.mpg.de"
+SRC_URI="http://espressowiki.mpip-mainz.mpg.de/wiki/uploads/4/43/Espresso-2.1.2j.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="X doc examples fftw mpi packages test tk"
+
+DEPEND="dev-lang/tcl
+ X? ( x11-libs/libX11 )
+ doc? ( app-doc/doxygen
+ virtual/tex-base
+ virtual/latex-base )
+ fftw? ( sci-libs/fftw:3.0 )
+ mpi? ( virtual/mpi )
+ tk? ( >=dev-lang/tk-8.4.18-r1 )"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ AT_M4DIR="config" eautoreconf
+ restore_config myconfig.h
+}
+
+src_configure() {
+ #disable processor-optimization, we have make.conf
+ econf \
+ --disable-processor-optimization \
+ $(use_with fftw) \
+ $(use_with mpi) \
+ $(use_with tk) \
+ $(use_with X x)
+}
+
+src_compile() {
+ emake || die "emake failed"
+ use doc && emake doc || die "emake doc failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Installing failed"
+
+ dodoc INSTALL README RELEASE_NOTES
+
+ insinto /usr/share/${PN}
+ doins myconfig-sample.h
+
+ if [ -f myconfig.h ]; then
+ save_config myconfig.h
+ else
+ save_config config/myconfig.h
+ fi
+
+ if use doc; then
+ newdoc doc/ug/ug.pdf user_guide.pdf
+ dohtml -r doc/dg/html/*
+ newdoc doc/tutorials/tut2/tut2.pdf tutorial.pdf
+ fi
+
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins samples/*
+ #the testsuite are also good examples
+ rm testsuite/Makefile* testsuite/test.sh.in
+ insinto /usr/share/${PN}/testsuite
+ doins testsuite/*
+ fi
+
+ if use packages; then
+ insinto /usr/share/${PN}/packages
+ doins -r packages/*
+ fi
+
+ echo "ESPRESSO_SOURCE=/usr/bin" > "${T}/80${PN}"
+ echo "ESPRESSO_SCRIPTS=/usr/share/espresso/scripts" >> "${T}/80${PN}"
+ doenvd "${T}/80${PN}"
+
+ cd "${D}"
+ #remove Espresso_wrapper
+ rm -f usr/bin/Espresso
+ #install Espresso directly
+ newbin usr/libexec/Espresso_bin Espresso
+ rm -f usr/libexec/Espresso_bin
+}
+
+pkg_postinst() {
+ env-update && source /etc/profile
+ elog
+ elog Please read and cite:
+ elog ESPResSo, Comput. Phys. Commun. 174\(9\) ,704, 2006.
+ elog http://dx.doi.org/10.1016/j.cpc.2005.10.005
+ elog
+ elog If you need more features change
+ elog /etc/portage/savedconfig/${CATEGORY}/"${PF}"
+ elog and reemerge with USE=savedconfig
+ elog
+ elog "For a full feature list see:"
+ elog "/usr/share/${PN}/myconfig-sample.h"
+ elog
+}
diff --git a/sci-physics/espresso/metadata.xml b/sci-physics/espresso/metadata.xml
new file mode 100644
index 000000000..03cc20a10
--- /dev/null
+++ b/sci-physics/espresso/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-physics</herd>
+ <use>
+ <flag name='examples'>Installs the examples</flag>
+ <flag name='packages'>Installs extra subpackages</flag>
+ </use>
+</pkgmetadata>