diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-09-07 22:10:27 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-09-07 22:10:27 +0000 |
commit | e7775587d142bc46f297db223464b931a56c726a (patch) | |
tree | cb022956398028fe41ca0957ed09fdd5726517b5 | |
parent | Don't run encoder tests without use encode, bug #212315 (diff) | |
download | gentoo-2-e7775587d142bc46f297db223464b931a56c726a.tar.gz gentoo-2-e7775587d142bc46f297db223464b931a56c726a.tar.bz2 gentoo-2-e7775587d142bc46f297db223464b931a56c726a.zip |
Initial import, inspired from Benjamin Bannier's work (bug #236719)
(Portage version: 2.2_rc8/cvs/Linux 2.6.23-gentoo-r9 x86_64)
-rw-r--r-- | sci-physics/lhapdf/ChangeLog | 10 | ||||
-rw-r--r-- | sci-physics/lhapdf/Manifest | 4 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-5.5.0.ebuild | 65 | ||||
-rw-r--r-- | sci-physics/lhapdf/metadata.xml | 18 |
4 files changed, 97 insertions, 0 deletions
diff --git a/sci-physics/lhapdf/ChangeLog b/sci-physics/lhapdf/ChangeLog new file mode 100644 index 000000000000..91e0b434fcc8 --- /dev/null +++ b/sci-physics/lhapdf/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-physics/lhapdf +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.1 2008/09/07 22:10:27 bicatali Exp $ + +*lhapdf-5.5.0 (07 Sep 2008) + + 07 Sep 2008; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml, + +lhapdf-5.5.0.ebuild: + Initial import, inspired from Benjamin Bannier's work (bug #236719) + diff --git a/sci-physics/lhapdf/Manifest b/sci-physics/lhapdf/Manifest new file mode 100644 index 000000000000..11350fb26e9b --- /dev/null +++ b/sci-physics/lhapdf/Manifest @@ -0,0 +1,4 @@ +DIST lhapdf-5.5.0.tar.gz 50539943 RMD160 f62af6f9a7ccd3494f26825d63b6afc6198b7b69 SHA1 9c0a60429b90d1bf4aab9b25134643a72a90974d SHA256 40a941477cfa225acbb1dba0ef79cdc051331ecae0c56996a53e8f45459cb405 +EBUILD lhapdf-5.5.0.ebuild 1589 RMD160 095a8254e7f4bad8d9e0f2626479a3e0882e5ab3 SHA1 f2dc7b16f82bd68bcb267f22acdc7c509d7e2aea SHA256 5c7f720e7f6f738a547de1c186f309e30681b15b1264ec2b23e98856f27d9f63 +MISC ChangeLog 313 RMD160 5260cf9f6df1b8023b2f4d913ad95654b9d572c4 SHA1 429dccb975892075ef63229e4fd200f8001b8fe6 SHA256 90e639acc067dae713dc4232917dc2b30881344ebe4d38b35707d6c4bddd6d53 +MISC metadata.xml 901 RMD160 f8324b5d4ab59033b1fe1e9a53148c22e75d25ab SHA1 031b1ad488f61fbf0d4da63ea73a56f4c945c4c8 SHA256 3f5f5746a95fb877dabeb4d7afc0bbd1051797f5818c94b86a8e032845364365 diff --git a/sci-physics/lhapdf/lhapdf-5.5.0.ebuild b/sci-physics/lhapdf/lhapdf-5.5.0.ebuild new file mode 100644 index 000000000000..55510ca6971b --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-5.5.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/lhapdf-5.5.0.ebuild,v 1.1 2008/09/07 22:10:27 bicatali Exp $ + +inherit eutils fortran + +DESCRIPTION="Les Houches Parton Density Function unified library" +HOMEPAGE="http://projects.hepforge.org/lhapdf/" +SRC_URI="http://www.hepforge.org/archive/lhapdf/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples python" + +DEPEND="doc? ( app-doc/doxygen ) + python? ( dev-lang/swig )" +RDEPEND="" + +pkg_setup() { + local err + if use python && ! built_with_use dev-lang/swig python; then + eerror "You need USE=python in dev-lang/swig for python support." + err="${err} python" + fi + # this is needed for formulas even with html output only + if use doc && ! built_with_use app-doc/doxygen latex; then + eerror "You need USE=latex in app-doc/doxygen for docs." + err="${err} latex" + fi + + [ -z "${err}" ] || die "Unsatisfied dependencies -- needs manual fix" + + FORTRAN="gfortran ifc" + fortran_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + # do not create extra latex docs + sed -i \ + -e 's/GENERATE_LATEX.*=YES/GENERATE_LATEX = NO/g' \ + ccwrap/Doxyfile || die +} + +src_compile() { + econf \ + $(use_enable python pyext) \ + $(use_enable doc doxygen) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README TODO AUTHORS ChangeLog + + use doc && mv "${D}"/usr/share/${PN}/doc/html "${D}"/usr/share/doc/${PF} + rm -rf "${D}"/usr/share/${PN}/doc + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die + fi +} diff --git a/sci-physics/lhapdf/metadata.xml b/sci-physics/lhapdf/metadata.xml new file mode 100644 index 000000000000..0ee0caff5105 --- /dev/null +++ b/sci-physics/lhapdf/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-physics</herd> +<longdescription lang="en"> + Les Houches Parton Density Function (LHAPDF) + provides a unified and easy to use interface to modern PDF + sets. It is designed to work not only with individual PDF sets but + also with the more recent multiple "error" sets. It can be viewed as + the successor to PDFLIB, incorporating many of the older sets found in + the latter, including pion and photon PDFs. In LHAPDF the computer + code and input parameters/grids are separated thus allowing more easy + updating and no limit to the expansion possibilities. The code and + data sets can be downloaded together or individually as desired. From + version 4.1 onwards a configuration script facilitates the + installation of LHAPDF. +</longdescription> +</pkgmetadata> |