public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Encode-HanConvert/, dev-perl/Encode-HanConvert/files/
@ 2020-08-13 11:05 Kent Fredric
  0 siblings, 0 replies; only message in thread
From: Kent Fredric @ 2020-08-13 11:05 UTC (permalink / raw
  To: gentoo-commits

commit:     6c0f24321312b21edd6522a242c3303459549330
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 13 11:01:20 2020 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Thu Aug 13 11:04:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c0f2432

dev-perl/Encode-HanConvert: -r bump for EAPI7 + Fixes

- EAPI7
- Convert sed hack to "patch"
- Improve dependencies
- Ensure CFLAGS passed to make/compiler
- Omit "Perl.pm-orig" from install image, as it is an input file for the
  build process, not an end-user relevant file.

Package-Manager: Portage-2.3.103, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>

 .../Encode-HanConvert-0.350.0-r2.ebuild            | 33 ++++++++++++++++++++++
 .../files/Encode-HanConvert-0.35-no-dot-inc.patch  | 21 ++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/dev-perl/Encode-HanConvert/Encode-HanConvert-0.350.0-r2.ebuild b/dev-perl/Encode-HanConvert/Encode-HanConvert-0.350.0-r2.ebuild
new file mode 100644
index 00000000000..6f8b7c8f948
--- /dev/null
+++ b/dev-perl/Encode-HanConvert/Encode-HanConvert-0.350.0-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=AUDREYT
+DIST_VERSION=0.35
+inherit perl-module
+
+DESCRIPTION="Traditional and Simplified Chinese mappings"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	>=virtual/perl-Encode-1.410.0
+"
+BDEPEND="${RDEPEND}"
+PATCHES=(
+	"${FILESDIR}/${PN}-0.35-no-dot-inc.patch"
+)
+
+src_compile() {
+	mymake=(
+		"OPTIMIZE=${CFLAGS}"
+	)
+	perl-module_src_compile
+	# this file is converted to Perl.pm during src_configure
+	# and not needed after that, but has to be removed after compile
+	# to avoid confusing pm_to_blib, but has to be done before src_test
+	# as tests run against the result of this.
+	rm -vf "blib/lib/Encode/HanConvert/Perl.pm-orig" || die "Can't remove Perl.pm-orig"
+}

diff --git a/dev-perl/Encode-HanConvert/files/Encode-HanConvert-0.35-no-dot-inc.patch b/dev-perl/Encode-HanConvert/files/Encode-HanConvert-0.35-no-dot-inc.patch
new file mode 100644
index 00000000000..add43d2818c
--- /dev/null
+++ b/dev-perl/Encode-HanConvert/files/Encode-HanConvert-0.35-no-dot-inc.patch
@@ -0,0 +1,21 @@
+From 6316820623f3cc05c3fd28f34e819068685140f8 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Thu, 13 Aug 2020 22:41:26 +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 d46d7ae..9de9937 100755
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,3 +1,4 @@
++use lib q[.];
+ use inc::Module::Install;
+ use Config;
+ 
+-- 
+2.28.0
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-13 11:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-13 11:05 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Encode-HanConvert/, dev-perl/Encode-HanConvert/files/ Kent Fredric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox