commit: e070e6bb6a46a521969f6afa7a2656281fd5dac1 Author: Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org> AuthorDate: Sat Oct 25 11:03:36 2025 +0000 Commit: Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org> CommitDate: Wed Oct 29 10:27:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e070e6bb
sci-physics/yoda: add 2.1.2 Part-of: https://github.com/gentoo/gentoo/pull/44329 Closes: https://github.com/gentoo/gentoo/pull/44329 Signed-off-by: Alexander Puck Neuwirth <apn-pucky <AT> gentoo.org> sci-physics/yoda/Manifest | 1 + sci-physics/yoda/yoda-2.1.2.ebuild | 109 +++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest index 31e528c852eb..a3050b37d98e 100644 --- a/sci-physics/yoda/Manifest +++ b/sci-physics/yoda/Manifest @@ -3,3 +3,4 @@ DIST YODA-1.9.5.tar.bz2 1077442 BLAKE2B 010ab725c57dfab8160e0304d461dc44c140d1ce DIST YODA-2.0.2.tar.bz2 1869694 BLAKE2B cb5628bbfe0ecdd59073ff49496cd79ff6df95d94bbb36463c9de2cd6f576d0a8b8b4c1373f7f06354bb1ceb190a461cf61b4367085c44c44c5fb3982061a3ba SHA512 214f2caa2610a959588b1440fc66e238023829ca2fe7cf0e2f818891dd8db62fc0db288ac03c885c26c8de2a8813cd08deb53cefa0fb7d659b9b129d94d707c7 DIST YODA-2.1.0.tar.bz2 1935119 BLAKE2B fe8e50759dd4191fb5f1ea8c20ff5a2bdaf444c81234b635c9566ac6f8248991eb998a31a0504bae1ac6ec47f8735ce263382ccdd800f201072cfe4c1d44dc57 SHA512 e17ec7e64082c835e98e4c03eb9d3128a2345b999d3d3a30b7b5b4b34afafd6d51c164011c5357c6fc38b35a511d8f98183de0d9edb13e32a73d5024733b02fc DIST YODA-2.1.1.tar.bz2 1023366 BLAKE2B de09ddfaddf365e35c83ba8e514638b91180c251bedb3009252be7bb2c08dbe64f98bea54dad3867906f20dac633c53182da7395d765e3a18cfa1157b7388222 SHA512 961426b17abbdee271a156965bb12a502a57e844e5ea4e5e7d201629aaf0b586684f99a71cba61de19fafc209cfbd653ff2601bc4915b2727cc36400c49ff5c8 +DIST YODA-2.1.2.tar.bz2 1022526 BLAKE2B 75f13b04b66b632c66e2442f8bf8ccdb23ce15eec88e9b26a7924d0dc0e4ca80be0eadaf032aeec489a48b2b21beb9656d4f8fdf03ece02dca81133e23850d8d SHA512 39c21f97333c98744006d39903c3cdfd617a8ab6fc253f08412898e8998678963912bd6c6fb0b7bb58e162f48658606d9cdb891f12bc64ff730b158292ff9a85 diff --git a/sci-physics/yoda/yoda-2.1.2.ebuild b/sci-physics/yoda/yoda-2.1.2.ebuild new file mode 100644 index 000000000000..7972bc49c7ac --- /dev/null +++ b/sci-physics/yoda/yoda-2.1.2.ebuild @@ -0,0 +1,109 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) + +inherit bash-completion-r1 python-single-r1 optfeature autotools + +DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis" +HOMEPAGE="https://yoda.hepforge.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/hepcedar/yoda" + EGIT_BRANCH="main" +else + SRC_URI="https://yoda.hepforge.org/downloads?f=${P^^}.tar.bz2 -> ${P^^}.tar.bz2" + S="${WORKDIR}/${P^^}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0/${PV}" +IUSE="test +highfive +python +zlib" +RESTRICT="!test? ( test )" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-cpp/yaml-cpp + highfive? ( + sci-libs/HighFive + sci-libs/hdf5[cxx] + ) + python? ( ${PYTHON_DEPS} ) + zlib? ( sys-libs/zlib ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + python? ( + $(python_gen_cond_dep ' + >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] + ') + test? ( + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + ') + ) + ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + # reconf due to 9999 version + eautoreconf +} + +src_configure() { + # we need to use the prefix cython here + econf --disable-static \ + --with-yaml-cpp="${EPREFIX}/usr" \ + $(use_enable highfive h5) \ + $(use_with highfive highfive "${ESYSROOT}/usr") \ + $(use_enable python pyext) \ + $(use_with zlib zlib "${ESYSROOT}/usr") \ + $(usex python CYTHON="${ESYSROOT}/usr/bin/cython") +} + +src_test() { + # PYTESTS and SHTESTS both require python tools + if use python; then + emake check + else + emake check PYTESTS= SHTESTS= NO_PYTHON=1 + fi +} + +src_install() { + default + + if use python ; then + newbashcomp "${ED}"/etc/bash_completion.d/${PN}-completion ${PN}-config + bashcomp_alias ${PN}-config \ + ${PN}ls \ + ${PN}diff \ + ${PN}merge \ + ${PN}stack \ + ${PN}scale \ + ${PN}plot \ + ${PN}envelope \ + ${PN}cnv \ + ${PN}2root + rm "${ED}"/etc/bash_completion.d/${PN}-completion || die + python_optimize + fi + + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + optfeature "root conversion" sci-physics/root + optfeature "latex plotting support" virtual/latex-base + optfeature "python plotting support" dev-python/matplotlib +}
