dev-java/java-config: update live, add USE=compat

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus 2023-11-17 09:24:30 +01:00
parent 2ba3a2634d
commit c50e2a9894
No known key found for this signature in database
GPG Key ID: 2239A7E8F5852052
2 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,7 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
LICENSE="GPL-2"
SLOT="2"
IUSE="test"
IUSE="+compat test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@ -64,8 +64,10 @@ src_install() {
mapfile -t scripts < <(awk '/^#!.*python/ {print FILENAME} {nextfile}' "${ED}"/usr/bin/* || die)
python_replicate_script "${scripts[@]}"
# This replaces the file installed by java-config-wrapper.
dosym java-config-2 /usr/bin/java-config
if use compat; then
# Symlink java-config-2 to java-config for now.
dosym java-config /usr/bin/java-config-2
fi
}
my_src_install() {

View File

@ -11,6 +11,9 @@
per-user default JVMs, construct classpath env vars from installed java
packages and be used to query for the path to various JDK tools.
</longdescription>
<use>
<flag name="compat">Install bin/java-config-2 symlink pointing to java-config</flag>
</use>
<upstream>
<remote-id type="gentoo">proj/java-config</remote-id>
<remote-id type="github">gentoo/java-config</remote-id>