1 |
commit: 664d273e8bae3743eed1755d3ac450f29cb0f363 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 3 10:33:02 2018 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 10:56:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=664d273e |
7 |
|
8 |
dev-perl/Regexp-Common-net-CIDR: Bump to version 0.30.0 |
9 |
|
10 |
- EAPI6 |
11 |
- Enable ( and provide ) tests |
12 |
- Patchify 5.26 fix |
13 |
|
14 |
Upstream: |
15 |
- Switch to Artistic + GPL2 License |
16 |
- Regen Module::Install code |
17 |
|
18 |
Package-Manager: Portage-2.3.18, Repoman-2.3.6 |
19 |
|
20 |
dev-perl/Regexp-Common-net-CIDR/Manifest | 1 + |
21 |
.../Regexp-Common-net-CIDR-0.30.0.ebuild | 27 ++++++++++++++ |
22 |
.../Regexp-Common-net-CIDR-0.03-basic-tests.patch | 43 ++++++++++++++++++++++ |
23 |
.../Regexp-Common-net-CIDR-0.03-no-dot-inc.patch | 23 ++++++++++++ |
24 |
4 files changed, 94 insertions(+) |
25 |
|
26 |
diff --git a/dev-perl/Regexp-Common-net-CIDR/Manifest b/dev-perl/Regexp-Common-net-CIDR/Manifest |
27 |
index 8f524fc9f85..8c5c3a19207 100644 |
28 |
--- a/dev-perl/Regexp-Common-net-CIDR/Manifest |
29 |
+++ b/dev-perl/Regexp-Common-net-CIDR/Manifest |
30 |
@@ -1 +1,2 @@ |
31 |
DIST Regexp-Common-net-CIDR-0.02.tar.gz 17235 BLAKE2B 312561408fb98b4b499d671e7511c7c194cd64cc959028f0f612afdd3599c80a327e852a4d0e2b5318ee49ab262524e84ebaf1d45a4572a1c694ed142f24315d SHA512 636034b3f366e94824b3ccaff756c4717a8062d24caa13d59f6e60c04cdf0e8db0666e47a9f7d332f4546e454840d2f2e894dee4226c646adcacc88bb88c1ddd |
32 |
+DIST Regexp-Common-net-CIDR-0.03.tar.gz 26311 BLAKE2B 61c7f29962fd64ebefc0bf9f10bf6f7fb19fa3fcfcc963cded5b45e21738998cda610a5a4736ae6deb30e38696c07b06fe5355c73dbda7844e2da1b34bfddb53 SHA512 0ca3d188ea4197af2981c2910e5f5a2d412d760251ee7ad9d688aa6e60f4dfdbf5583d599b1af8698ed7c740c252f0e8bda38de254f03a699122de1c1f598f20 |
33 |
|
34 |
diff --git a/dev-perl/Regexp-Common-net-CIDR/Regexp-Common-net-CIDR-0.30.0.ebuild b/dev-perl/Regexp-Common-net-CIDR/Regexp-Common-net-CIDR-0.30.0.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..8770f3f1c8d |
37 |
--- /dev/null |
38 |
+++ b/dev-perl/Regexp-Common-net-CIDR/Regexp-Common-net-CIDR-0.30.0.ebuild |
39 |
@@ -0,0 +1,27 @@ |
40 |
+# Copyright 1999-2018 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=6 |
44 |
+ |
45 |
+DIST_AUTHOR=BPS |
46 |
+DIST_VERSION=0.03 |
47 |
+inherit perl-module |
48 |
+ |
49 |
+DESCRIPTION="Provides patterns for CIDR blocks" |
50 |
+ |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="test" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-perl/Regexp-Common |
57 |
+" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ >=virtual/perl-ExtUtils-MakeMaker-6.590.0 |
60 |
+ test? ( virtual/perl-Test-Simple ) |
61 |
+" |
62 |
+ |
63 |
+PATCHES=( |
64 |
+ "${FILESDIR}/${PN}-0.03-no-dot-inc.patch" |
65 |
+ "${FILESDIR}/${PN}-0.03-basic-tests.patch" |
66 |
+) |
67 |
|
68 |
diff --git a/dev-perl/Regexp-Common-net-CIDR/files/Regexp-Common-net-CIDR-0.03-basic-tests.patch b/dev-perl/Regexp-Common-net-CIDR/files/Regexp-Common-net-CIDR-0.03-basic-tests.patch |
69 |
new file mode 100644 |
70 |
index 00000000000..19d6c031cfe |
71 |
--- /dev/null |
72 |
+++ b/dev-perl/Regexp-Common-net-CIDR/files/Regexp-Common-net-CIDR-0.03-basic-tests.patch |
73 |
@@ -0,0 +1,43 @@ |
74 |
+From 85dd6c8d78ab332921c109d9a8e8577d39502b7c Mon Sep 17 00:00:00 2001 |
75 |
+From: Kent Fredric <kentnl@g.o> |
76 |
+Date: Wed, 3 Jan 2018 23:24:42 +1300 |
77 |
+Subject: Add basic load and match test |
78 |
+ |
79 |
+--- |
80 |
+ MANIFEST | 1 + |
81 |
+ t/basic.t | 14 ++++++++++++++ |
82 |
+ 2 files changed, 15 insertions(+) |
83 |
+ create mode 100644 t/basic.t |
84 |
+ |
85 |
+diff --git a/MANIFEST b/MANIFEST |
86 |
+index 9f7ef84..b5de94a 100644 |
87 |
+--- a/MANIFEST |
88 |
++++ b/MANIFEST |
89 |
+@@ -14,3 +14,4 @@ Makefile.PL |
90 |
+ MANIFEST This list of files |
91 |
+ META.yml |
92 |
+ README |
93 |
++t/basic.t |
94 |
+diff --git a/t/basic.t b/t/basic.t |
95 |
+new file mode 100644 |
96 |
+index 0000000..48c2487 |
97 |
+--- /dev/null |
98 |
++++ b/t/basic.t |
99 |
+@@ -0,0 +1,14 @@ |
100 |
++ |
101 |
++use strict; |
102 |
++use warnings; |
103 |
++ |
104 |
++use Test::More; |
105 |
++use Regexp::Common; |
106 |
++use Regexp::Common::net::CIDR; |
107 |
++ |
108 |
++ok( "1.2.3.4/1" =~ /$RE{net}{CIDR}{IPv4}/, "1.2.3.4/1 is a CIDR"); |
109 |
++ok( "1.2.3.4" !~ /$RE{net}{CIDR}{IPv4}/, "1.2.3.4 is not a CIDR"); |
110 |
++ |
111 |
++done_testing; |
112 |
++ |
113 |
++ |
114 |
+-- |
115 |
+2.15.1 |
116 |
+ |
117 |
|
118 |
diff --git a/dev-perl/Regexp-Common-net-CIDR/files/Regexp-Common-net-CIDR-0.03-no-dot-inc.patch b/dev-perl/Regexp-Common-net-CIDR/files/Regexp-Common-net-CIDR-0.03-no-dot-inc.patch |
119 |
new file mode 100644 |
120 |
index 00000000000..cdd16b7e56e |
121 |
--- /dev/null |
122 |
+++ b/dev-perl/Regexp-Common-net-CIDR/files/Regexp-Common-net-CIDR-0.03-no-dot-inc.patch |
123 |
@@ -0,0 +1,23 @@ |
124 |
+From 7edb7171dc09e2cb6157724ebeaa45eeb07d8d4b Mon Sep 17 00:00:00 2001 |
125 |
+From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@g.o> |
126 |
+Date: Tue, 4 Jul 2017 09:19:37 +1200 |
127 |
+Subject: Add build fix for Perl 5.26 |
128 |
+ |
129 |
+Bug: https://bugs.gentoo.org/623090 |
130 |
+--- |
131 |
+ Makefile.PL | 2 +- |
132 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
133 |
+ |
134 |
+diff --git a/Makefile.PL b/Makefile.PL |
135 |
+index 422966a..fea6408 100644 |
136 |
+--- a/Makefile.PL |
137 |
++++ b/Makefile.PL |
138 |
+@@ -1,4 +1,4 @@ |
139 |
+-use inc::Module::Install; |
140 |
++use lib q[.]; use inc::Module::Install; |
141 |
+ name('Regexp-Common-net-CIDR'); |
142 |
+ version_from('lib/Regexp/Common/net/CIDR.pm'); |
143 |
+ license('perl'); |
144 |
+-- |
145 |
+2.15.1 |
146 |
+ |