Bug: https://bugs.gentoo.org/701328
Package-Manager: Portage-2.3.80, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
sed -i -e '/env/s:python:python3:' config/vigra-config.in || die
use doc || cmake_comment_add_subdirectory docsrc
- use test || cmake_comment_add_subdirectory test
+
+ if ! use test; then
+ cmake_comment_add_subdirectory test
+ sed -e "/ADD_SUBDIRECTORY.*test/s/^/#DONT /" -i vigranumpy/CMakeLists.txt || die
+ fi
}
src_configure() {
# Don't use python_fix_shebang because we can't put this behind USE="python"
sed -i -e '/env/s:python:python3:' config/vigra-config.in || die
- use test || cmake_comment_add_subdirectory test
+ if ! use test; then
+ cmake_comment_add_subdirectory test
+ sed -e "/ADD_SUBDIRECTORY.*test/s/^/#DONT /" -i vigranumpy/CMakeLists.txt || die
+ fi
}
src_configure() {