dev-java/java-service-wrapper: made building tests USE-conditional

Only build ANYTHING test-related when USE=test is set.

Closes: https://bugs.gentoo.org/856586
Signed-off-by: matoro <matoro@users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/26519
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
matoro
2022-07-22 16:00:50 +02:00
committed by Florian Schmaus
parent dd4ccfbb7b
commit b2d5ea8fc4
@@ -48,8 +48,9 @@ src_prepare() {
java-pkg-2_src_prepare
# enable tests on all platforms
grep "testsuite_SOURCE" "src/c/Makefile-linux-x86-64.make" | tee -a src/c/Makefile-*.make || die
if use test; then
grep "testsuite_SOURCE" "src/c/Makefile-linux-x86-64.make" | tee -a src/c/Makefile-*.make
assert
echo 'all: testsuite' | tee -a src/c/Makefile-*.make
assert
fi