diff options
author | Sam James <sam@gentoo.org> | 2021-03-28 00:10:22 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-28 01:13:48 +0000 |
commit | 3e1ecdd7fdf6972db07119f7840359ff48ef22e0 (patch) | |
tree | 2eeecb8c6d11b0fea499e2a2fa7561c4a2025f73 /sci-physics | |
parent | sci-libs/netcdf-cxx: drop static-libs (diff) | |
download | gentoo-3e1ecdd7fdf6972db07119f7840359ff48ef22e0.tar.gz gentoo-3e1ecdd7fdf6972db07119f7840359ff48ef22e0.tar.bz2 gentoo-3e1ecdd7fdf6972db07119f7840359ff48ef22e0.zip |
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@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/herwig++/herwig++-2.7.1-r1.ebuild | 46 |
1 files 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 33fcc97e82f2..0efec5352f5b 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 } |