commit:     f8c68dbb377da76148557b9f2c88190e10cf3cf2
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 11 04:16:06 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sun Jun 11 04:16:39 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8c68dbb

dev-perl/Unicode-EastAsianWidth: Fix for '.' in @INC re bug #613802

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

 .../Unicode-EastAsianWidth-1.330.0-r1.ebuild       |  2 +-
 .../Unicode-EastAsianWidth/files/no-dot-inc.patch  | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git 
a/dev-perl/Unicode-EastAsianWidth/Unicode-EastAsianWidth-1.330.0-r1.ebuild 
b/dev-perl/Unicode-EastAsianWidth/Unicode-EastAsianWidth-1.330.0-r1.ebuild
index 481040c4490..002917f89b8 100644
--- a/dev-perl/Unicode-EastAsianWidth/Unicode-EastAsianWidth-1.330.0-r1.ebuild
+++ b/dev-perl/Unicode-EastAsianWidth/Unicode-EastAsianWidth-1.330.0-r1.ebuild
@@ -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
index 00000000000..16d42e582a4
--- /dev/null
+++ b/dev-perl/Unicode-EastAsianWidth/files/no-dot-inc.patch
@@ -0,0 +1,25 @@
+From 9cb5f1551566addf37a47e935164519842bab0d8 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <[email protected]>
+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
+

Reply via email to