commit: e3b822325951559f9d385a7618708ef85d7622b1
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Feb 11 07:18:40 2026 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Feb 15 15:19:40 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3b82232
dev-db/hsqldb: replace hardcoded values with eclass functions
This ebuild could be used as a reference for packaging with eant().
Only, the hardcoded values for javac's -source and -target options
should be replaced with eclass funtionality.
This commit sets them like:
-Dant.build.javac.source="$(java-pkg_get-source)" \
-Dant.build.javac.target="$(java-pkg_get-target)" \
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/54
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-db/hsqldb/hsqldb-2.7.4.ebuild | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/dev-db/hsqldb/hsqldb-2.7.4.ebuild
b/dev-db/hsqldb/hsqldb-2.7.4.ebuild
index 853aec845818..dfc1cb8bfdbd 100644
--- a/dev-db/hsqldb/hsqldb-2.7.4.ebuild
+++ b/dev-db/hsqldb/hsqldb-2.7.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -81,8 +81,8 @@ src_compile() {
-Dservletapi.lib="$(java-pkg_getjars --build-only
javax-servlet-api-3.1)" \
-Djavac.bootcp.override \
-Dant.java.iscjava11 \
- -Dant.build.javac.source="11" \
- -Dant.build.javac.target="11" \
+ -Dant.build.javac.source="$(java-pkg_get-source)" \
+ -Dant.build.javac.target="$(java-pkg_get-target)" \
"${targets[@]}"
}
@@ -94,8 +94,8 @@ src_test() {
-Djunit.jar="$(java-pkg_getjars --build-only junit)" \
-Djavac.bootcp.override \
-Dant.java.iscjava11 \
- -Dant.build.javac.source="11" \
- -Dant.build.javac.target="11" \
+ -Dant.build.javac.source="$(java-pkg_get-source)" \
+ -Dant.build.javac.target="$(java-pkg_get-target)" \
make.test.suite run.test.suite
}