dev-java/cpptasks: Use EAPI 8, min Java 1.8, enable tests

Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23812
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Yuan Liao
2022-01-15 11:02:32 -08:00
committed by Miroslav Šulc
parent 792d74198a
commit 7d14b29228
2 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
From 732e296e780633e3dce1bace28a4abae04f506c7 Mon Sep 17 00:00:00 2001
From: Yuan Liao <liaoyuan@gmail.com>
Date: Sat, 15 Jan 2022 10:58:28 -0800
Subject: [PATCH] Prevent test classpath from being overwritten by
java-ant-2.eclass
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
---
build.xml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/build.xml b/build.xml
index ed3a0f7..24a3114 100644
--- a/build.xml
+++ b/build.xml
@@ -176,8 +176,12 @@
deprecation="false"
target="${javac.target}"
source="${javac.source}"
- optimize="false"
- classpath="${build.lib}/${name}.jar;${java.class.path}"/>
+ optimize="false">
+ <classpath>
+ <pathelement location="${build.lib}/${name}.jar" />
+ <pathelement location="${java.class.path}" />
+ </classpath>
+ </javac>
<jar jarfile="${tests.build.lib}/${name}_test.jar">
<fileset dir="." includes="NOTICE LICENSE"/>
<fileset dir="${tests.build.classes}"/>
--
2.34.1