summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-perl/Encode-HanExtra/Encode-HanExtra-0.230.0-r3.ebuild28
-rw-r--r--dev-perl/Encode-HanExtra/files/Encode-HanExtra-0.23-no-dot-inc.patch24
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-perl/Encode-HanExtra/Encode-HanExtra-0.230.0-r3.ebuild b/dev-perl/Encode-HanExtra/Encode-HanExtra-0.230.0-r3.ebuild
new file mode 100644
index 000000000000..b2c5ed8d5bc4
--- /dev/null
+++ b/dev-perl/Encode-HanExtra/Encode-HanExtra-0.230.0-r3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=AUDREYT
+DIST_VERSION=0.23
+inherit perl-module
+
+DESCRIPTION="Extra sets of Chinese encodings"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND="
+ >=virtual/perl-Encode-1.410.0
+"
+BDEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.23-no-dot-inc.patch"
+)
+src_compile() {
+ mymake=(
+ "OPTIMIZE=${CFLAGS}"
+ )
+ perl-module_src_compile
+}
diff --git a/dev-perl/Encode-HanExtra/files/Encode-HanExtra-0.23-no-dot-inc.patch b/dev-perl/Encode-HanExtra/files/Encode-HanExtra-0.23-no-dot-inc.patch
new file mode 100644
index 000000000000..1fd45d8dffe2
--- /dev/null
+++ b/dev-perl/Encode-HanExtra/files/Encode-HanExtra-0.23-no-dot-inc.patch
@@ -0,0 +1,24 @@
+From 413cc230998c8b6544614c9d23b8e607f0e18a3a Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Thu, 13 Aug 2020 23:17:17 +1200
+Subject: Include '.' in @INC for perl 5.26+
+
+---
+ Makefile.PL | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 9e6cf51..eb9cf4f 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -5,6 +5,7 @@
+ #
+ use 5.007002;
+ use strict;
++use lib q[.];
+ use inc::Module::Install;
+ use Config;
+
+--
+2.28.0
+