From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0AEED139337 for ; Mon, 26 Jul 2021 11:06:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A700E0985; Mon, 26 Jul 2021 11:06:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 114BBE0985 for ; Mon, 26 Jul 2021 11:06:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 10726342ADF for ; Mon, 26 Jul 2021 11:06:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 485007D0 for ; Mon, 26 Jul 2021 11:06:15 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1627297566.c6e806aad14a88af6a5e1eb8dbdb0002edf8f915.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/thepeg/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-physics/thepeg/thepeg-2.0.4-r1.ebuild X-VCS-Directories: sci-physics/thepeg/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: c6e806aad14a88af6a5e1eb8dbdb0002edf8f915 X-VCS-Branch: master Date: Mon, 26 Jul 2021 11:06:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e53293bf-1837-44b2-bca5-4399c6366ca4 X-Archives-Hash: 9921e8a0e04c7fb69f8cb1015902d438 commit: c6e806aad14a88af6a5e1eb8dbdb0002edf8f915 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Wed Jul 7 13:48:07 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Mon Jul 26 11:06:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6e806aa sci-physics/thepeg: min java 1.8 Closes: https://bugs.gentoo.org/798732 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Andrew Ammerlaan gentoo.org> sci-physics/thepeg/thepeg-2.0.4-r1.ebuild | 98 +++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/sci-physics/thepeg/thepeg-2.0.4-r1.ebuild b/sci-physics/thepeg/thepeg-2.0.4-r1.ebuild new file mode 100644 index 00000000000..30b441b5a8e --- /dev/null +++ b/sci-physics/thepeg/thepeg-2.0.4-r1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ) )" + +LICENSE="GPL-2" +SLOT="0/20" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="c++11 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:0= ) + lhapdf? ( >=sci-physics/lhapdf-6.0:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${CDEPEND} + java? ( virtual/jdk:1.8 ) + test? ( sys-process/time )" +RDEPEND="${CDEPEND} + java? ( virtual/jre:1.8 )" + +S="${WORKDIR}/${MY_P}" + +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_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) \ + --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} +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}