dev-util/spirv-llvm-translator: have FEATURES=test require USE=tools
authorMarek Szuba <marecki@gentoo.org>
Mon, 8 Jul 2019 11:43:37 +0000 (12:43 +0100)
committerMarek Szuba <marecki@gentoo.org>
Mon, 8 Jul 2019 11:44:22 +0000 (12:44 +0100)
A lot of the tests call the command-line translator so it must be
present if tests are to be run. Conversely, no point in making
llvm-spirv installation mandatory for people who do not care about
tests.

Closes: https://bugs.gentoo.org/689402
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

dev-util/spirv-llvm-translator/spirv-llvm-translator-8.0.1.1-r1.ebuild

index 675e083db1ac342fafcfb0dba5a5a55ef0b34fe7..8a43036f337bb3ceec3b4f26923f85dcf925135a 100644 (file)
@@ -25,6 +25,8 @@ DEPEND="${COMMON}
        test? ( dev-python/lit )"
 RDEPEND="${COMMON}"
 
+REQUIRED_USE="test? ( tools )"
+
 LLVM_MAX_SLOT=8
 
 PATCHES=(