mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-java/javatoolkit: fix eprefix support
Avoid the double-prefix error and don't call hprefixify on files that don't exist. Note that the findclass.py script is broken with dev-java/java-config:2 so patching it is somewhat pointless. Bug: https://bugs.gentoo.org/354105 Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me> Closes: https://github.com/gentoo/gentoo/pull/40963 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
committed by
Arthur Zamarin
parent
c31b431d4d
commit
8b4f6695ae
@@ -20,7 +20,7 @@ KEYWORDS="~amd64 ~arm64 ~ppc64 ~sparc ~amd64-linux ~x86-linux ~ppc-macos ~x64-ma
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_prepare_all() {
|
||||
hprefixify src/py/buildparser src/py/findclass setup.py
|
||||
hprefixify src/${PN}/scripts/findclass.py
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
@@ -36,6 +36,6 @@ src_install() {
|
||||
local script
|
||||
for script in *; do
|
||||
rm "${script}" || die
|
||||
dosym -r /usr/lib/python-exec/python-exec2 "${EPREFIX}/usr/libexec/${PN}/${script}"
|
||||
dosym -r /usr/lib/python-exec/python-exec2 "/usr/libexec/${PN}/${script}"
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user