From: Kent Fredric Date: Mon, 19 Jun 2017 18:21:01 +0000 (+1200) Subject: dev-perl/CGI-PSGI: Fix for '.' in @INC re bug #615136 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e9d3e2c0f3b7d4c2b263d3019047de21e74bc2d;p=gentoo.git dev-perl/CGI-PSGI: Fix for '.' in @INC re bug #615136 Generic Module::Install Fix for Perl 5.26 Bug: https://bugs.gentoo.org/615136 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- diff --git a/dev-perl/CGI-PSGI/CGI-PSGI-0.150.0-r1.ebuild b/dev-perl/CGI-PSGI/CGI-PSGI-0.150.0-r1.ebuild index 6846c41479bc..976c02bc9195 100644 --- a/dev-perl/CGI-PSGI/CGI-PSGI-0.150.0-r1.ebuild +++ b/dev-perl/CGI-PSGI/CGI-PSGI-0.150.0-r1.ebuild @@ -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 +}