dev-perl/Class-C3-Componentised: Fix for '.' in @INC re bug #615508
authorKent Fredric <kentnl@gentoo.org>
Sat, 24 Jun 2017 22:46:19 +0000 (10:46 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sat, 24 Jun 2017 22:46:19 +0000 (10:46 +1200)
Generic 5.26 Module::Install Fix

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

dev-perl/Class-C3-Componentised/Class-C3-Componentised-1.1.0-r1.ebuild

index 74f80a5e58446ca693398567fc41903300462588..f995f44167141cb396bfc5cc8e5110c21a3a5681 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
@@ -23,6 +23,12 @@ DEPEND="${RDEPEND}
 
 SRC_TEST=do
 
+src_prepare() {
+       sed -i -e 's/use inc::Module::Install /use lib q[.];\nuse 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/pod.t t/pod-coverage.t
        perl-module_src_test