commit: 9872461571b92698910b2cdb83a1f7e0dadf0014
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 20 04:15:44 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 20 04:17:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98724615
dev-perl/libwww-perl: fix VariableScope
Signed-off-by: Sam James <sam <AT> gentoo.org>
...ibwww-perl-6.600.0.ebuild => libwww-perl-6.600.0-r1.ebuild} | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dev-perl/libwww-perl/libwww-perl-6.600.0.ebuild
b/dev-perl/libwww-perl/libwww-perl-6.600.0-r1.ebuild
similarity index 92%
rename from dev-perl/libwww-perl/libwww-perl-6.600.0.ebuild
rename to dev-perl/libwww-perl/libwww-perl-6.600.0-r1.ebuild
index 703519c8526d..97c54ca9012c 100644
--- a/dev-perl/libwww-perl/libwww-perl-6.600.0.ebuild
+++ b/dev-perl/libwww-perl/libwww-perl-6.600.0-r1.ebuild
@@ -54,9 +54,7 @@ PDEPEND="
)
"
-src_install() {
- perl-module_src_install
-
+pkg_postinst() {
# Perform a check to see if the live filesystem is case-INsensitive
# or not. If it is, the symlinks GET, POST and in particular HEAD
# will collide with e.g. head from coreutils. While under Linux
@@ -67,8 +65,8 @@ src_install() {
# bash should always be there, if we can find it in capitals, we're
# on a case-INsensitive filesystem.
if [[ ! -f ${EROOT}/BIN/BASH ]] ; then
- dosym lwp-request /usr/bin/GET
- dosym lwp-request /usr/bin/POST
- dosym lwp-request /usr/bin/HEAD
+ ln -s lwp-request "${EROOT}"/usr/bin/GET
+ ln -s lwp-request "${EROOT}"/usr/bin/POST
+ ln -s lwp-request "${EROOT}"/usr/bin/HEAD
fi
}