summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-09-02 08:41:08 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-09-02 08:41:08 +0000
commit8c86b19f0e6d03eafc2ab5473c2ce18c3e5dc934 (patch)
tree55bf6d589014b92ba14cb9158fb5c1a1cd85037b /sci-physics/pythia
parentversion bump (diff)
downloadhistorical-8c86b19f0e6d03eafc2ab5473c2ce18c3e5dc934.tar.gz
historical-8c86b19f0e6d03eafc2ab5473c2ce18c3e5dc934.tar.bz2
historical-8c86b19f0e6d03eafc2ab5473c2ce18c3e5dc934.zip
Initial import. Thanks Benjamin Bannier for his good work on bug #231484
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.23-gentoo-r9 x86_64
Diffstat (limited to 'sci-physics/pythia')
-rw-r--r--sci-physics/pythia/ChangeLog11
-rw-r--r--sci-physics/pythia/Manifest20
-rw-r--r--sci-physics/pythia/metadata.xml16
-rw-r--r--sci-physics/pythia/pythia-6.4.18.ebuild62
-rw-r--r--sci-physics/pythia/pythia-8.1.08.ebuild66
5 files changed, 175 insertions, 0 deletions
diff --git a/sci-physics/pythia/ChangeLog b/sci-physics/pythia/ChangeLog
new file mode 100644
index 000000000000..3e13966aa672
--- /dev/null
+++ b/sci-physics/pythia/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sci-physics/pythia
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.1 2008/09/02 08:41:08 bicatali Exp $
+
+*pythia-8.1.08 (02 Sep 2008)
+*pythia-6.4.18 (02 Sep 2008)
+
+ 02 Sep 2008; SĂ©bastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +pythia-6.4.18.ebuild, +pythia-8.1.08.ebuild:
+ Initial import. Thanks Benjamin Bannier for his good work on bug #231484
+
diff --git a/sci-physics/pythia/Manifest b/sci-physics/pythia/Manifest
new file mode 100644
index 000000000000..369b46dbdb1f
--- /dev/null
+++ b/sci-physics/pythia/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST lutp0613man2.pdf 2902047 RMD160 a45a1fcd47db9dc4ec3448018038b441174bc55d SHA1 4601580d13482d9230026dad6f943d01bf3ffd74 SHA256 03d637310ea80f0d7aea761492bd38452c602890d8cf913a1ec9edacd79fa43d
+DIST main60.f 4035 RMD160 3fc58ae918a52c7ebcc2cd1b875e16e42866bda4 SHA1 0e3f21a0388df366dbbcabcca26d1d4c1b0b6dec SHA256 d713b8b267c4405cc9d31c58bba267ae3378902a26fa52393003bf35fd56902c
+DIST pythia-6.4.18.f.gz 575245 RMD160 215355c6f4c2459ae7d7d3c6bb4314cd6331f136 SHA1 afe2355c13013163075f0efba046018c06229369 SHA256 06f55c461233ba633a99200370914f729fa109d583ff15003c26149a714797f1
+DIST pythia6.tar.gz 567451 RMD160 a6bd12a24f85436e64c51482c71469335c20372b SHA1 f2401d493bb4d5e059a1c4c48517c1679d74a437 SHA256 ebc90b8ec94897d8b09030341323d2c7c6e5c7c65077f98b96c8cff00d40a5ce
+DIST pythia8108.tgz 1694925 RMD160 b8cb8c9002984cd103f28bef9d5b58dbc705d40b SHA1 7c120f339ae23983cf3b1f5f6f294c22ff96ae29 SHA256 1314f7b27b8569b1dca38eea8389c54ae1b718616fd2750d83f32984a1159715
+DIST update_notes-6.4.18.txt 68019 RMD160 2f579ff64538128d60c5625afc13061dd4429e84 SHA1 ae73f097e2640b09e8b69c003699f2dac50eeaa7 SHA256 464b71451d8f1b4847ba2c649f3c9d556b4a11f24c2ae29b2e7f1d03086a00a2
+EBUILD pythia-6.4.18.ebuild 1682 RMD160 f2bb09a92b92ec636a97b481b861105778d46dac SHA1 292e083c180ab018ac61716160f22290160b0fb5 SHA256 c74147b4b3131a0560036dbcb529b6380fb656c2dd7a6dc49510f2b5b95259ba
+EBUILD pythia-8.1.08.ebuild 1830 RMD160 50ac0c58c008df3cc81bc94f73c6be2baa1175f5 SHA1 6c763a4fad8ade03e8a09c06116b905c86cb0c26 SHA256 eb88103acb99f7216efa26ab00420d85ad9d0c17bc4fc0ba737e3fc4b8a1526a
+MISC ChangeLog 464 RMD160 77bf1d10cfc0d705e37acbf342e7fe601902462d SHA1 33e0356e6ef01e0a696ae89a5394cc51e79010f8 SHA256 6a43d957ea1dc03fe3133d9eeb71135c9d253b37127137a586dd6dfd1e67fe96
+MISC metadata.xml 762 RMD160 5c94c90c55793428747700856612569ec7429a06 SHA1 24f78f22cf1c54e2421878a50b08f5568ba07bdb SHA256 e1637aebfee347ed7f4848db2b73d1062d84fb529322b74887c56235b98900ed
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAki8/C8ACgkQ1ycZbhPLE2DdMQCbBD9EbiBLlExtXS6NjhXb+F9J
+EIwAni5X/xqrYrfqysgkqRyhEvtsBX7O
+=2qjo
+-----END PGP SIGNATURE-----
diff --git a/sci-physics/pythia/metadata.xml b/sci-physics/pythia/metadata.xml
new file mode 100644
index 000000000000..f983ccba9a5b
--- /dev/null
+++ b/sci-physics/pythia/metadata.xml
@@ -0,0 +1,16 @@
+<?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">
+ PYTHIA is a program for the generation of high-energy physics
+ events, i.e. for the description of collisions at high energies
+ between elementary particles such as e+, e-, p and pbar in various
+ combinations. It contains theory and models for a number of physics
+ aspects, including hard and soft interactions, parton distributions,
+ initial- and final-state parton showers, multiple interactions,
+ fragmentation and decay. It is largely based on original research,
+ but also borrows many formulae and other knowledge from the
+ literature.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-physics/pythia/pythia-6.4.18.ebuild b/sci-physics/pythia/pythia-6.4.18.ebuild
new file mode 100644
index 000000000000..f8dde255532d
--- /dev/null
+++ b/sci-physics/pythia/pythia-6.4.18.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-6.4.18.ebuild,v 1.1 2008/09/02 08:41:08 bicatali Exp $
+
+inherit fortran versionator autotools
+
+MV=$(get_major_version)
+MY_PN=${PN}${MV}
+
+DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
+HOMEPAGE="http://projects.hepforge.org/pythia6/"
+
+# pythia6 from root is needed for some files to interface pythia6 with root
+SRC_URI="http://www.hepforge.org/archive/${MY_PN}/${P}.f.gz
+ ftp://root.cern.ch/root/pythia6.tar.gz
+ http://www.hepforge.org/archive/${MY_PN}/update_notes-${PV}.txt
+ doc? ( http://home.thep.lu.se/~torbjorn/pythia/lutp0613man2.pdf
+ http://home.thep.lu.se/~torbjorn/pythia/main60.f )"
+
+LICENSE="public-domain"
+SLOT="6"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="doc"
+DEPEND=""
+
+S="${WORKDIR}"
+
+FORTRAN="gfortran ifc g77"
+
+src_unpack() {
+ unpack ${A}
+ cat > configure.ac <<-EOF
+ AC_INIT(${PN},${PV})
+ AM_INIT_AUTOMAKE
+ AC_PROG_F77
+ AC_PROG_LIBTOOL
+ AC_CONFIG_FILES(Makefile)
+ AC_OUTPUT
+ EOF
+ cat > Makefile.am <<-EOF
+ lib_LTLIBRARIES = lib${MY_PN}.la
+ lib${MY_PN}_la_SOURCES = ${P}.f \
+ = pythia6/tpythia6_called_from_cc.F \
+ = pythia6/pythia6_common_address.c
+ EOF
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc "${DISTDIR}"/update_notes-${PV}.txt
+ if use doc; then
+ insinto /usr/share/doc/${PF}/
+ doins "${DISTDIR}"/{lutp0613man2.pdf,main60.f} || die
+ fi
+}
+
+pkg_postinst() {
+ elog "pythia-6 ebuild is still under development."
+ elog "Help us improve the ebuild in:"
+ elog "http://bugs.gentoo.org/show_bug.cgi?id=231484"
+}
diff --git a/sci-physics/pythia/pythia-8.1.08.ebuild b/sci-physics/pythia/pythia-8.1.08.ebuild
new file mode 100644
index 000000000000..ab1ee79d30f3
--- /dev/null
+++ b/sci-physics/pythia/pythia-8.1.08.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-8.1.08.ebuild,v 1.1 2008/09/02 08:41:08 bicatali Exp $
+
+inherit versionator multilib toolchain-funcs
+
+MV=$(get_major_version)
+MY_P=${PN}$(replace_all_version_separators "" ${PV})
+
+DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
+HOMEPAGE="http://home.thep.lu.se/~torbjorn/Pythia.html"
+SRC_URI="http://home.thep.lu.se/~torbjorn/${PN}${MV}/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="8"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="doc"
+
+DEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ # evil hand-rolled stuff (no autoconf)
+ ./configure \
+ --enable-shared \
+ || die "configure failed"
+ # add user's flags TODO can this be done better?
+ echo CXXFLAGS+="${CXXFLAGS}" >> config.mk
+ emake CXX=$(tc-getCXX) || die "emake failed"
+}
+
+src_test() {
+ cd "${S}"/examples
+ ./configure \
+ --enable-shared \
+ || die "configure for examples failed"
+ echo CXXFLAGS+=${CXXFLAGS} >> config.mk
+ emake CXX=$(tc-getCXX) || die "emake examples failed"
+ ./runmains || die "test of examples failed"
+}
+
+src_install() {
+ dolib.so lib/*so || die "shared lib install failed"
+ dolib.a lib/archive/* || die "static lib install failed"
+
+ insinto /usr/include/${PN}
+ doins include/* || die "headers install failed"
+
+ insinto /usr/share/${PN}
+ doins -r xmldoc || die "xmldoc install failed"
+ echo PYTHIA8DATA=/usr/share/${PN}/xmldoc >> 99pythia8
+ doenvd 99pythia8
+
+ insinto /usr/share/doc/${PF}
+ dodoc GUIDELINES AUTHORS README
+ if use doc; then
+ doins -r worksheet.pdf examples htmldoc || die "doc install failed"
+ fi
+}
+
+pkg_postinst() {
+ elog "pythia-8 ebuild is still under development."
+ elog "Help us improve the ebuild in:"
+ elog "http://bugs.gentoo.org/show_bug.cgi?id=231484"
+}