dev-perl/Test-LeakTrace: Fix for '.' in @INC re bug #613872
authorKent Fredric <kentnl@gentoo.org>
Tue, 13 Jun 2017 08:27:55 +0000 (20:27 +1200)
committerKent Fredric <kentnl@gentoo.org>
Tue, 13 Jun 2017 08:42:28 +0000 (20:42 +1200)
Standard Module::Install fix for "." in @INC Removal in 5.26

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

dev-perl/Test-LeakTrace/Test-LeakTrace-0.150.0.ebuild

index 738bcb2f9a884c12e48448c18b91d6730967be02..b61dbfbcf9fbfb0deced0c926dc5fc25516dd9a0 100644 (file)
@@ -14,3 +14,9 @@ KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd
 IUSE=""
 
 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
+}