commit:     d14bfc5f1c36538feb11f73962b55771fe7a7e82
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 27 14:41:48 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Nov 27 14:42:48 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d14bfc5f

media-libs/vigra: Disable more tests

Bug: https://bugs.gentoo.org/701328
Package-Manager: Portage-2.3.80, Repoman-2.3.17
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-libs/vigra/vigra-1.11.1-r3.ebuild | 6 +++++-
 media-libs/vigra/vigra-9999.ebuild      | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/media-libs/vigra/vigra-1.11.1-r3.ebuild 
b/media-libs/vigra/vigra-1.11.1-r3.ebuild
index f2b096eaf51..d38b643763a 100644
--- a/media-libs/vigra/vigra-1.11.1-r3.ebuild
+++ b/media-libs/vigra/vigra-1.11.1-r3.ebuild
@@ -93,7 +93,11 @@ src_prepare() {
        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() {

diff --git a/media-libs/vigra/vigra-9999.ebuild 
b/media-libs/vigra/vigra-9999.ebuild
index c1094b89265..289fe049252 100644
--- a/media-libs/vigra/vigra-9999.ebuild
+++ b/media-libs/vigra/vigra-9999.ebuild
@@ -99,7 +99,10 @@ src_prepare() {
        # 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() {

Reply via email to