dev-perl/Module-Refresh: Fix for '.' in @INC re bug #614346
authorKent Fredric <kentnl@gentoo.org>
Tue, 13 Jun 2017 09:55:41 +0000 (21:55 +1200)
committerKent Fredric <kentnl@gentoo.org>
Tue, 13 Jun 2017 09:55:41 +0000 (21:55 +1200)
Generic Module::Install fix for 5.26

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

dev-perl/Module-Refresh/Module-Refresh-0.170.0-r1.ebuild

index d5a47392d3fb134629a5a9605763c748ab7a4aa0..790561f42ff1b43e30216a5c31dc896716c2ed07 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 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=""
 DEPEND="test? ( dev-perl/Path-Class )"
 
 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
+}