aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-07-11 15:45:53 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2008-07-11 15:45:53 +0000
commit25c388f0baa31f952d1853b3283d5fee1d079acb (patch)
treeadc13d9a38c9ed2ce93cff28e586fbd9f4b78e37 /sci-physics
parentgap-4.4.10: sysinfo.gap now installed (diff)
downloadsci-25c388f0baa31f952d1853b3283d5fee1d079acb.tar.gz
sci-25c388f0baa31f952d1853b3283d5fee1d079acb.tar.bz2
sci-25c388f0baa31f952d1853b3283d5fee1d079acb.zip
Added pythia (6 and 8)
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1215 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/pythia/ChangeLog8
-rw-r--r--sci-physics/pythia/Manifest9
-rw-r--r--sci-physics/pythia/metadata.xml5
-rw-r--r--sci-physics/pythia/pythia-6.4.18.ebuild57
-rw-r--r--sci-physics/pythia/pythia-8.1.08.ebuild61
5 files changed, 140 insertions, 0 deletions
diff --git a/sci-physics/pythia/ChangeLog b/sci-physics/pythia/ChangeLog
new file mode 100644
index 000000000..c7003b96c
--- /dev/null
+++ b/sci-physics/pythia/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for sci-physics/pythia
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 11 Jul 2008; S├ębastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +pythia-6.4.18.ebuild, +pythia-8.1.08.ebuild:
+ Initial import. Ebuild submitted by Benjamin Bannier, bug #231484
+
diff --git a/sci-physics/pythia/Manifest b/sci-physics/pythia/Manifest
new file mode 100644
index 000000000..a7b783cdd
--- /dev/null
+++ b/sci-physics/pythia/Manifest
@@ -0,0 +1,9 @@
+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 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 1379 RMD160 6ee6c6de7653a4ceb500ae47cdeee64ca56456c3 SHA1 cd5a5676b0e04cf151755211be281c466c831406 SHA256 a9e8b1806d9e9bb342cbf5dc212c83f8d3c1a27e866ce1bd182032304274b098
+EBUILD pythia-8.1.08.ebuild 1572 RMD160 4c7500d8fa05b2f4c8d97c360200497178098eaa SHA1 47f5e6f4a0e61ce096c1c70df45da95156a42e9b SHA256 afc96dcacbdfafc525beb8bb4c81b4e7b08dc9ab592d2d815613038d10d8c38f
+MISC ChangeLog 306 RMD160 08f19fee66ec66649ee9e3e51acf2766f61ea81b SHA1 ef305fe73b05bc515864e960874da85ab6e7f004 SHA256 08cb4db63f883539812aefd512975617205acc7e09478f769e5578522bee978a
+MISC metadata.xml 165 RMD160 285ec889cf261c6cb2521ce9dd0458b59f157d5d SHA1 596df4d93ab50e4cd983b5402730947a640d584c SHA256 1935cf99fecfc440b479f36852b5cd736fac43e36834e9dc7281496b39b7cb6b
diff --git a/sci-physics/pythia/metadata.xml b/sci-physics/pythia/metadata.xml
new file mode 100644
index 000000000..ebe2af393
--- /dev/null
+++ b/sci-physics/pythia/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-physics</herd>
+</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 000000000..eb5b019bf
--- /dev/null
+++ b/sci-physics/pythia/pythia-6.4.18.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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/"
+SRC_URI="http://www.hepforge.org/archive/${MY_PN}/${P}.f.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 ~x86"
+IUSE="doc"
+DEPEND=""
+
+S="${WORKDIR}"
+
+FORTRAN="gfortran ifc g77"
+
+src_unpack() {
+ unpack ${P}.f.gz
+ 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
+ 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 000000000..ead318b8d
--- /dev/null
+++ b/sci-physics/pythia/pythia-8.1.08.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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 ~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/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"
+}