diff --git a/sys-cluster/sionlib/metadata.xml b/sys-cluster/sionlib/metadata.xml
index 32002cf2dc..0f8c4f1a83 100644
--- a/sys-cluster/sionlib/metadata.xml
+++ b/sys-cluster/sionlib/metadata.xml
@@ -18,17 +18,22 @@ Both, the estimated chunk size and file system block size are used to align indi
SIONlib provides two different interfaces: one for parallel access (with implementations for different parallel programming technologies such as MPI, OpenMP and hybrid MPI+OpenMP) and one for sequential access which is also used internally by the SIONlib utilities.
+
+ https://gitlab.jsc.fz-juelich.de/cstao-public/SIONlib/SIONlib/-/issues
+
diff --git a/sys-cluster/sionlib/sionlib-1.7.7-r1.ebuild b/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
similarity index 87%
rename from sys-cluster/sionlib/sionlib-1.7.7-r1.ebuild
rename to sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
index cd15e7ad68..87062ea8ab 100644
--- a/sys-cluster/sionlib/sionlib-1.7.7-r1.ebuild
+++ b/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
@@ -18,11 +18,9 @@ S="${WORKDIR}/${PN}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+cxx debug doc examples +fortran +mpi +ompi +openmp +parutils +pthreads python"
-#TODO: cuda sionfwd msa
-#--enable-sionfwd=/path/to/sionfwd
-#--msa=(hostname-regex|deep-est-sdv)] MSA aware collective operations for the given system
+IUSE="+cxx debug deep-est-sdv doc examples +fortran hostname-regex +mpi +ompi +openmp +parutils +pthreads python sionfwd" #cuda
+REQUIRED_USE="?? ( hostname-regex deep-est-sdv )"
PATCHES=( "${FILESDIR}/${PN}-respect-flags.patch" )
RDEPEND="
@@ -32,6 +30,7 @@ RDEPEND="
virtual/mpi
)
openmp? ( || ( sys-devel/gcc:*[openmp] sys-libs/libomp ) )
+ sionfwd? ( sys-cluster/SIONfwd )
"
DEPEND="
${RDEPEND}
@@ -64,8 +63,14 @@ src_configure() {
append-fflags -fallow-argument-mismatch
+ local msa="none"
+ use deep-est-sdv && msa="deep-est-sdv"
+ use hostname-regex && msa="hostname-regex"
+
local myconf=(
+ --disable-ime
--disable-mic
+ --msa="${msa}"
--prefix="${T}/prefix/usr"
)
@@ -80,6 +85,7 @@ src_configure() {
use debug && myconf+=( "--enable-debug" )
use python && myconf+=( "--enable-python=3" )
+ use sionfwd && myconf+=( "--enable-sionfwd=${EPREFIX}/usr" )
./configure "${myconf[@]}" || die
}