From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-physics/thepeg/Manifest | 13 ++++ sci-physics/thepeg/files/thepeg-1.8.3-java.patch | 37 +++++++++ sci-physics/thepeg/metadata.xml | 24 ++++++ sci-physics/thepeg/thepeg-1.9.2.ebuild | 96 ++++++++++++++++++++++++ sci-physics/thepeg/thepeg-2.0.0.ebuild | 96 ++++++++++++++++++++++++ sci-physics/thepeg/thepeg-2.0.4.ebuild | 93 +++++++++++++++++++++++ 6 files changed, 359 insertions(+) create mode 100644 sci-physics/thepeg/Manifest create mode 100644 sci-physics/thepeg/files/thepeg-1.8.3-java.patch create mode 100644 sci-physics/thepeg/metadata.xml create mode 100644 sci-physics/thepeg/thepeg-1.9.2.ebuild create mode 100644 sci-physics/thepeg/thepeg-2.0.0.ebuild create mode 100644 sci-physics/thepeg/thepeg-2.0.4.ebuild (limited to 'sci-physics/thepeg') diff --git a/sci-physics/thepeg/Manifest b/sci-physics/thepeg/Manifest new file mode 100644 index 000000000000..af7b536619bf --- /dev/null +++ b/sci-physics/thepeg/Manifest @@ -0,0 +1,13 @@ +AUX thepeg-1.8.3-java.patch 922 SHA256 1b71b643587a784699dae94d601de1eb3b352e2e6a91126105121b0e631972ef SHA512 2c2bd711e6a96e3e8ab12b313929b7e4814b69bd7f7631e137c233ec2478d4538299113c035ed94b8e58aa1195b0c8cdc21d23996fbecbb0319815b162556699 WHIRLPOOL 23461aff09193196472c1f3be8be1475855c161d47943cfd01523958df5e7a53b85f91c15cc5bb5da473e4e6c59e80ef64d9e7c54321ad6834a14a5456e3889b +DIST GRV98nlo.LHgrid 221908 SHA256 78e7b133ac1f1d5576aa688f98adb8b6e29feb15cbb58556c860cb7e183da647 SHA512 fce5226a6eb56c9cc970d2d2bb23c5a0cde3afbb1f463e3e062825c2379213100a2d149ff6b25d9726e80ee817f9ae74eafcc85b2b30419aa7f095847dbcd8b6 WHIRLPOOL ce0d01cd7c293efd199704cdeb0cb5ad9093393eef56b72cb6096b2e6135ce57d1710b0cbcd219bb4dfe82b15d684a3f6a5aad6dda97d3428dc2f645ec5a2dc4 +DIST MRST2001nlo.LHgrid 719692 SHA256 7ec031afa2bd254b95b66b3058291365091f58b48e4be2b368e61fc170c51d58 SHA512 126461ec2358e61221445483074a804c915b94be4a4dfd0330a9cf71feff9a9b981c5594a9d2a1efd236122f44891dd25182649803dccb3b383d03e85e96f930 WHIRLPOOL bce25b3dc3b0a29c537eafac243c81bdb83b4e3daca34627d7d8bb8c59f802bb12ea6e8611fe2758a8c9a9880dab16276c11a332059431df0b14ecb6eb6d40f3 +DIST ThePEG-1.9.2.tar.bz2 1870577 SHA256 ff7bbb256866f994dae04ade1f57c92d2670edaac3df11c9a300419a5343faf4 SHA512 bc43606c79bb15938969b9d444db49c6af5c8ba21072a879a502086a77fe18b13fec44691046b4e0772b260b83ea7ef29b906027eadda6a8ea004ace9318379c WHIRLPOOL fb686c14a6c8a958f08be670085f10463d2928dacd8efe039e0e5fa781dc7532310702146dd9a0aef5bb8e881e1ff0e5d7f07637b8ad56a80c3d197e67d9c970 +DIST ThePEG-2.0.0.tar.bz2 1938251 SHA256 571730cc956027dc82780dc04ef6e7382ab5ea853fcfebe259e488c6df302a04 SHA512 a3e9a4ab90b126ea67187e2adc5b64480e5afd49ac58d6f3a3855003251d5c7b6ab67fa35b0380684e39f38cf8d4bc8e0ccd9dc4cb7d7b900e90b3448d6182a9 WHIRLPOOL 1c1052972e006c497bd3d23b63b05e97fae922bfe14c1233da39ac5c51b74a18a3480052c1a9dd06bca1ca816218b7a5945b86314ddbea953dd7c9e40e9865d9 +DIST ThePEG-2.0.4.tar.bz2 1921082 SHA256 f3b625b411667e2708995f1d1379b5b8691406853c8c2cca2f4e4e6e062da0e4 SHA512 5c037033daa89748267691df644209f62f46ccdff6865cfeceeda6909cff3de0c474c5ced067db6c5659ba6ebe5a51fc9b8fee46a36886278f8d29e13de2a81c WHIRLPOOL fe2f618837b99d034f36aea103918e02e825c3fc220252f69f9b4ca66e4674f0966b6da4915efb7638d3d8168ea742a7ad7ec39065a2bfda2440d4bf26f70307 +DIST cteq5l.LHgrid 134797 SHA256 83c92bc90fd6e12be9cd76bc032eca26dcedbe90f0c11aef843bbf54734d5bba SHA512 1ba41fd773104a933af6f37745dcb6f8422e1aece74ba2b1e15a5fb69fdaf694336c0ec1dc6fbc964d2cf3fe363d17ca0c01a6c2ba6def0afa4389cb4083f34b WHIRLPOOL 8a86877fcbae2b45576e3fae08dfd4771c668257893ba2f813c578641dce9800f42bfd57d0d8ac2abc6bf7cd40921020478f1912014a36cfb722ed408ca1430f +DIST cteq6ll.LHpdf 1461 SHA256 a3c6bd1ebea30f75fa23fa94922ba281872a66e59465b61f73a0f3629c2b5c03 SHA512 b89a87d1c1c7cc910aa4af53abc3cc6550670a5a6332989232d33c7da1ba01ce49bbbf9f3bb454e673312fb5bc1679f86eea18f95a1443d1c80d3a622e2b8728 WHIRLPOOL 3eeba4277668b92bfa0de3d0fb27d0d9b940904061b6aa212936e4a9b86f9955188b81d9572672f64155abc7f2c6184fc90f8f81dd7eabbe1b015b749a5af304 +EBUILD thepeg-1.9.2.ebuild 2345 SHA256 b4e7400140962004de1040f53274670a491ae11108bd10ca395fd8d34c7fbe9c SHA512 8c90e20af8ad8558df22dba90cb9c505e473d4d7e5c27813d32f8fec376ed4315e7a3ea0edc07967b5a7e9490f459c13093f62c11a70a34f2593f2a12c3b3d3c WHIRLPOOL 83aeb59f9fe1887d709f99c6332d91b9c9bc5b22cdc3d8e5b3b094200e87b36440e0dc8efa672c5727b5b9dda224c1e1988cea82a14460be230ebe423fefc66d +EBUILD thepeg-2.0.0.ebuild 2345 SHA256 4f905b5756b15c630153655dd63e0c45b5013201f5d6809d33692eeead68b6ca SHA512 3ef17477953fdabbf805344ffce4f22027855e9dfe2a5dec8580c3e144cb891f3bf36bc58ecc11a32da78a707d07afed666ca7eb26d3f9a9d3d72250a29710ba WHIRLPOOL cb1e29986057180eb1cd56a53b2850b93c50469700445250ec1f541635f0ba10d5289c3491aa5e69c463611ebc472b57a13c6fd125a79f5e7ec8f5edf8f494ff +EBUILD thepeg-2.0.4.ebuild 2227 SHA256 bca027985043510c847504f9f4019143db82c16c9921cf0c846aa7e9f5de9687 SHA512 72b7869e9e56d947849be6c0291cce6ae1607d77757e1364e4b03e7efea97b19f6e33588e111bafc96633d5086ec5aa3be5c095c33d04d25dba2d4d35c1775c7 WHIRLPOOL 7b2740d5f5aeb509d2cd3b78cd1d7cd1c4ec92e1eae898128c55d0ab9deab409e771353ca097af31032d35a58fa79baedd101cc31fe30fb854b07d28288f992d +MISC ChangeLog 2509 SHA256 db8c890f569e40913ae9e04256171410866681c8c0495de42eb4e71402b181cf SHA512 af2248e7a2a9d4fb1565422d4525e63499a5d77fc5ff51ebee68be2ed5bd9bd747706189cf96a81809b017ffe7fb450793969fa7fdac9f1b7f0d7da3c9ec58f1 WHIRLPOOL af83ca0f3ed92fe2cafb1d50226c8e335039d8c391e46f4f58a79e1030b5f45abf111c6784f5241a1debe7e4b23142e4f15cf79b3736f856983ead64fc136319 +MISC metadata.xml 1066 SHA256 a49853a487c0f8618d6d6529eaa1da6d6a5028ba75ab6c9dd81cfbe580d6b7ea SHA512 f42af9eb2e0cb212ed9c374b9da6775f4857435c5cb418ebef15f39b061b0a2ddb85269aff102e40cc499a9834cb16d24e44d3b3de9de3a26078edfc7162eac5 WHIRLPOOL 3d29946d0a2bdd4eb0dc71ffde636be576482a203e94997ed89eeb30da5c3db6dd3852fb38526306a762965f3676935d47093c10fbfa88f226db62b267bbb10b diff --git a/sci-physics/thepeg/files/thepeg-1.8.3-java.patch b/sci-physics/thepeg/files/thepeg-1.8.3-java.patch new file mode 100644 index 000000000000..305207ef779f --- /dev/null +++ b/sci-physics/thepeg/files/thepeg-1.8.3-java.patch @@ -0,0 +1,37 @@ +--- a/java/Makefile.am ++++ b/java/Makefile.am +@@ -11,8 +12,7 @@ + + CLEANFILES = ThePEG.jar thepeg.sh + +-jardir = $(pkglibdir) +-nodist_jar_DATA = ThePEG.jar ++noinst_DATA = ThePEG.jar + + dist_noinst_DATA = $(JAVASOURCES) jar-manifest + +@@ -34,7 +34,7 @@ + $(JAR) cmf ThePEG/jar-manifest ThePEG.jar ThePEG/*.class + + thepeg.sh: thepeg.install Makefile +- sed -e s:@pkglibdir[@]:$(pkglibdir):g \ ++ sed -e s:@datadir[@]:$(datadir):g \ + -e s:@bindir[@]:$(bindir):g \ + -e s:@java[@]:$(JAVA):g $(srcdir)/thepeg.install > thepeg.sh + chmod +x thepeg.sh +--- a/java/thepeg.install ++++ b/java/thepeg.install +@@ -1,6 +1,6 @@ + #!/bin/sh + +-pkglibdir=@pkglibdir@ ++source @datadir@/thepeg/package.env + bindir=@bindir@ + + ThePEG_CMD="${bindir}/setupThePEG" +@@ -19,4 +19,4 @@ + + + +-exec @java@ ${HEADLESS} -jar ${pkglibdir}/ThePEG.jar ${ThePEG_CMD} "$@" ++exec @java@ ${HEADLESS} -jar ${CLASSPATH} ${ThePEG_CMD} "$@" diff --git a/sci-physics/thepeg/metadata.xml b/sci-physics/thepeg/metadata.xml new file mode 100644 index 000000000000..b98a9450c6f2 --- /dev/null +++ b/sci-physics/thepeg/metadata.xml @@ -0,0 +1,24 @@ + + + + + sci-physics@gentoo.org + Gentoo Physics Project + + + Toolkit for High Energy Physics Event Generation. + ThePEG has been broken out from the PYTHIA7 program + to better factorize the parts which were PYTHIA-specific + from those which are general model-independent components + of the toolkit and which can be used by any event generator model. + + + Build ThePEG using the C++11 standard. + Experimental feature, not for production use. + Adds support for sci-physics/fastjet + Adds support for High Energy Physics Monte Carlo + Generators sci-physics/hepmc + Adds support for sci-physics/lhapdf + Adds support for sci-physics/rivet + + diff --git a/sci-physics/thepeg/thepeg-1.9.2.ebuild b/sci-physics/thepeg/thepeg-1.9.2.ebuild new file mode 100644 index 000000000000..c9f56f360928 --- /dev/null +++ b/sci-physics/thepeg/thepeg-1.9.2.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit autotools-utils elisp-common eutils java-pkg-opt-2 + +MYP=ThePEG-${PV} + +DESCRIPTION="Toolkit for High Energy Physics Event Generation" +HOMEPAGE="http://home.thep.lu.se/ThePEG/" + +TEST_URI="http://www.hepforge.org/archive/lhapdf/pdfsets/current" +SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2 + test? ( hepmc? ( + ${TEST_URI}/cteq6ll.LHpdf + ${TEST_URI}/cteq5l.LHgrid + ${TEST_URI}/GRV98nlo.LHgrid + ${TEST_URI}/MRST2001nlo.LHgrid ) )" +LICENSE="GPL-2" + +SLOT="0/18" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="c++11 emacs fastjet hepmc java lhapdf rivet static-libs test zlib" + +RDEPEND=" + sci-libs/gsl:0= + emacs? ( virtual/emacs ) + fastjet? ( sci-physics/fastjet:0= ) + hepmc? ( sci-physics/hepmc:0= ) + java? ( >=virtual/jre-1.5:* ) + lhapdf? ( sci-physics/lhapdf:0= ) + rivet? ( sci-physics/rivet:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${RDEPEND} + test? ( sys-process/time )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch ) + +src_prepare() { + find -name 'Makefile.am' -exec \ + sed -i -e '1ipkgdatadir=$(datadir)/thepeg' {} \; || die + # trick to force c++ linking + sed -i \ + -e '1inodist_EXTRA_libThePEG_la_SOURCES = dummy.cxx' \ + -e '/dist_pkgdata_DATA = ThePEG.el/d' \ + lib/Makefile.am || die + autotools-utils_src_prepare + java-pkg-opt-2_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable c++11 stdcxx11) + $(use_with fastjet fastjet "${EPREFIX}"/usr) + $(use_with hepmc hepmc "${EPREFIX}"/usr) + $(use_with java javagui) + $(use_with lhapdf lhapdf "${EPREFIX}"/usr) + $(use_with rivet rivet "${EPREFIX}"/usr) + $(use_with zlib zlib "${EPREFIX}"/usr) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use emacs && elisp-compile lib/ThePEG.el +} + +src_test() { + emake LHAPATH="${DISTDIR}" -C "${BUILD_DIR}" check +} + +src_install() { + autotools-utils_src_install + use emacs && elisp-install ${PN} lib/ThePEG.el{,c} + use java && java-pkg_newjar java/ThePEG.jar + + cat <<-EOF > "${T}"/50${PN} + LDPATH="${EPREFIX}/usr/$(get_libdir)/ThePEG" + EOF + doenvd "${T}"/50${PN} +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sci-physics/thepeg/thepeg-2.0.0.ebuild b/sci-physics/thepeg/thepeg-2.0.0.ebuild new file mode 100644 index 000000000000..dc94272fe72e --- /dev/null +++ b/sci-physics/thepeg/thepeg-2.0.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit autotools-utils elisp-common eutils java-pkg-opt-2 + +MYP=ThePEG-${PV} + +DESCRIPTION="Toolkit for High Energy Physics Event Generation" +HOMEPAGE="http://home.thep.lu.se/ThePEG/" + +TEST_URI="http://www.hepforge.org/archive/lhapdf/pdfsets/current" +SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2 + test? ( hepmc? ( + ${TEST_URI}/cteq6ll.LHpdf + ${TEST_URI}/cteq5l.LHgrid + ${TEST_URI}/GRV98nlo.LHgrid + ${TEST_URI}/MRST2001nlo.LHgrid ) )" +LICENSE="GPL-2" + +SLOT="0/20" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="c++11 emacs fastjet hepmc java lhapdf rivet static-libs test zlib" + +RDEPEND=" + sci-libs/gsl:0= + emacs? ( virtual/emacs ) + fastjet? ( sci-physics/fastjet:0= ) + hepmc? ( sci-physics/hepmc:0= ) + java? ( >=virtual/jre-1.5:* ) + lhapdf? ( sci-physics/lhapdf:0= ) + rivet? ( sci-physics/rivet:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${RDEPEND} + test? ( sys-process/time )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch ) + +src_prepare() { + find -name 'Makefile.am' -exec \ + sed -i -e '1ipkgdatadir=$(datadir)/thepeg' {} \; || die + # trick to force c++ linking + sed -i \ + -e '1inodist_EXTRA_libThePEG_la_SOURCES = dummy.cxx' \ + -e '/dist_pkgdata_DATA = ThePEG.el/d' \ + lib/Makefile.am || die + autotools-utils_src_prepare + java-pkg-opt-2_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_enable c++11 stdcxx11) + $(use_with fastjet fastjet "${EPREFIX}"/usr) + $(use_with hepmc hepmc "${EPREFIX}"/usr) + $(use_with java javagui) + $(use_with lhapdf lhapdf "${EPREFIX}"/usr) + $(use_with rivet rivet "${EPREFIX}"/usr) + $(use_with zlib zlib "${EPREFIX}"/usr) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use emacs && elisp-compile lib/ThePEG.el +} + +src_test() { + emake LHAPATH="${DISTDIR}" -C "${BUILD_DIR}" check +} + +src_install() { + autotools-utils_src_install + use emacs && elisp-install ${PN} lib/ThePEG.el{,c} + use java && java-pkg_newjar java/ThePEG.jar + + cat <<-EOF > "${T}"/50${PN} + LDPATH="${EPREFIX}/usr/$(get_libdir)/ThePEG" + EOF + doenvd "${T}"/50${PN} +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sci-physics/thepeg/thepeg-2.0.4.ebuild b/sci-physics/thepeg/thepeg-2.0.4.ebuild new file mode 100644 index 000000000000..84e48567e16a --- /dev/null +++ b/sci-physics/thepeg/thepeg-2.0.4.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools elisp-common java-pkg-opt-2 + +MY_P=ThePEG-${PV} + +DESCRIPTION="Toolkit for High Energy Physics Event Generation" +HOMEPAGE="http://home.thep.lu.se/ThePEG/" + +TEST_URI="http://www.hepforge.org/archive/lhapdf/pdfsets/current" +SRC_URI="http://www.hepforge.org/archive/thepeg/${MY_P}.tar.bz2 + test? ( hepmc? ( + ${TEST_URI}/cteq6ll.LHpdf + ${TEST_URI}/cteq5l.LHgrid + ${TEST_URI}/GRV98nlo.LHgrid + ${TEST_URI}/MRST2001nlo.LHgrid ) )" +LICENSE="GPL-2" + +SLOT="0/20" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="c++11 emacs fastjet hepmc java lhapdf rivet static-libs test zlib" + +RDEPEND=" + sci-libs/gsl:0= + emacs? ( virtual/emacs ) + fastjet? ( sci-physics/fastjet:0= ) + hepmc? ( sci-physics/hepmc:0= ) + java? ( >=virtual/jre-1.5:* ) + lhapdf? ( >=sci-physics/lhapdf-6.0:0= ) + rivet? ( sci-physics/rivet:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${RDEPEND} + test? ( sys-process/time )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch ) + +src_prepare() { + find -name 'Makefile.am' -exec \ + sed -i -e '1ipkgdatadir=$(datadir)/thepeg' {} \; || die + # trick to force c++ linking + sed -i \ + -e '1inodist_EXTRA_libThePEG_la_SOURCES = dummy.cxx' \ + -e '/dist_pkgdata_DATA = ThePEG.el/d' \ + lib/Makefile.am || die + default + java-pkg-opt-2_src_prepare + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_enable c++11 stdcxx11) \ + $(use_with fastjet fastjet "${EPREFIX}"/usr) \ + $(use_with hepmc hepmc "${EPREFIX}"/usr) \ + $(use_with java javagui) \ + $(use_with lhapdf lhapdf "${EPREFIX}"/usr) \ + $(use_with rivet rivet "${EPREFIX}"/usr) \ + $(use_with zlib zlib "${EPREFIX}"/usr) +} + +src_compile() { + default + use emacs && elisp-compile lib/ThePEG.el +} + +src_test() { + emake LHAPATH="${DISTDIR}" check +} + +src_install() { + default + use emacs && elisp-install ${PN} lib/ThePEG.el{,c} + use java && java-pkg_newjar java/ThePEG.jar + + cat <<-EOF > "${T}"/50${PN} + LDPATH="${EPREFIX}/usr/$(get_libdir)/ThePEG" + EOF + doenvd "${T}"/50${PN} +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} -- cgit v1.2.3