From 8805c295703f838efe0b435a2915b32bbc35f077 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Mon, 22 Apr 2024 15:12:42 +0200 Subject: sci-physics/thepeg: rename USE flag hepmc -> +hepmc3 Signed-off-by: Alexander Puck Neuwirth Closes: https://github.com/gentoo/gentoo/pull/36341 Signed-off-by: Andrew Ammerlaan --- sci-physics/thepeg/thepeg-2.2.3-r1.ebuild | 103 ++++++++++++++++++++++++++++++ sci-physics/thepeg/thepeg-2.2.3.ebuild | 103 ------------------------------ 2 files changed, 103 insertions(+), 103 deletions(-) create mode 100644 sci-physics/thepeg/thepeg-2.2.3-r1.ebuild delete mode 100644 sci-physics/thepeg/thepeg-2.2.3.ebuild diff --git a/sci-physics/thepeg/thepeg-2.2.3-r1.ebuild b/sci-physics/thepeg/thepeg-2.2.3-r1.ebuild new file mode 100644 index 000000000000..d1dbd3dcc513 --- /dev/null +++ b/sci-physics/thepeg/thepeg-2.2.3-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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="https://www.hepforge.org/archive/lhapdf/pdfsets/current" +SRC_URI="https://www.hepforge.org/archive/thepeg/${MY_P}.tar.bz2 + test? ( hepmc3? ( + ${TEST_URI}/cteq6ll.LHpdf + ${TEST_URI}/cteq5l.LHgrid + ${TEST_URI}/GRV98nlo.LHgrid + ${TEST_URI}/MRST2001nlo.LHgrid ) )" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3" +SLOT="0/30" +KEYWORDS="~amd64 ~x86" +IUSE="emacs fastjet +hepmc3 java lhapdf static-libs test zlib" +RESTRICT="!test? ( test )" + +CDEPEND=" + sci-libs/gsl:0= + emacs? ( >=app-editors/emacs-23.1:* ) + fastjet? ( sci-physics/fastjet:0= ) + hepmc3? ( sci-physics/hepmc:3= ) + lhapdf? ( >=sci-physics/lhapdf-6.0:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${CDEPEND} + java? ( virtual/jdk:1.8 ) + test? ( + sys-process/time + dev-libs/boost + )" +RDEPEND="${CDEPEND} + java? ( virtual/jre:1.8 )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.8.3-java.patch + "${FILESDIR}"/${PN}-2.0.4-gcc6.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_with fastjet fastjet "${EPREFIX}"/usr) \ + $(use_with hepmc3 hepmc "${EPREFIX}"/usr) \ + $(use_with hepmc3 hepmcversion 3) \ + $(use_with java javagui) \ + $(use_with lhapdf lhapdf "${EPREFIX}"/usr) \ + $(use_with test boost "${EPREFIX}"/usr) \ + --without-rivet \ + $(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} + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sci-physics/thepeg/thepeg-2.2.3.ebuild b/sci-physics/thepeg/thepeg-2.2.3.ebuild deleted file mode 100644 index 0d83d03fffcb..000000000000 --- a/sci-physics/thepeg/thepeg-2.2.3.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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="https://www.hepforge.org/archive/lhapdf/pdfsets/current" -SRC_URI="https://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 ) )" -S="${WORKDIR}/${MY_P}" - -LICENSE="GPL-3" -SLOT="0/30" -KEYWORDS="~amd64 ~x86" -IUSE="emacs fastjet hepmc java lhapdf static-libs test zlib" -RESTRICT="!test? ( test )" - -CDEPEND=" - sci-libs/gsl:0= - emacs? ( >=app-editors/emacs-23.1:* ) - fastjet? ( sci-physics/fastjet:0= ) - hepmc? ( sci-physics/hepmc:3= ) - lhapdf? ( >=sci-physics/lhapdf-6.0:0= ) - zlib? ( sys-libs/zlib:0= )" -DEPEND="${CDEPEND} - java? ( virtual/jdk:1.8 ) - test? ( - sys-process/time - dev-libs/boost - )" -RDEPEND="${CDEPEND} - java? ( virtual/jre:1.8 )" - -PATCHES=( - "${FILESDIR}"/${PN}-1.8.3-java.patch - "${FILESDIR}"/${PN}-2.0.4-gcc6.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_with fastjet fastjet "${EPREFIX}"/usr) \ - $(use_with hepmc hepmc "${EPREFIX}"/usr) \ - $(use_with hepmc hepmcversion 3) \ - $(use_with java javagui) \ - $(use_with lhapdf lhapdf "${EPREFIX}"/usr) \ - $(use_with test boost "${EPREFIX}"/usr) \ - --without-rivet \ - $(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} - - find "${ED}" -name '*.la' -delete || die -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} -- cgit v1.2.3-65-gdbad