dev-perl/Unicode-EastAsianWidth: Fix for '.' in @INC re bug #613802
authorKent Fredric <kentnl@gentoo.org>
Sun, 11 Jun 2017 04:16:06 +0000 (16:16 +1200)
committerKent Fredric <kentnl@gentoo.org>
Sun, 11 Jun 2017 04:16:39 +0000 (16:16 +1200)
Stops assuming '.' is in @INC and uses a feature provided by
Module::Package instead.

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

dev-perl/Unicode-EastAsianWidth/Unicode-EastAsianWidth-1.330.0-r1.ebuild
dev-perl/Unicode-EastAsianWidth/files/no-dot-inc.patch [new file with mode: 0644]

index 481040c449098da1c160c2f5eac641cb314dc696..002917f89b86ff44c8d095ea16ce002b41e6b5e7 100644 (file)
@@ -17,5 +17,5 @@ IUSE=""
 RDEPEND="virtual/perl-File-Spec"
 DEPEND="${RDEPEND}
        virtual/perl-ExtUtils-MakeMaker"
-
+PATCHES=("${FILESDIR}/no-dot-inc.patch")
 SRC_TEST="do"
diff --git a/dev-perl/Unicode-EastAsianWidth/files/no-dot-inc.patch b/dev-perl/Unicode-EastAsianWidth/files/no-dot-inc.patch
new file mode 100644 (file)
index 0000000..16d42e5
--- /dev/null
@@ -0,0 +1,25 @@
+From 9cb5f1551566addf37a47e935164519842bab0d8 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Sun, 11 Jun 2017 16:10:47 +1200
+Subject: [PATCH] Fix for Perl 5.26 w/o '.' in @INC
+
+---
+ Makefile.PL | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 6745b7c..2db030d 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,6 +1,7 @@
+ #!/usr/bin/perl
+ use strict;
+-use inc::Module::Package 'Au:dry 1';
++use lib './inc';
++use Module::Package 'Au:dry 1';
+ 
+ my $DefaultVersion  = 'v5.0.0';
+ my $DefaultDate     = '2006-02-15';
+-- 
+2.13.1
+