From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sci-physics/cernlib-montecarlo/Manifest | 3 + .../cernlib-montecarlo-2006-r3.ebuild | 89 ++++++++++++++++++++++ .../cernlib-montecarlo-2006-r4.ebuild | 89 ++++++++++++++++++++++ .../files/cernlib-montecarlo-2006-noherwig.patch | 52 +++++++++++++ sci-physics/cernlib-montecarlo/metadata.xml | 16 ++++ 5 files changed, 249 insertions(+) create mode 100644 sci-physics/cernlib-montecarlo/Manifest create mode 100644 sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r3.ebuild create mode 100644 sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r4.ebuild create mode 100644 sci-physics/cernlib-montecarlo/files/cernlib-montecarlo-2006-noherwig.patch create mode 100644 sci-physics/cernlib-montecarlo/metadata.xml (limited to 'sci-physics/cernlib-montecarlo') diff --git a/sci-physics/cernlib-montecarlo/Manifest b/sci-physics/cernlib-montecarlo/Manifest new file mode 100644 index 000000000000..d177b5c31a61 --- /dev/null +++ b/sci-physics/cernlib-montecarlo/Manifest @@ -0,0 +1,3 @@ +DIST mclibs_20061220+dfsg3-1.debian.tar.gz 46362 SHA256 17a9f61860237b963bc4b6240296add2bbe45cf16ce994061c3f20c33994cf73 SHA512 ddb31fd218f0f051155548011415d9526e7866ec7caf7041a5f572d8064cb4f19c188724e839f445a47f490dacf0d67ef9ba871725756892e0ba1d569d575fe3 WHIRLPOOL c8db51ed7e1e78ffcdca96af3aeb388391473acc796b35af838fa60cb3129816e787dce325c8ac8be411d98ec2d1392959df97dd560ccae172c230ce2c342676 +DIST mclibs_20061220+dfsg3-3.debian.tar.gz 44763 SHA256 9796094d6b27a07a342c8f7572cae40b8717e13d04c8b1acb4b337901cb0c5af SHA512 2ef3c54026e86182200d4d7fce1889a2dd8c252743d0819e74679e2a5067794bea574530b59a7f08c394f8b75f7d31cac31f638fb72045700b379bd686a8f92f WHIRLPOOL 515ba362e11897c02cbbcecd25340ca7aba87c608b537103b38afe2fb65f0d1f7fcdd025d2fe4d835f488580608f53c1c606751996fe0e7fb55fb828c2d35997 +DIST mclibs_20061220+dfsg3.orig.tar.gz 7642494 SHA256 cb5ea19bc54a06c031c90192685748ce0f7df016bfae6b9d7d672d77a3444ce5 SHA512 add98b585648994ab616d040e9a3410b0eba13ab54a812674d3940bae0effed4446b02ce6a34887841c114bc444b1b83598e2c89c22b4df8dcd3fd4c1d8aaba3 WHIRLPOOL cee4c265ae610bbc1b2a48fdc6d769848bf936c78862a298725e5ac11fc2620a18b748dcd41e8b7622cf369c2a43f9641cc67e5f902a88e2f083f7b7587a1771 diff --git a/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r3.ebuild b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r3.ebuild new file mode 100644 index 000000000000..f24179997a38 --- /dev/null +++ b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fortran-2 toolchain-funcs + +DEB_PN=mclibs +DEB_PV=20061220+dfsg3 +DEB_PR=1 +DEB_P=${DEB_PN}_${DEB_PV} + +DESCRIPTION="Monte-carlo library and tools for the cernlib" +HOMEPAGE="https://cernlib.web.cern.ch/cernlib/" +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}.debian.tar.gz" + +SLOT="0" +LICENSE="GPL-2 LGPL-2 BSD" +IUSE="+herwig" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + x11-libs/motif:0 + 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" + +src_prepare() { + mv ../debian . || die + cp debian/add-ons/Makefile . || die + export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck" + sed -i \ + -e "s:/usr/local:${EROOT}/usr:g" \ + Makefile || die + + einfo "Applying Debian patches" + emake -j1 patch + use herwig || epatch "${FILESDIR}"/${P}-noherwig.patch + # since we depend on cfortran, do not use the one from cernlib + rm src/include/cfortran/cfortran.h || die + # respect users flags + sed -i \ + -e 's/-O3/-O2/g' \ + -e "s/-O2/${CFLAGS}/g" \ + -e "s|\(CcCmd[[:space:]]*\)gcc|\1$(tc-getCC)|g" \ + -e "s|\(CplusplusCmd[[:space:]]*\)g++|\1$(tc-getCXX)|g" \ + -e "s|\(FortranCmd[[:space:]]*\)gfortran|\1$(tc-getFC)|g" \ + src/config/linux.cf \ + || die "sed linux.cf failed" + sed -i \ + -e "s|\(ArCmdBase[[:space:]]*\)ar|\1$(tc-getAR)|g" \ + -e "s|\(RanlibCmd[[:space:]]*\)ranlib|\1$(tc-getRANLIB)|g" \ + src/config/Imake.tmpl \ + || die "sed Imake.tmpl failed" + + sed -i \ + -e 's/\$(FCLINK)/\$(FCLINK) $(LDFLAGS)/' \ + -e 's/\$(CCLINK)/\$(CCLINK) $(LDFLAGS)/' \ + src/config/{biglib,fortran,Imake}.rules \ + || die "sed for ldflags propagation failed" +} + +src_compile() { + export VARTEXFONTS="${T}"/fonts + emake -j1 cernlib-indep cernlib-arch +} + +src_test() { + LD_LIBRARY_PATH="${S}"/shlib \ + emake -j1 cernlib-test +} + +src_install() { + export VARTEXFONTS="${T}"/fonts + emake DESTDIR="${D}" MCDOC="${ED}usr/share/doc/${PF}" install + cd debian + dodoc changelog README.* deadpool.txt copyright + newdoc add-ons/README README.add-ons +} diff --git a/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r4.ebuild b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r4.ebuild new file mode 100644 index 000000000000..47893126ffb8 --- /dev/null +++ b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006-r4.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils fortran-2 toolchain-funcs + +DEB_PN=mclibs +DEB_PV=20061220+dfsg3 +DEB_PR=3 +DEB_P=${DEB_PN}_${DEB_PV} + +DESCRIPTION="Monte-carlo library and tools for the cernlib" +HOMEPAGE="https://cernlib.web.cern.ch/cernlib/" +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}.debian.tar.gz" + +SLOT="0" +LICENSE="GPL-2 LGPL-2 BSD" +IUSE="+herwig" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + x11-libs/motif:0 + 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" + +src_prepare() { + mv ../debian . || die + cp debian/add-ons/Makefile . || die + export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck" + sed -i \ + -e "s:/usr/local:${EROOT}/usr:g" \ + Makefile || die + + einfo "Applying Debian patches" + emake -j1 patch + use herwig || epatch "${FILESDIR}"/${P}-noherwig.patch + # since we depend on cfortran, do not use the one from cernlib + rm src/include/cfortran/cfortran.h || die + # respect users flags + sed -i \ + -e 's/-O3/-O2/g' \ + -e "s/-O2/${CFLAGS}/g" \ + -e "s|\(CcCmd[[:space:]]*\)gcc|\1$(tc-getCC)|g" \ + -e "s|\(CplusplusCmd[[:space:]]*\)g++|\1$(tc-getCXX)|g" \ + -e "s|\(FortranCmd[[:space:]]*\)gfortran|\1$(tc-getFC)|g" \ + src/config/linux.cf \ + || die "sed linux.cf failed" + sed -i \ + -e "s|\(ArCmdBase[[:space:]]*\)ar|\1$(tc-getAR)|g" \ + -e "s|\(RanlibCmd[[:space:]]*\)ranlib|\1$(tc-getRANLIB)|g" \ + src/config/Imake.tmpl \ + || die "sed Imake.tmpl failed" + + sed -i \ + -e 's/\$(FCLINK)/\$(FCLINK) $(LDFLAGS)/' \ + -e 's/\$(CCLINK)/\$(CCLINK) $(LDFLAGS)/' \ + src/config/{biglib,fortran,Imake}.rules \ + || die "sed for ldflags propagation failed" +} + +src_compile() { + export VARTEXFONTS="${T}"/fonts + emake -j1 cernlib-indep cernlib-arch +} + +src_test() { + export VARTEXFONTS="${T}"/fonts + LD_LIBRARY_PATH="${S}"/shlib \ + emake -j1 cernlib-test +} + +src_install() { + emake DESTDIR="${D}" MCDOC="${ED}usr/share/doc/${PF}" install + cd debian + dodoc changelog README.* deadpool.txt copyright + newdoc add-ons/README README.add-ons +} diff --git a/sci-physics/cernlib-montecarlo/files/cernlib-montecarlo-2006-noherwig.patch b/sci-physics/cernlib-montecarlo/files/cernlib-montecarlo-2006-noherwig.patch new file mode 100644 index 000000000000..d0cb42d1ba42 --- /dev/null +++ b/sci-physics/cernlib-montecarlo/files/cernlib-montecarlo-2006-noherwig.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 000000000000..3c0279be07c7 --- /dev/null +++ b/sci-physics/cernlib-montecarlo/metadata.xml @@ -0,0 +1,16 @@ + + + + sci-physics + + 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. + + + Build Herwig internal event generator, newer version + available in sci-physics/herwig + + -- cgit v1.2.3-65-gdbad