commit:     4c4346b0e122b7684040b0cb11091cc003eb9777
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 16 01:42:13 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Fri Jun 16 12:28:04 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4346b0

dev-perl/WWW-Curl: Fix for '.' in @INC

Generic Module::Install fix for Perl 5.26

Bug: https://rt.cpan.org/Ticket/Display.html?id=122110
Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-perl/WWW-Curl/WWW-Curl-4.170.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-perl/WWW-Curl/WWW-Curl-4.170.0.ebuild 
b/dev-perl/WWW-Curl/WWW-Curl-4.170.0.ebuild
index 00437374662..8a61bc797f1 100644
--- a/dev-perl/WWW-Curl/WWW-Curl-4.170.0.ebuild
+++ b/dev-perl/WWW-Curl/WWW-Curl-4.170.0.ebuild
@@ -20,3 +20,9 @@ DEPEND="${RDEPEND}"
 SRC_TEST=online
 
 PATCHES=("${FILESDIR}"/${PN}-4.150.0-curl-7.50.2.patch)
+
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install;/use lib q[.]; use 
inc::Module::Install;/' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}

Reply via email to