aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-02-18 18:31:20 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-02-18 18:31:20 +0000
commit7f5667f37b542cd525e0b361591ba327f8d81dcc (patch)
treedddeb681f33d20830af4459c185a40c402f84a88 /sci-physics
parentAdded herwig (diff)
downloadsci-7f5667f37b542cd525e0b361591ba327f8d81dcc.tar.gz
sci-7f5667f37b542cd525e0b361591ba327f8d81dcc.tar.bz2
sci-7f5667f37b542cd525e0b361591ba327f8d81dcc.zip
Added herwig flag to cernlib, see bug #257732
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/cernlib-montecarlo/ChangeLog34
-rw-r--r--sci-physics/cernlib-montecarlo/Manifest6
-rw-r--r--sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r2.ebuild78
-rw-r--r--sci-physics/cernlib-montecarlo/files/no_herwig.patch52
-rw-r--r--sci-physics/cernlib-montecarlo/metadata.xml16
5 files changed, 186 insertions, 0 deletions
diff --git a/sci-physics/cernlib-montecarlo/ChangeLog b/sci-physics/cernlib-montecarlo/ChangeLog
new file mode 100644
index 000000000..9bfe69f27
--- /dev/null
+++ b/sci-physics/cernlib-montecarlo/ChangeLog
@@ -0,0 +1,34 @@
+# ChangeLog for sci-physics/cernlib-montecarlo
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib-montecarlo/ChangeLog,v 1.5 2008/09/05 07:46:26 opfer Exp $
+
+ 18 Feb 2009; Sébastien Fabbro <bicatali@gentoo.org>
+ +sci-physics/cernlib-montecarlo/files/no_herwig.patch,
+ +sci-physics/cernlib-montecarlo/metadata.xml:
+ Added herwig flag, thanks to Ben Bannier, see bug #257732
+
+ 05 Sep 2008; Christian Faulhammer <opfer@gentoo.org>
+ cernlib-montecarlo-2006.ebuild:
+ change dependency from virtual/tetex to virtual/latex-base for all ebuilds
+
+ 29 Jun 2008; Torsten Veller <tove@gentoo.org>
+ cernlib-montecarlo-2006.ebuild, cernlib-montecarlo-2006-r1.ebuild:
+ Add missing die: || "..." -> || die "..."
+
+ 27 Jun 2008; Ulrich Mueller <ulm@gentoo.org>
+ cernlib-montecarlo-2006.ebuild, cernlib-montecarlo-2006-r1.ebuild:
+ Change dependency from virtual/motif to x11-libs/openmotif, bug 224749.
+
+*cernlib-montecarlo-2006-r1 (11 Mar 2008)
+
+ 11 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +cernlib-montecarlo-2006-r1.ebuild:
+ New series of patches from Debian, more compatible with gfortran and better
+ tests. Much ebuild cleaning.
+
+*cernlib-montecarlo-2006 (24 Aug 2007)
+
+ 24 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +cernlib-montecarlo-2006.ebuild:
+ Initial import.
+
diff --git a/sci-physics/cernlib-montecarlo/Manifest b/sci-physics/cernlib-montecarlo/Manifest
new file mode 100644
index 000000000..5934fc737
--- /dev/null
+++ b/sci-physics/cernlib-montecarlo/Manifest
@@ -0,0 +1,6 @@
+AUX no_herwig.patch 1993 RMD160 00bbaa63f49daf9311e6c33bc3711f3f0f8806a6 SHA1 a0faaa0244e2e9f8917e3639098a610777a10fb8 SHA256 bb85c46eb9d2acaf95dad615aac3b3c08b2607aea3368f7bbadd2532d58e177d
+DIST mclibs_2006.dfsg.2-5.diff.gz 38713 RMD160 24a7186fcc39174871044c782830ad42c11c1873 SHA1 2aba8e42db0fc317e559092b9d51b16520ac7678 SHA256 3c0d73211ad0cbb6c8b8c2d329a93ffcd853475e3027f5bb82120c112e0d0123
+DIST mclibs_2006.dfsg.2.orig.tar.gz 7406559 RMD160 116bc443dafc299d66d0e83080c1b3b5b34d41b9 SHA1 4c86439750f0b0824bf2f58cf9f2dab810be5293 SHA256 8e73ccb987cb8f930ed44eac807d4f8fd5b03d6926b2f8d62ffb6b31806acf73
+EBUILD cernlib-montecarlo-2006-r2.ebuild 1876 RMD160 b87d39cd54b49fc7fd88bcc606e4058def4dbfd9 SHA1 b7e3871f94907ee82d58bd3035bc62e263e65071 SHA256 23c841b12b66b61852f43e34a331cc3d9eb42e0e970aa8bffc0c4dd80cd786fb
+MISC ChangeLog 1383 RMD160 921283b8f17d18269fcc74ab2cceb228dccbc1ad SHA1 92c0019d90ce642bc5f9b88e0ed044466b163214 SHA256 cab71f1c931210c09d894d9a9577111993cf3145d821bc489e10babab09c93aa
+MISC metadata.xml 647 RMD160 97b26cedf1773066593a8a3a3bff68f056c3792d SHA1 39a0e0e4e60368742692866d3f433206f33b8500 SHA256 ed99468d8222489d2d0738202a38a0963d8254cc9ffd35a287b59049bf1f5cc8
diff --git a/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r2.ebuild b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r2.ebuild
new file mode 100644
index 000000000..36843a5ec
--- /dev/null
+++ b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils multilib fortran
+
+DEB_PN=mclibs
+DEB_PV=${PV}.dfsg.2
+DEB_PR=5
+DEB_P=${DEB_PN}_${DEB_PV}
+
+DESCRIPTION="Monte-carlo library and tools for the cernlib"
+HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/cernlib"
+LICENSE="GPL-2 LGPL-2 BSD"
+SRC_URI="mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
+ mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="+herwig"
+
+RDEPEND="x11-libs/openmotif
+ virtual/lapack
+ dev-lang/cfortran
+ sci-physics/cernlib
+ herwig? ( !sci-physics/herwig )"
+
+DEPEND="${RDEPEND}
+ virtual/latex-base
+ x11-misc/imake
+ x11-misc/makedepend"
+
+S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
+
+FORTRAN="gfortran g77 ifc"
+
+src_prepare() {
+ epatch "${DEB_P}-${DEB_PR}".diff
+
+ cd "${S}"
+ cp debian/add-ons/Makefile .
+ export DEB_BUILD_OPTIONS="${FORTRANC} nostrip nocheck"
+ sed -i \
+ -e 's:/usr/local:/usr:g' \
+ Makefile || die "sed'ing the Makefile failed"
+
+ einfo "Applying Debian patches"
+ emake -j1 patch || die "debian patch failed"
+
+ use herwig || epatch "${FILESDIR}"/no_herwig.patch
+
+ # since we depend on cfortran, do not use the one from cernlib
+ rm -f src/include/cfortran/cfortran.h
+}
+
+src_compile() {
+ # create local LaTeX cache directory
+ mkdir -p .texmf-var
+ emake -j1 cernlib-indep cernlib-arch || die "emake failed"
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}"/shlib \
+ emake -j1 cernlib-test || die "emake test failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ cd "${S}"/debian
+ dodoc changelog README.* deadpool.txt copyright || die "dodoc failed"
+ newdoc add-ons/README README.add-ons || die "newdoc failed"
+}
+
+
+pkg_postinst() {
+ elog "Report bugs to: http://bugs.gentoo.org/show_bug.cgi?id=257732"
+}
diff --git a/sci-physics/cernlib-montecarlo/files/no_herwig.patch b/sci-physics/cernlib-montecarlo/files/no_herwig.patch
new file mode 100644
index 000000000..d0cb42d1b
--- /dev/null
+++ b/sci-physics/cernlib-montecarlo/files/no_herwig.patch
@@ -0,0 +1,52 @@
+diff --git a/mclibs-2006.dfsg.2.orig/Makefile b/mclibs-2006.dfsg.2.orig/Makefile
+index f3c89fd..780499e 100644
+--- a/mclibs-2006.dfsg.2.orig/Makefile
++++ b/mclibs-2006.dfsg.2.orig/Makefile
+@@ -89,9 +89,6 @@ install-includes:
+ done ; \
+ done
+
+- # install some symlinks, e.g. herwig$$version -> herwig
+- rm -f $(DESTDIR)$(includedir)/herwig && \
+- ln -sf herwig59 $(DESTDIR)$(includedir)/herwig
+ rm -rf $(DESTDIR)$(includedir)/isajet758
+ mv $(DESTDIR)$(includedir)/isajet $(DESTDIR)$(includedir)/isajet758
+ ln -sf isajet758 $(DESTDIR)$(includedir)/isajet
+@@ -128,14 +125,12 @@ install-arch: install-includes
+ fi
+
+ # ... and mclibs documentation
+- for dir in cojets eurodec herwig isajet pdflib ; do \
++ for dir in cojets eurodec isajet pdflib ; do \
+ install -d -m 0755 $(MCDOC)/$$dir ; \
+ done
+ install -p -m 0644 $(CERN_DOCDIR)/cojets.txt $(MCDOC)/cojets/
+ install -p -m 0644 $(CERN_DOCDIR)/isa* $(MCDOC)/isajet/
+ install -p -m 0644 $(CERN_DOCDIR)/eurodec.txt $(MCDOC)/eurodec/
+- install -p -m 0644 $(CVSCOSRC)/mclibs/herwig/doc/herwig59 \
+- $(MCDOC)/herwig/herwig59.txt
+ install -p -m 0644 $(CVSCOSRC)/mclibs/pdf/dpdf/pdfdoc.doc \
+ $(MCDOC)/pdflib/pdfdoc.txt
+
+diff --git a/mclibs-2006.dfsg.2.orig/src/mclibs/Imakefile b/mclibs-2006.dfsg.2.orig/src/mclibs/Imakefile
+index 0c9867d..0f04f1b 100644
+--- a/mclibs-2006.dfsg.2.orig/src/mclibs/Imakefile
++++ b/mclibs-2006.dfsg.2.orig/src/mclibs/Imakefile
+@@ -6,7 +6,7 @@
+ to them and their dependents. They have already been purged from
+ Debianized source code. Also, re-order libs so that dependent ones
+ come after dependees. */
+-LIBDIRS= cojets eurodec pdf photos herwig isajet
++LIBDIRS= cojets eurodec pdf photos isajet
+
+ SUBDIRS = $(LIBDIRS)
+
+@@ -16,7 +16,7 @@ InstallLibSubdirs($(LIBDIRS))
+ InstallSharedLibSubdirs($(LIBDIRS))
+
+ /* Again, purge Pythia, Jetset and dependents. */
+-INCLUDEDIRS= cojets eurodec herwig isajet pdf
++INCLUDEDIRS= cojets eurodec isajet pdf
+
+ InstallIncludeSubdirs($(INCLUDEDIRS))
+
diff --git a/sci-physics/cernlib-montecarlo/metadata.xml b/sci-physics/cernlib-montecarlo/metadata.xml
new file mode 100644
index 000000000..342e63d21
--- /dev/null
+++ b/sci-physics/cernlib-montecarlo/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">
+ This metapackage provides various Monte Carlo libraries included in
+ Cernlib (both shared and static). Likely only physicists will be
+ interested in these packages.
+ The libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia are not
+ available for Gentoo: see cernlib Debian packaging for explanation.
+</longdescription>
+<use>
+ <flag name="herwig">Build Herwig event generator, newer version available in
+ sci-physics/herwig</flag>
+</use>
+</pkgmetadata>