From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/herwig++/
Date: Sun, 28 Mar 2021 01:14:42 +0000 (UTC) [thread overview]
Message-ID: <1616894028.3e1ecdd7fdf6972db07119f7840359ff48ef22e0.sam@gentoo> (raw)
commit: 3e1ecdd7fdf6972db07119f7840359ff48ef22e0
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 28 00:10:22 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 01:13:48 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e1ecdd7
sci-physics/herwig++: port to EAPI 7 despite last-rites
* Port to EAPI 7
* Drop autotools-utils
This lets us get closer to removing autotools-utils.
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-physics/herwig++/herwig++-2.7.1-r1.ebuild | 46 ++++++++++++++++-----------
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/sci-physics/herwig++/herwig++-2.7.1-r1.ebuild b/sci-physics/herwig++/herwig++-2.7.1-r1.ebuild
index 33fcc97e82f..0efec5352f5 100644
--- a/sci-physics/herwig++/herwig++-2.7.1-r1.ebuild
+++ b/sci-physics/herwig++/herwig++-2.7.1-r1.ebuild
@@ -1,18 +1,16 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-AUTOTOOLS_AUTORECONF=1
-AUTOTOOLS_IN_SOURCE_BUILD=1
-
-inherit autotools-utils eutils flag-o-matic multilib
+inherit autotools flag-o-matic
MYP=Herwig++-${PV}
DESCRIPTION="High-Energy Physics event generator"
-HOMEPAGE="http://herwig.hepforge.org/"
-SRC_URI="http://www.hepforge.org/archive/herwig/${MYP}.tar.bz2"
+HOMEPAGE="https://herwig.hepforge.org/"
+SRC_URI="https://www.hepforge.org/archive/herwig/${MYP}.tar.bz2"
+S="${WORKDIR}/${MYP}"
SLOT="0/15"
LICENSE="GPL-2"
@@ -27,36 +25,46 @@ RDEPEND="
<=sci-physics/looptools-2.8:0=
~sci-physics/thepeg-1.9.2:0=
fastjet? ( sci-physics/fastjet:0= )"
-DEPEND="${RDEPEND}
- >=sys-devel/boost-m4-0.4_p20160328"
+DEPEND="
+ ${RDEPEND}
+ >=sys-devel/boost-m4-0.4_p20160328
+"
-S="${WORKDIR}/${MYP}"
src_prepare() {
- epatch \
- "${FILESDIR}"/${PN}-2.6.3-looptools.patch \
- "${FILESDIR}"/${PN}-2.7.1-fix-boost-1.67.patch
+ default
+
+ eapply -p0 "${FILESDIR}"/${PN}-2.6.3-looptools.patch
+ eapply "${FILESDIR}"/${PN}-2.7.1-fix-boost-1.67.patch
+
+
# fixes bug 570458, which is due to an outdated bundled boost.m4
rm m4/boost.m4 || die
+
find -name 'Makefile.am' -exec \
sed -i -e '1ipkgdatadir=$(datadir)/herwig++' {} \; || die
- autotools-utils_src_prepare
+
+ eautoreconf
}
src_configure() {
- use prefix && \
- append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir)/ThePEG
+ if use prefix ; then
+ append-ldflags -Wl,-rpath,"${EPREFIX}/usr/$(get_libdir)/ThePEG"
+ fi
+
local myeconfargs=(
--with-boost="${EPREFIX}"/usr
--with-thepeg="${EPREFIX}"/usr
$(use_enable c++11 stdcxx11)
$(use_with fastjet fastjet "${EPREFIX}"/usr)
)
- autotools-utils_src_configure
+
+ econf "${myeconfargs[@]}"
}
src_install() {
- autotools-utils_src_install
+ default
+
sed -i -e "s|${ED}||g" "${ED}"/usr/share/herwig++/defaults/PDF.in || die
sed -i -e "s|${ED}||g" "${ED}"/usr/share/herwig++/HerwigDefaults.rpo || die
}
next reply other threads:[~2021-03-28 1:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-28 1:14 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-28 1:29 [gentoo-commits] repo/gentoo:master commit in: sci-physics/herwig++/ Sam James
2016-08-07 8:28 Pacho Ramos
2016-03-28 14:45 David Seifert
2016-01-05 19:48 Jauhien Piatlicki
2015-11-27 10:09 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1616894028.3e1ecdd7fdf6972db07119f7840359ff48ef22e0.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox