summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2023-11-17 08:40:11 +0100
committerFlorian Schmaus <flow@gentoo.org>2023-11-17 08:42:12 +0100
commit39ba239bd06a34be6ff5975204866f6b4d724fce (patch)
tree56e70cb0c8faf5cdf8e974154d8d539685477d0d /dev-java/java-config
parentnet-misc/r8152: drop redundant linux-mod-r1.eclass postrm call (diff)
downloadgentoo-39ba239bd06a34be6ff5975204866f6b4d724fce.tar.gz
gentoo-39ba239bd06a34be6ff5975204866f6b4d724fce.tar.bz2
gentoo-39ba239bd06a34be6ff5975204866f6b4d724fce.zip
dev-java/java-config: add java-config→java-config-2 compatibility symlink
Closes: https://bugs.gentoo.org/917458 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/java-config')
-rw-r--r--dev-java/java-config/java-config-2.3.3-r1.ebuild (renamed from dev-java/java-config/java-config-2.3.3.ebuild)3
-rw-r--r--dev-java/java-config/java-config-9999.ebuild3
2 files changed, 6 insertions, 0 deletions
diff --git a/dev-java/java-config/java-config-2.3.3.ebuild b/dev-java/java-config/java-config-2.3.3-r1.ebuild
index a4dc516e9ab8..b63dbff8d490 100644
--- a/dev-java/java-config/java-config-2.3.3.ebuild
+++ b/dev-java/java-config/java-config-2.3.3-r1.ebuild
@@ -63,6 +63,9 @@ src_install() {
local scripts
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
}
my_src_install() {
diff --git a/dev-java/java-config/java-config-9999.ebuild b/dev-java/java-config/java-config-9999.ebuild
index a4dc516e9ab8..b63dbff8d490 100644
--- a/dev-java/java-config/java-config-9999.ebuild
+++ b/dev-java/java-config/java-config-9999.ebuild
@@ -63,6 +63,9 @@ src_install() {
local scripts
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
}
my_src_install() {