dev-java/maven-bin: Install relative symlinks

Closes: https://bugs.gentoo.org/954392
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Part-of: https://github.com/gentoo/gentoo/pull/41741
Closes: https://github.com/gentoo/gentoo/pull/41741
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Andrei Horodniceanu 2025-04-25 14:33:25 +03:00 committed by Sam James
parent 3dcd830d56
commit 47ae8a3407
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -47,8 +47,7 @@ src_install() {
dodoc NOTICE README.txt
dodir /usr/bin
dosym "${MAVEN_SHARE}/bin/mvn" "${EPREFIX}/usr/bin/mvn-${SLOT}"
dosym -r "${MAVEN_SHARE}/bin/mvn" "/usr/bin/mvn-${SLOT}"
# See bug #342901.
echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -46,8 +46,7 @@ src_install() {
dodoc NOTICE README.txt
dodir /usr/bin
dosym "${MAVEN_SHARE}/bin/mvn" "${EPREFIX}/usr/bin/mvn-${SLOT}"
dosym -r "${MAVEN_SHARE}/bin/mvn" "/usr/bin/mvn-${SLOT}"
# See bug #342901.
echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die