blob: 0efec5352f5b2d4a93069533c573632b115ce05b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic
MYP=Herwig++-${PV}
DESCRIPTION="High-Energy Physics event generator"
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"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="c++11 fastjet static-libs"
# >sci-physics/looptools-2.8 leads to misoperation
# and failing tests (it lacks some symbols)
RDEPEND="
dev-libs/boost:0=
sci-libs/gsl:0=
<=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
"
src_prepare() {
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
eautoreconf
}
src_configure() {
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)
)
econf "${myeconfargs[@]}"
}
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
}
|