1 |
commit: c4832e0334d890572eade4bbe88aa8d1d7d4a655 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 2 11:45:07 2020 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 12:23:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4832e03 |
7 |
|
8 |
dev-perl/Hash-FieldHash: -r bump for EAPI7 + tooling fixes |
9 |
|
10 |
- EAPI7 |
11 |
- Migrate sed hack to "patch" |
12 |
- Prevent LD="ld" breaking the build |
13 |
- Ensure CFLAGS passed through to cc |
14 |
|
15 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
16 |
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org> |
17 |
|
18 |
.../Hash-FieldHash-0.150.0-r1.ebuild | 46 ++++++++++++++++++++++ |
19 |
.../files/Hash-FieldHash-0.15-no-dot-inc.patch | 26 ++++++++++++ |
20 |
2 files changed, 72 insertions(+) |
21 |
|
22 |
diff --git a/dev-perl/Hash-FieldHash/Hash-FieldHash-0.150.0-r1.ebuild b/dev-perl/Hash-FieldHash/Hash-FieldHash-0.150.0-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..7925730085d |
25 |
--- /dev/null |
26 |
+++ b/dev-perl/Hash-FieldHash/Hash-FieldHash-0.150.0-r1.ebuild |
27 |
@@ -0,0 +1,46 @@ |
28 |
+# Copyright 1999-2020 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+DIST_AUTHOR=GFUJI |
34 |
+DIST_VERSION=0.15 |
35 |
+DIST_EXAMPLES=( "example/*" "benchmark" ) |
36 |
+inherit perl-module |
37 |
+ |
38 |
+DESCRIPTION="Lightweight field hash for inside-out objects" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
41 |
+IUSE="test" |
42 |
+RESTRICT="!test? ( test )" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ >=virtual/perl-XSLoader-0.20.0 |
46 |
+ >=virtual/perl-parent-0.221.0 |
47 |
+" |
48 |
+DEPEND=" |
49 |
+ dev-perl/Module-Build |
50 |
+" |
51 |
+BDEPEND="${RDEPEND} |
52 |
+ >=virtual/perl-Devel-PPPort-3.190.0 |
53 |
+ >=virtual/perl-ExtUtils-MakeMaker-6.590.0 |
54 |
+ >=virtual/perl-ExtUtils-ParseXS-2.210.0 |
55 |
+ >=dev-perl/Module-Build-0.400.500 |
56 |
+ test? ( |
57 |
+ >=dev-perl/Test-LeakTrace-0.70.0 |
58 |
+ >=virtual/perl-Test-Simple-0.620.0 |
59 |
+ ) |
60 |
+" |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}/${PN}-0.15-no-dot-inc.patch" |
63 |
+) |
64 |
+src_configure() { |
65 |
+ unset LD; |
66 |
+ if [[ -n "${CCLD}" ]]; then |
67 |
+ export LD="${CCLD}" |
68 |
+ fi |
69 |
+ perl-module_src_configure |
70 |
+} |
71 |
+src_compile() { |
72 |
+ ./Build --config optimize="${CFLAGS}" build || die |
73 |
+} |
74 |
|
75 |
diff --git a/dev-perl/Hash-FieldHash/files/Hash-FieldHash-0.15-no-dot-inc.patch b/dev-perl/Hash-FieldHash/files/Hash-FieldHash-0.15-no-dot-inc.patch |
76 |
new file mode 100644 |
77 |
index 00000000000..95ae110c028 |
78 |
--- /dev/null |
79 |
+++ b/dev-perl/Hash-FieldHash/files/Hash-FieldHash-0.15-no-dot-inc.patch |
80 |
@@ -0,0 +1,26 @@ |
81 |
+From c4f929a44ace9ef304b270862c81acc07e273f63 Mon Sep 17 00:00:00 2001 |
82 |
+From: Kent Fredric <kentnl@g.o> |
83 |
+Date: Thu, 2 Jul 2020 23:19:50 +1200 |
84 |
+Subject: Include '.' in @INC for perl 5.26+ |
85 |
+ |
86 |
+Bug: https://github.com/gfx/p5-Hash-FieldHash/issues/4 |
87 |
+--- |
88 |
+ Build.PL | 2 +- |
89 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
90 |
+ |
91 |
+diff --git a/Build.PL b/Build.PL |
92 |
+index 8ba2832..cb7f572 100644 |
93 |
+--- a/Build.PL |
94 |
++++ b/Build.PL |
95 |
+@@ -8,7 +8,7 @@ use 5.008_001; |
96 |
+ use strict; |
97 |
+ use warnings; |
98 |
+ use utf8; |
99 |
+- |
100 |
++use lib '.'; |
101 |
+ use builder::MyBuilder; |
102 |
+ use File::Basename; |
103 |
+ use File::Spec; |
104 |
+-- |
105 |
+2.27.0 |
106 |
+ |