sys-cluster/otf2: fix sionlib detection

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-07-27 00:32:18 +02:00
parent d731e99abf
commit 19d5ef12cd
2 changed files with 9 additions and 3 deletions

View File

@@ -6,6 +6,6 @@
<name>Alessandro Barbieri</name>
</maintainer>
<use>
<flag name="sionlib">Enable <pkg>sys-cluster/sionlib</pkg> support</flag>
<flag name="sionlib">Enable <pkg>sys-cluster/sionlibl</pkg> support</flag>
</use>
</pkgmetadata>

View File

@@ -20,7 +20,7 @@ RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/six[${PYTHON_USEDEP}]')
sionlib? ( sys-cluster/sionlib[tools] )
sionlib? ( sys-cluster/sionlibl:= )
"
DEPEND="${RDEPEND}"
@@ -36,9 +36,15 @@ src_configure() {
$(use_enable test backend-test-runs)
$(use_enable debug)
$(use_with sionlib)
)
if use sionlib; then
myconf+=( "--with-sionlib=${EPREFIX}/usr" )
myconf+=( "--with-sionlib-headers=${EPREFIX}/usr/include/sionlibl" )
else
myconf+=( "--without-sionlib" )
fi
econf "${myconf[@]}"
}