dev-perl/WWW-Curl: Fix for '.' in @INC
authorKent Fredric <kentnl@gentoo.org>
Fri, 16 Jun 2017 01:42:13 +0000 (13:42 +1200)
committerKent Fredric <kentnl@gentoo.org>
Fri, 16 Jun 2017 12:28:04 +0000 (00:28 +1200)
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

index 0043737466209a4795e8589d14c8f96e96d38b8e..8a61bc797f130dba8c0118ee3cbb126047a13300 100644 (file)
@@ -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
+}