Install this version:
emerge -a =sci-physics/madgraph5-pythia8-interface-1.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-physics/madgraph5-pythia8-interface-1.3
Or alternatively:
emerge --autounmask-write -a =sci-physics/madgraph5-pythia8-interface-1.3
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.3 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Interface to pythia8 for madgraph5"
HOMEPAGE="
https://github.com/mg5amcnlo/MG5aMC_PY8_interface
"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/mg5amcnlo/MG5aMC_PY8_interface"
EGIT_BRANCH="main"
else
SRC_URI="http://madgraph.phys.ucl.ac.be//Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V${PV}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}"
fi
LICENSE="UoI-NCSA"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
sci-physics/pythia:8=[static-libs(-),hepmc2(-),examples]
"
BDEPEND="sci-physics/madgraph5"
DEPEND="${RDEPEND}"
src_compile() {
tc-export CXX
${CXX} \
${CXXFLAGS} MG5aMC_PY8_interface.cc -o MG5aMC_PY8_interface \
$(pythia8-config --ldflags) -lHepMC ${LDFLAGS} || die
echo "$(pythia8-config --version)" >> PYTHIA8_VERSION_ON_INSTALL || die
ver=$(best_version sci-physics/madgraph5)
echo "${ver##*-}" >> MG5AMC_VERSION_ON_INSTALL || die
}
src_install() {
insinto /opt/${PN}
exeinto /opt/${PN}
doexe MG5aMC_PY8_interface
doins MG5AMC_VERSION_ON_INSTALL
doins PYTHIA8_VERSION_ON_INSTALL
doins VERSION
doins MultiHist.h
doins SyscalcVeto.h
}
sci-physics/pythia:8=[static-libs(-),hepmc2(-),examples]
sci-physics/pythia:8=[static-libs(-),hepmc2(-),examples]
sci-physics/madgraph5
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | MG5aMC_PY8_interface_V1.3.tar.gz | 19554 bytes | http://madgraph.phys.ucl.ac.be//Downloads/MG5aMC_PY8_interface/MG5aMC_PY8_interface_V1.3.tar.gz |