commit:     20d2e04ad13bf2e14874571a1a30324a9de4bb8d
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 15 02:04:01 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Thu Jun 15 02:06:25 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d2e04a

dev-perl/Text-Password-Pronounceable: Fix for '.' in @INC re bug #614946

Module::Install fix for Perl 5.26

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

 .../Text-Password-Pronounceable-0.300.0-r1.ebuild                   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/dev-perl/Text-Password-Pronounceable/Text-Password-Pronounceable-0.300.0-r1.ebuild
 
b/dev-perl/Text-Password-Pronounceable/Text-Password-Pronounceable-0.300.0-r1.ebuild
index d6468554239..8a34a4c2d3c 100644
--- 
a/dev-perl/Text-Password-Pronounceable/Text-Password-Pronounceable-0.300.0-r1.ebuild
+++ 
b/dev-perl/Text-Password-Pronounceable/Text-Password-Pronounceable-0.300.0-r1.ebuild
@@ -17,6 +17,12 @@ DEPEND="test? ( virtual/perl-Test-Simple )"
 
 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
+}
+
 src_test() {
        perl_rm_files t/99pod.t t/99pod-coverage.t
        perl-module_src_test

Reply via email to