dev-perl/CGI-PSGI: Fix for '.' in @INC re bug #615136
authorKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 18:21:01 +0000 (06:21 +1200)
committerKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 18:21:14 +0000 (06:21 +1200)
Generic Module::Install Fix for Perl 5.26

Bug: https://bugs.gentoo.org/615136
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/CGI-PSGI/CGI-PSGI-0.150.0-r1.ebuild

index 6846c41479bc5d7998486d493b3995c42e35741f..976c02bc91955d9a4ff5c5817fea7fb89207fd69 100644 (file)
@@ -23,3 +23,9 @@ DEPEND="${RDEPEND}
 "
 
 SRC_TEST="do"
+
+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
+}