commit:     1bca489fa279ab26015a08494ecf398ca08fb6a2
Author:     Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  9 16:00:32 2025 +0000
Commit:     Alexander Puck Neuwirth <apn-pucky <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 06:37:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bca489f

sci-physics/yoda: add new optional eigen dependency

Co-authored-by: Paul Zander <negril.nx <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44971
Signed-off-by: Alexander Puck Neuwirth <apn-pucky <AT> gentoo.org>

 sci-physics/yoda/metadata.xml     | 1 +
 sci-physics/yoda/yoda-9999.ebuild | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-physics/yoda/metadata.xml b/sci-physics/yoda/metadata.xml
index 658b2aaa1e0c..c4c70e12f001 100644
--- a/sci-physics/yoda/metadata.xml
+++ b/sci-physics/yoda/metadata.xml
@@ -19,6 +19,7 @@
   <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>
+    <flag name="eigen">Build with <pkg>dev-cpp/eigen</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-9999.ebuild
index 57b68f78d196..7cd15b39b465 100644
--- a/sci-physics/yoda/yoda-9999.ebuild
+++ b/sci-physics/yoda/yoda-9999.ebuild
@@ -22,12 +22,13 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="test +highfive +python +zlib"
+IUSE="test +eigen +highfive +python +zlib"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
        dev-cpp/yaml-cpp
+       eigen? ( dev-cpp/eigen:3= )
        highfive? (
                sci-libs/highfive
                sci-libs/hdf5[cxx]
@@ -64,6 +65,7 @@ src_configure() {
        # we need to use the prefix cython here
        econf --disable-static \
                --with-yaml-cpp="${EPREFIX}/usr" \
+               $(use_with eigen eigen "${EPREFIX}/usr/include/eigen3") \
                $(use_enable highfive h5) \
                $(use_with highfive highfive "${ESYSROOT}/usr") \
                $(use_enable python pyext) \

Reply via email to