commit:     28817b8834e8b163ac01c392507f714e8525e0f7
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Mon Mar 17 14:52:42 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Tue Mar 18 11:08:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28817b88

sci-physics/yoda: add 2.1.0

Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 sci-physics/yoda/Manifest                                |  1 +
 sci-physics/yoda/metadata.xml                            |  1 +
 sci-physics/yoda/{yoda-9999.ebuild => yoda-2.1.0.ebuild} | 15 +++++++++------
 sci-physics/yoda/yoda-9999.ebuild                        | 15 +++++++++------
 4 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/sci-physics/yoda/Manifest b/sci-physics/yoda/Manifest
index d895ce91e722..d32eec15f0ca 100644
--- a/sci-physics/yoda/Manifest
+++ b/sci-physics/yoda/Manifest
@@ -2,3 +2,4 @@ DIST YODA-1.9.10.tar.bz2 1278729 BLAKE2B 
f6ae9b579d79b6be62e9644e327f0b449882c0f
 DIST YODA-1.9.5.tar.bz2 1077442 BLAKE2B 
010ab725c57dfab8160e0304d461dc44c140d1ce234f3b70834ee58b8f269159529122095a94e6b79ef752612a6659a17e1874fda2941cfbcec1f53802916b6a
 SHA512 
46e30b33d369f5d28ec228b71eaa298f3010cc06fe568785c74bbaf3d7468c26738cc2ee40da9bcc54d978f394187a2ee9289197283c86a3358583a3c0ecd247
 DIST YODA-2.0.1.tar.bz2 1842004 BLAKE2B 
56c2de8acad92510a49abab0d19568f19de3442f1f941784b85c9bded9c14f82fc2cf0eb555721cedcab81e024a9d89ffcf200b54598ed87c1d6de4c7bc59824
 SHA512 
abd2728e4dc76474d3bf4d478143f4b2b15a596259c49080be37269386f8353cb3f961cc850718ff8fec5d73f96377d6a9103b5bf3cc7f7c703f47c91d929549
 DIST YODA-2.0.2.tar.bz2 1869694 BLAKE2B 
cb5628bbfe0ecdd59073ff49496cd79ff6df95d94bbb36463c9de2cd6f576d0a8b8b4c1373f7f06354bb1ceb190a461cf61b4367085c44c44c5fb3982061a3ba
 SHA512 
214f2caa2610a959588b1440fc66e238023829ca2fe7cf0e2f818891dd8db62fc0db288ac03c885c26c8de2a8813cd08deb53cefa0fb7d659b9b129d94d707c7
+DIST YODA-2.1.0.tar.bz2 1935119 BLAKE2B 
fe8e50759dd4191fb5f1ea8c20ff5a2bdaf444c81234b635c9566ac6f8248991eb998a31a0504bae1ac6ec47f8735ce263382ccdd800f201072cfe4c1d44dc57
 SHA512 
e17ec7e64082c835e98e4c03eb9d3128a2345b999d3d3a30b7b5b4b34afafd6d51c164011c5357c6fc38b35a511d8f98183de0d9edb13e32a73d5024733b02fc

diff --git a/sci-physics/yoda/metadata.xml b/sci-physics/yoda/metadata.xml
index 0d6af921fec9..bcc241999531 100644
--- a/sci-physics/yoda/metadata.xml
+++ b/sci-physics/yoda/metadata.xml
@@ -22,6 +22,7 @@
   </longdescription>
   <use>
     <flag name="root">Adds support for <pkg>sci-physics/root</pkg></flag>
+    <flag name="highfive">Build with <pkg>sci-libs/HighFive</pkg> and 
<pkg>sci-libs/hdf5</pkg></flag>
   </use>
   <upstream>
     <remote-id type="gitlab">hepcedar/yoda</remote-id>

diff --git a/sci-physics/yoda/yoda-9999.ebuild 
b/sci-physics/yoda/yoda-2.1.0.ebuild
similarity index 88%
copy from sci-physics/yoda/yoda-9999.ebuild
copy to sci-physics/yoda/yoda-2.1.0.ebuild
index 949e13b94b55..7972bc49c7ac 100644
--- a/sci-physics/yoda/yoda-9999.ebuild
+++ b/sci-physics/yoda/yoda-2.1.0.ebuild
@@ -22,14 +22,16 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="root test +python +zlib"
+IUSE="test +highfive +python +zlib"
 RESTRICT="!test? ( test )"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
        dev-cpp/yaml-cpp
-       dev-libs/tinyxml
-       root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] )
+       highfive? (
+               sci-libs/HighFive
+               sci-libs/hdf5[cxx]
+       )
        python? ( ${PYTHON_DEPS} )
        zlib? ( sys-libs/zlib )
 "
@@ -62,8 +64,8 @@ src_configure() {
        # we need to use the prefix cython here
        econf --disable-static \
                --with-yaml-cpp="${EPREFIX}/usr" \
-               --with-tinyxml="${EPREFIX}/usr" \
-               $(use_enable root) \
+               $(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")
@@ -101,6 +103,7 @@ src_install() {
 }
 
 pkg_postinst() {
+       optfeature "root conversion" sci-physics/root
        optfeature "latex plotting support" virtual/latex-base
        optfeature "python plotting support" dev-python/matplotlib
 }

diff --git a/sci-physics/yoda/yoda-9999.ebuild 
b/sci-physics/yoda/yoda-9999.ebuild
index 949e13b94b55..7972bc49c7ac 100644
--- a/sci-physics/yoda/yoda-9999.ebuild
+++ b/sci-physics/yoda/yoda-9999.ebuild
@@ -22,14 +22,16 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="root test +python +zlib"
+IUSE="test +highfive +python +zlib"
 RESTRICT="!test? ( test )"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) root? ( python )"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
        dev-cpp/yaml-cpp
-       dev-libs/tinyxml
-       root? ( sci-physics/root:=[${PYTHON_SINGLE_USEDEP}] )
+       highfive? (
+               sci-libs/HighFive
+               sci-libs/hdf5[cxx]
+       )
        python? ( ${PYTHON_DEPS} )
        zlib? ( sys-libs/zlib )
 "
@@ -62,8 +64,8 @@ src_configure() {
        # we need to use the prefix cython here
        econf --disable-static \
                --with-yaml-cpp="${EPREFIX}/usr" \
-               --with-tinyxml="${EPREFIX}/usr" \
-               $(use_enable root) \
+               $(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")
@@ -101,6 +103,7 @@ src_install() {
 }
 
 pkg_postinst() {
+       optfeature "root conversion" sci-physics/root
        optfeature "latex plotting support" virtual/latex-base
        optfeature "python plotting support" dev-python/matplotlib
 }

Reply via email to