dev-perl/Class-Autouse: Fix for '.' in @INC re bug #615124
authorKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 18:49:42 +0000 (06:49 +1200)
committerKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 18:49:42 +0000 (06:49 +1200)
Generic Module::Install fix for 5.26

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

dev-perl/Class-Autouse/Class-Autouse-2.10.0-r1.ebuild

index 662e4e0d5131216048e8eccf5d235d7a94629c24..2cc34c2170cea100e2e75bfe10c4be6f3aaba6bc 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=">=virtual/perl-Scalar-List-Utils-1.18"
 DEPEND="${RDEPEND}"
 
 SRC_TEST="do"
+
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install::DSL /use lib q[.]; use inc::Module::Install::DSL /' Makefile.PL ||
+               die "Can't patch Makefile.PL for 5.26 dot-in-inc"
+       perl-module_src_prepare
+}