commit: a5489f2850dae25a5c2d8197ca78623b1f6e3404 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Mon Dec 29 16:30:29 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Tue Dec 30 21:28:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5489f28
sci-physics/rivet: drop IUSE hepmc2, hepmc3; minor ebuild style cleanup Unconditionally require sci-physics/hepmc:3 to finally allow sci-physics/hepmc:2 cleanup. Bug: https://bugs.gentoo.org/968135 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> sci-physics/rivet/rivet-3.1.11-r1.ebuild | 107 +++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/sci-physics/rivet/rivet-3.1.11-r1.ebuild b/sci-physics/rivet/rivet-3.1.11-r1.ebuild new file mode 100644 index 000000000000..a57cfacc9e70 --- /dev/null +++ b/sci-physics/rivet/rivet-3.1.11-r1.ebuild @@ -0,0 +1,107 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P=Rivet-${PV} +PYTHON_COMPAT=( python3_{11..13} ) +inherit python-single-r1 flag-o-matic autotools optfeature bash-completion-r1 + +DESCRIPTION="Robust Independent Validation of Experiment and Theory toolkit" +HOMEPAGE=" + https://rivet.hepforge.org/ + https://gitlab.com/hepcedar/rivet +" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/hepcedar/rivet" +else + SRC_URI="https://www.hepforge.org/archive/rivet/${MY_P}.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/${MY_P} + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="4/${PV}" +IUSE="+zlib +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + >=sci-physics/fastjet-3.4.0[plugins] + >=sci-physics/fastjet-contrib-1.048 + <sci-physics/hepmc-3.3.0:3=[-cm(-),gev(+)] + sci-libs/gsl + zlib? ( virtual/zlib:= ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/matplotlib[${PYTHON_USEDEP}] + ') + >=sci-physics/yoda-1.9.8[${PYTHON_SINGLE_USEDEP}] + <sci-physics/yoda-2[${PYTHON_SINGLE_USEDEP}] + ) + !python? ( + >=sci-physics/yoda-1.9.8 + <sci-physics/yoda-2 + ) +" +RDEPEND="${DEPEND} + !sci-physics/rivet:3 +" +BDEPEND=" + app-shells/bash + python? ( + $(python_gen_cond_dep ' + >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] + ') + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.6-binreloc.patch + "${FILESDIR}"/${PN}-3.1.9-pythontests.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # Eigen complains about alignment (see https://gitlab.com/libeigen/eigen/-/issues/2523). + # does this affect more cpus? + replace-cpu-flags znver1 x86-64 + # not posix compatible, only bash + CONFIG_SHELL=${ESYSROOT}/bin/bash econf \ + $(use_with zlib zlib "${ESYSROOT}/usr") \ + --with-hepmc3="${ESYSROOT}/usr" \ + --with-yoda="${ESYSROOT}/usr" \ + --with-fastjet="${ESYSROOT}/usr" \ + $(use_enable python pyext) \ + $(usex python CYTHON="${ESYSROOT}/usr/bin/cython") +} + +src_install() { + default + use python && python_optimize + find "${ED}" -name '*.la' -delete || die + if use python ; then + newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN} + bashcomp_alias ${PN} ${PN}-config \ + ${PN}-build \ + ${PN}-buildplugin \ + ${PN}-cmphistos \ + make-plots \ + ${PN}-mkhtml \ + ${PN}-mkhtml-mpl + rm "${ED}"/etc/bash_completion.d/${PN}-completion || die + fi +} + +pkg_postinstall() { + optfeature "plotting support" virtual/latex-base media-gfx/imagemagick app-text/ghostscript-gpl +}
