| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 7.3.0 | 8 | ~amd64 | 7 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..13} )
inherit fortran-2 python-single-r1 autotools
MY_PN="Herwig"
MY_PF=${MY_PN}-${PV}
DESCRIPTION="Herwig is a multi-purpose particle physics event generator."
HOMEPAGE="https://herwig.hepforge.org/"
SRC_URI="https://herwig.hepforge.org/downloads?f=${MY_PF}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${MY_PF}"
LICENSE="GPL-3+"
SLOT="7"
KEYWORDS="~amd64"
IUSE="+pythia" # madgraph openloops gosam vbfnlo njet
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
"
RDEPEND="
>=dev-libs/boost-1.62
>=sci-libs/gsl-2.6
sci-physics/fastjet
sci-physics/lhapdf-sets[lhapdf_sets_ct14lo,lhapdf_sets_ct14nlo]
>=sci-physics/lhapdf-6.1.6[python(+),${PYTHON_SINGLE_USEDEP}]
>=sci-physics/thepeg-2.1.0[lhapdf,fastjet,-hepmc2(-),hepmc3(-),rivet(-)]
>=sci-physics/evtgen-02.02.00[pythia]
<sci-physics/evtgen-02.02.03[pythia]
pythia? ( sci-physics/pythia:8= )
${PYTHON_DEPS}
"
# madgraph? ( sci-physics/madgraph5 )
# openloops? ( sci-physics/openloops )
# gosam? ( sci-physics/gosam )
# vbfnlo? ( sci-physics/vbfnlo )
# njet? ( sci-physics/njet )
DEPEND="${RDEPEND}"
src_prepare() {
default
eautoreconf
}
# https://herwig.hepforge.org/tutorials/installation/manual.html
# Minimal installation for now
src_configure() {
CONFIG_SHELL=${ESYSROOT}/bin/bash \
econf \
--with-evtgen="${EPREFIX}"/usr \
--with-fastjet="${EPREFIX}"/usr \
--with-thepeg="${EPREFIX}"/usr \
--with-boost="${EPREFIX}"/usr \
$(use_with pythia pythia "${EPREFIX}"/usr) \
# $(use_with madgraph madgraph "${EPREFIX}"/opt/MadGraph5/ ) \
# $(use_with openloops openloops "${EPREFIX}"/opt/OpenLoops2/ ) \
# $(use_with gosam gosam "${EPREFIX}"/usr) \
# $(use_with vbfnlo vbfnlo "${EPREFIX}"/usr) \
# $(use_with njet njet "${EPREFIX}"/usr)
}
src_install() {
default
}
>=dev-libs/boost-1.62
>=sci-libs/gsl-2.6
sci-physics/fastjet
sci-physics/lhapdf-sets[lhapdf_sets_ct14lo,lhapdf_sets_ct14nlo]
>=sci-physics/lhapdf-6.1.6[python(+),${PYTHON_SINGLE_USEDEP}]
>=sci-physics/thepeg-2.1.0[lhapdf,fastjet,-hepmc2(-),hepmc3(-),rivet(-)]
>=sci-physics/evtgen-02.02.00[pythia]
<sci-physics/evtgen-02.02.03[pythia]
pythia? ( sci-physics/pythia:8= )
${PYTHON_DEPS}
>=dev-libs/boost-1.62
>=sci-libs/gsl-2.6
sci-physics/fastjet
sci-physics/lhapdf-sets[lhapdf_sets_ct14lo,lhapdf_sets_ct14nlo]
>=sci-physics/lhapdf-6.1.6[python(+),${PYTHON_SINGLE_USEDEP}]
>=sci-physics/thepeg-2.1.0[lhapdf,fastjet,-hepmc2(-),hepmc3(-),rivet(-)]
>=sci-physics/evtgen-02.02.00[pythia]
<sci-physics/evtgen-02.02.03[pythia]
pythia? ( sci-physics/pythia:8= )
${PYTHON_DEPS}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | herwig-7.3.0.tar.bz2 | 4264666 bytes | https://herwig.hepforge.org/downloads?f=Herwig-7.3.0.tar.bz2 |