diff options
author | Kent Fredric <kentnl@gentoo.org> | 2020-08-13 23:33:58 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2020-08-13 23:33:58 +1200 |
commit | 4c0e0993a3544aae4b34e12b0cb55ec6313177a5 (patch) | |
tree | d57bcef26d34a58aea45b203dce278699e4826d5 /dev-perl/Encode-HanExtra | |
parent | dev-perl/Encode-HanConvert: -r bump for EAPI7 + Fixes (diff) | |
download | gentoo-4c0e0993a3544aae4b34e12b0cb55ec6313177a5.tar.gz gentoo-4c0e0993a3544aae4b34e12b0cb55ec6313177a5.tar.bz2 gentoo-4c0e0993a3544aae4b34e12b0cb55ec6313177a5.zip |
dev-perl/Encode-HanExtra: -r bump for EAPI7 + Fixes
- EAPI7
- Remove empty/unused variable assignments
- Improve dependencies
- Convert sed hack into a "patch"
- Ensure CFLAGS passed to make/compiler
Package-Manager: Portage-2.3.103, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Encode-HanExtra')
-rw-r--r-- | dev-perl/Encode-HanExtra/Encode-HanExtra-0.230.0-r3.ebuild | 28 | ||||
-rw-r--r-- | dev-perl/Encode-HanExtra/files/Encode-HanExtra-0.23-no-dot-inc.patch | 24 |
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 + |