mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-java/java-config: update live, add USE=compat
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
parent
2ba3a2634d
commit
c50e2a9894
@ -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() {
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user