diff options
| -rw-r--r-- | sci-physics/yoda/metadata.xml | 1 | ||||
| -rw-r--r-- | sci-physics/yoda/yoda-9999.ebuild | 4 |
2 files changed, 4 insertions, 1 deletions
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) \ |
