dev-perl/Class-Trigger: Fix for '.' in @INC re bug #615086
authorKent Fredric <kentnl@gentoo.org>
Thu, 15 Jun 2017 02:02:01 +0000 (14:02 +1200)
committerKent Fredric <kentnl@gentoo.org>
Thu, 15 Jun 2017 02:06:24 +0000 (14:06 +1200)
Module::Install fix
for Perl 5.26

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

dev-perl/Class-Trigger/Class-Trigger-0.140.0-r1.ebuild

index 00e8e225caa85b089cf170e8a74aa70c1ffafd49..d757a76fcfd5363bb2e474871a02f115e293a9c9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -17,3 +17,9 @@ RDEPEND="dev-perl/IO-stringy"
 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
+}