dev-perl/Clipboard: Fix for '.' in @INC re bug #615138
authorKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 19:12:21 +0000 (07:12 +1200)
committerKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 19:12:21 +0000 (07:12 +1200)
Generic Module::Install fix for Perl 5.26

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

dev-perl/Clipboard/Clipboard-0.130.0-r2.ebuild

index 59b85d8657ada6ba59850a5cf88c2f137c2caa01..903469328a19b8fde39a9f284a12ccbde76e43e7 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
@@ -19,3 +19,9 @@ PATCHES=(
 )
 
 RDEPEND="x11-misc/xclip"
+
+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
+}