dev-perl/Curses-UI: Fix for '.' in @INC re bug #615110
authorKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 21:21:56 +0000 (09:21 +1200)
committerKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 21:22:18 +0000 (09:22 +1200)
Generic Module::Install Perl 5.26 fix

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

dev-perl/Curses-UI/Curses-UI-0.960.900-r1.ebuild

index 9ce34eb9d707f85832643483fb705b9589d284bf..f316f73d728871a97fb512f9c4268ddb58333b23 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,5 +23,7 @@ SRC_TEST="do"
 
 src_prepare() {
        use test && perl_rm_files t/05pod.t
+       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
 }