1 |
commit: cb7bcc894d9da062a55040a3d2cdc733bfe0fbc3 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 21 08:16:28 2018 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 21 08:17:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb7bcc89 |
7 |
|
8 |
dev-perl/WWW-Curl: EAPI6 + tests |
9 |
|
10 |
- EAPI6ify |
11 |
- Enable tests |
12 |
- Purge unwanted POD tests |
13 |
- Add network controls to network tests |
14 |
- Patchify dot-inc fix. |
15 |
|
16 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
17 |
|
18 |
dev-perl/WWW-Curl/WWW-Curl-4.170.0-r1.ebuild | 25 +++ |
19 |
dev-perl/WWW-Curl/files/WWW-Curl-4.17-dotinc.patch | 26 +++ |
20 |
.../files/WWW-Curl-4.17-networktests.patch | 190 +++++++++++++++++++++ |
21 |
3 files changed, 241 insertions(+) |
22 |
|
23 |
diff --git a/dev-perl/WWW-Curl/WWW-Curl-4.170.0-r1.ebuild b/dev-perl/WWW-Curl/WWW-Curl-4.170.0-r1.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000000..002c1a778c6 |
26 |
--- /dev/null |
27 |
+++ b/dev-perl/WWW-Curl/WWW-Curl-4.170.0-r1.ebuild |
28 |
@@ -0,0 +1,25 @@ |
29 |
+# Copyright 1999-2018 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=6 |
33 |
+ |
34 |
+DIST_AUTHOR=SZBALINT |
35 |
+DIST_VERSION=4.17 |
36 |
+inherit perl-module |
37 |
+ |
38 |
+DESCRIPTION="Perl extension interface for libcurl" |
39 |
+ |
40 |
+LICENSE="|| ( MPL-1.0 MPL-1.1 MIT )" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
43 |
+IUSE="" |
44 |
+ |
45 |
+RDEPEND="net-misc/curl" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+ |
48 |
+PATCHES=( |
49 |
+ "${FILESDIR}"/${PN}-4.150.0-curl-7.50.2.patch |
50 |
+ "${FILESDIR}"/${PN}-4.17-dotinc.patch |
51 |
+ "${FILESDIR}"/${PN}-4.17-networktests.patch |
52 |
+) |
53 |
+PERL_RM_FILES=("t/meta.t" "t/pod-coverage.t" "t/pod.t") |
54 |
|
55 |
diff --git a/dev-perl/WWW-Curl/files/WWW-Curl-4.17-dotinc.patch b/dev-perl/WWW-Curl/files/WWW-Curl-4.17-dotinc.patch |
56 |
new file mode 100644 |
57 |
index 00000000000..bb6ea23ceb7 |
58 |
--- /dev/null |
59 |
+++ b/dev-perl/WWW-Curl/files/WWW-Curl-4.17-dotinc.patch |
60 |
@@ -0,0 +1,26 @@ |
61 |
+From 326705b559b7e488314a776d171aef40e687e91b Mon Sep 17 00:00:00 2001 |
62 |
+From: Kent Fredric <kentnl@g.o> |
63 |
+Date: Fri, 16 Jun 2017 13:42:13 +1200 |
64 |
+Subject: Fix for '.' in @INC removal on Perl 5.26+ |
65 |
+ |
66 |
+Bug: https://rt.cpan.org/Ticket/Display.html?id=122110 |
67 |
+--- |
68 |
+ Makefile.PL | 2 +- |
69 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
70 |
+ |
71 |
+diff --git a/Makefile.PL b/Makefile.PL |
72 |
+index fc1a55a..b455410 100644 |
73 |
+--- a/Makefile.PL |
74 |
++++ b/Makefile.PL |
75 |
+@@ -1,7 +1,7 @@ |
76 |
+ # Makefile.PL for Perl module WWW::Curl |
77 |
+ # Check out the README file for more information. |
78 |
+ |
79 |
+-use inc::Module::Install; |
80 |
++use lib q[.]; use inc::Module::Install; |
81 |
+ |
82 |
+ name 'WWW-Curl'; |
83 |
+ abstract 'Perl extension interface for libcurl'; |
84 |
+-- |
85 |
+2.16.2 |
86 |
+ |
87 |
|
88 |
diff --git a/dev-perl/WWW-Curl/files/WWW-Curl-4.17-networktests.patch b/dev-perl/WWW-Curl/files/WWW-Curl-4.17-networktests.patch |
89 |
new file mode 100644 |
90 |
index 00000000000..38bc8b4ecd2 |
91 |
--- /dev/null |
92 |
+++ b/dev-perl/WWW-Curl/files/WWW-Curl-4.17-networktests.patch |
93 |
@@ -0,0 +1,190 @@ |
94 |
+From 7102fd54eb385920ddf41c59e1196fc221ad9ea2 Mon Sep 17 00:00:00 2001 |
95 |
+From: Kent Fredric <kentnl@g.o> |
96 |
+Date: Wed, 21 Mar 2018 21:08:45 +1300 |
97 |
+Subject: Disable network tests w/ NO_NETWORK_TESTING set. |
98 |
+ |
99 |
+Gentoo users can opt-in to these tests by doing: |
100 |
+ |
101 |
+ DIST_TEST_OVERRIDE="do network" |
102 |
+ |
103 |
+Or Similar |
104 |
+--- |
105 |
+ t/01basic.t | 6 ++++++ |
106 |
+ t/02callbacks.t | 7 +++++++ |
107 |
+ t/04abort-test.t | 7 +++++++ |
108 |
+ t/05progress.t | 7 +++++++ |
109 |
+ t/08ssl.t | 7 +++++++ |
110 |
+ t/09times.t | 7 +++++++ |
111 |
+ t/14duphandle.t | 7 ++++++- |
112 |
+ t/15duphandle-callback.t | 7 ++++++- |
113 |
+ t/18twinhandles.t | 7 ++++++- |
114 |
+ t/21write-to-scalar.t | 6 ++++++ |
115 |
+ 10 files changed, 65 insertions(+), 3 deletions(-) |
116 |
+ |
117 |
+diff --git a/t/01basic.t b/t/01basic.t |
118 |
+index 93e12b1..77ca444 100644 |
119 |
+--- a/t/01basic.t |
120 |
++++ b/t/01basic.t |
121 |
+@@ -1,5 +1,11 @@ |
122 |
+ #!perl |
123 |
+ |
124 |
++BEGIN { |
125 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
126 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
127 |
++ exit 0; |
128 |
++ } |
129 |
++} |
130 |
+ use strict; |
131 |
+ use warnings; |
132 |
+ use Test::More tests => 19; |
133 |
+diff --git a/t/02callbacks.t b/t/02callbacks.t |
134 |
+index 76aff4f..344b4c5 100644 |
135 |
+--- a/t/02callbacks.t |
136 |
++++ b/t/02callbacks.t |
137 |
+@@ -1,5 +1,12 @@ |
138 |
+ #!perl |
139 |
+ |
140 |
++BEGIN { |
141 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
142 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
143 |
++ exit 0; |
144 |
++ } |
145 |
++} |
146 |
++ |
147 |
+ use strict; |
148 |
+ use warnings; |
149 |
+ use Test::More tests => 7; |
150 |
+diff --git a/t/04abort-test.t b/t/04abort-test.t |
151 |
+index c653c49..dcba4fd 100644 |
152 |
+--- a/t/04abort-test.t |
153 |
++++ b/t/04abort-test.t |
154 |
+@@ -1,5 +1,12 @@ |
155 |
+ #!perl |
156 |
+ |
157 |
++BEGIN { |
158 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
159 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
160 |
++ exit 0; |
161 |
++ } |
162 |
++} |
163 |
++ |
164 |
+ use strict; |
165 |
+ use warnings; |
166 |
+ use Test::More tests => 8; |
167 |
+diff --git a/t/05progress.t b/t/05progress.t |
168 |
+index 52129ea..25a08fa 100644 |
169 |
+--- a/t/05progress.t |
170 |
++++ b/t/05progress.t |
171 |
+@@ -1,5 +1,12 @@ |
172 |
+ #!perl |
173 |
+ |
174 |
++BEGIN { |
175 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
176 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
177 |
++ exit 0; |
178 |
++ } |
179 |
++} |
180 |
++ |
181 |
+ use strict; |
182 |
+ use warnings; |
183 |
+ use Test::More tests => 16; |
184 |
+diff --git a/t/08ssl.t b/t/08ssl.t |
185 |
+index 7374e06..d332d37 100644 |
186 |
+--- a/t/08ssl.t |
187 |
++++ b/t/08ssl.t |
188 |
+@@ -1,5 +1,12 @@ |
189 |
+ #!perl |
190 |
+ |
191 |
++BEGIN { |
192 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
193 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
194 |
++ exit 0; |
195 |
++ } |
196 |
++} |
197 |
++ |
198 |
+ use strict; |
199 |
+ use warnings; |
200 |
+ use Test::More; |
201 |
+diff --git a/t/09times.t b/t/09times.t |
202 |
+index 6b3c43a..49bf76a 100644 |
203 |
+--- a/t/09times.t |
204 |
++++ b/t/09times.t |
205 |
+@@ -1,5 +1,12 @@ |
206 |
+ #!perl |
207 |
+ |
208 |
++BEGIN { |
209 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
210 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
211 |
++ exit 0; |
212 |
++ } |
213 |
++} |
214 |
++ |
215 |
+ use strict; |
216 |
+ use warnings; |
217 |
+ use Test::More tests => 19; |
218 |
+diff --git a/t/14duphandle.t b/t/14duphandle.t |
219 |
+index f56ac57..f4211d0 100644 |
220 |
+--- a/t/14duphandle.t |
221 |
++++ b/t/14duphandle.t |
222 |
+@@ -1,5 +1,10 @@ |
223 |
+ #!perl |
224 |
+- |
225 |
++BEGIN { |
226 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
227 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
228 |
++ exit 0; |
229 |
++ } |
230 |
++} |
231 |
+ use strict; |
232 |
+ use warnings; |
233 |
+ use lib 'inc'; |
234 |
+diff --git a/t/15duphandle-callback.t b/t/15duphandle-callback.t |
235 |
+index 3c5ecd0..ee67b8a 100644 |
236 |
+--- a/t/15duphandle-callback.t |
237 |
++++ b/t/15duphandle-callback.t |
238 |
+@@ -1,5 +1,10 @@ |
239 |
+ #!perl |
240 |
+- |
241 |
++BEGIN { |
242 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
243 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
244 |
++ exit 0; |
245 |
++ } |
246 |
++} |
247 |
+ use strict; |
248 |
+ use warnings; |
249 |
+ use lib 'inc'; |
250 |
+diff --git a/t/18twinhandles.t b/t/18twinhandles.t |
251 |
+index 5b0b86b..a6acdb7 100644 |
252 |
+--- a/t/18twinhandles.t |
253 |
++++ b/t/18twinhandles.t |
254 |
+@@ -1,5 +1,10 @@ |
255 |
+ #!perl |
256 |
+- |
257 |
++BEGIN { |
258 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
259 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
260 |
++ exit 0; |
261 |
++ } |
262 |
++} |
263 |
+ use strict; |
264 |
+ use warnings; |
265 |
+ use Test::More tests => 12; |
266 |
+diff --git a/t/21write-to-scalar.t b/t/21write-to-scalar.t |
267 |
+index 85d916e..6b691b5 100644 |
268 |
+--- a/t/21write-to-scalar.t |
269 |
++++ b/t/21write-to-scalar.t |
270 |
+@@ -1,4 +1,10 @@ |
271 |
+ #!perl |
272 |
++BEGIN { |
273 |
++ if ( $ENV{NO_NETWORK_TESTING} ) { |
274 |
++ print "1..0 # SKIP NO_NETWORK_TESTING set"; |
275 |
++ exit 0; |
276 |
++ } |
277 |
++} |
278 |
+ use strict; |
279 |
+ use warnings; |
280 |
+ use Test::More 'no_plan'; |
281 |
+-- |
282 |
+2.16.2 |
283 |
+ |