Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Benchmark-Timer/files/, dev-perl/Benchmark-Timer/
Date: Sun, 19 Aug 2018 04:35:40
Message-Id: 1534653325.50ce6d045451abbd8a1fcbe5bdfaddd4943018a3.kentnl@gentoo
1 commit: 50ce6d045451abbd8a1fcbe5bdfaddd4943018a3
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 19 04:34:45 2018 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 19 04:35:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50ce6d04
7
8 dev-perl/Benchmark-Timer: Bump to version 0.711.200
9
10 - EAPI6
11 - Remove lots of upstream silly author-tests generated at install time
12 - Remove lots of unhelpful author-time plugins
13 - Move delta.pl to USE="examples" instead of installing to @INC
14 - Enable parallel tests
15
16 Upstream:
17 - Fix for '.' in @INC
18 - Fix Makefile.PL warning
19
20 Package-Manager: Portage-2.3.40, Repoman-2.3.9
21
22 .../Benchmark-Timer-0.711.200.ebuild | 39 ++++++
23 dev-perl/Benchmark-Timer/Manifest | 1 +
24 .../Benchmark-Timer-0.7112-noauthortests.patch | 143 +++++++++++++++++++++
25 .../Benchmark-Timer-0.7112-relocateexample.patch | 34 +++++
26 4 files changed, 217 insertions(+)
27
28 diff --git a/dev-perl/Benchmark-Timer/Benchmark-Timer-0.711.200.ebuild b/dev-perl/Benchmark-Timer/Benchmark-Timer-0.711.200.ebuild
29 new file mode 100644
30 index 00000000000..fddd62ba117
31 --- /dev/null
32 +++ b/dev-perl/Benchmark-Timer/Benchmark-Timer-0.711.200.ebuild
33 @@ -0,0 +1,39 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +DIST_AUTHOR=DCOPPIT
40 +DIST_VERSION=0.7112
41 +DIST_EXAMPLES=("examples/*")
42 +inherit perl-module
43 +
44 +DESCRIPTION="Perl code benchmarking tool"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="test"
50 +
51 +PATCHES=(
52 + "${FILESDIR}/${PN}-0.7112-noauthortests.patch"
53 + "${FILESDIR}/${PN}-0.7112-relocateexample.patch"
54 +)
55 +PERL_RM_FILES=(
56 + "inc/Module/Install/AutomatedTester.pm"
57 + "inc/Module/Install/Bugtracker.pm"
58 + "inc/Module/Install/GithubMeta.pm"
59 + "inc/Module/Install/PRIVATE/Enable_Verbose_CPAN_Testing.pm"
60 + "inc/Module/Install/StandardTests.pm"
61 + "inc/URI/Escape.pm"
62 + "private-lib/Module/Install/PRIVATE/Enable_Verbose_CPAN_Testing.pm"
63 +)
64 +RDEPEND="
65 + dev-perl/Statistics-TTest
66 + virtual/perl-Time-HiRes
67 +"
68 +
69 +DEPEND="${RDEPEND}
70 + >=virtual/perl-ExtUtils-MakeMaker-6.360.0
71 + test? ( virtual/perl-Test-Simple )
72 +"
73
74 diff --git a/dev-perl/Benchmark-Timer/Manifest b/dev-perl/Benchmark-Timer/Manifest
75 index 0c4068182df..acae7f2d733 100644
76 --- a/dev-perl/Benchmark-Timer/Manifest
77 +++ b/dev-perl/Benchmark-Timer/Manifest
78 @@ -1 +1,2 @@
79 DIST Benchmark-Timer-0.7107.tar.gz 45734 BLAKE2B c0ec4842358043c7138cb65f47a75338bfe8da49d04bf7e39465abc3f96a54c9bddd47c331f6878827fe5310b50f16fddcfb63abc5ca206fad545dbfd3a2b692 SHA512 6faa50a90173a075a4bb398212e2db77348f59a47ff483db9e1885dc7dce9636557684574a21f228c53f0c29a468e663706843840b2e59abbaaed1222f400e05
80 +DIST Benchmark-Timer-0.7112.tar.gz 47756 BLAKE2B 524992cb051a712c90ee6f32e9cdc6391608ea00fb41b3bd1e45d1d5f75f52d7a4ae0c79fefcf5967d67b2317f147f773edebfdb73209acd5c721c771d1f531d SHA512 6ae3ef700a777debb06cb2bbb19c34170e9bd88917c6441a44149f3b8094a5ed1690d727e3fc4e63b48e1bbcab85dd917c6f659ebfad8a8304134ea04e9262eb
81
82 diff --git a/dev-perl/Benchmark-Timer/files/Benchmark-Timer-0.7112-noauthortests.patch b/dev-perl/Benchmark-Timer/files/Benchmark-Timer-0.7112-noauthortests.patch
83 new file mode 100644
84 index 00000000000..f1fb7232d4b
85 --- /dev/null
86 +++ b/dev-perl/Benchmark-Timer/files/Benchmark-Timer-0.7112-noauthortests.patch
87 @@ -0,0 +1,143 @@
88 +From 891cdf3a0cef46a5ee2d36e2a0c937537d9916bc Mon Sep 17 00:00:00 2001
89 +From: Kent Fredric <kentnl@g.o>
90 +Date: Sun, 19 Aug 2018 16:02:25 +1200
91 +Subject: Remove "Cute" generation of author tests during install time.
92 +
93 +Author tests aren't useful for end users, nor are the additional
94 +dependencies ( Test::Compile, UNIVERSAL::require, URI ) needed
95 +to support all this behaviour which is functionally static once
96 +published.
97 +---
98 + MANIFEST | 9 --
99 + META.yml | 3 -
100 + Makefile.PL | 38 -----
101 + inc/Module/Install/AutomatedTester.pm | 24 ---
102 + inc/Module/Install/Bugtracker.pm | 29 ----
103 + inc/Module/Install/GithubMeta.pm | 53 -------
104 + .../PRIVATE/Enable_Verbose_CPAN_Testing.pm | 51 -------
105 + inc/Module/Install/StandardTests.pm | 139 ------------------
106 + inc/URI/Escape.pm | 89 -----------
107 + .../PRIVATE/Enable_Verbose_CPAN_Testing.pm | 50 -------
108 + 10 files changed, 485 deletions(-)
109 + delete mode 100644 inc/Module/Install/AutomatedTester.pm
110 + delete mode 100644 inc/Module/Install/Bugtracker.pm
111 + delete mode 100644 inc/Module/Install/GithubMeta.pm
112 + delete mode 100644 inc/Module/Install/PRIVATE/Enable_Verbose_CPAN_Testing.pm
113 + delete mode 100644 inc/Module/Install/StandardTests.pm
114 + delete mode 100644 inc/URI/Escape.pm
115 + delete mode 100644 private-lib/Module/Install/PRIVATE/Enable_Verbose_CPAN_Testing.pm
116 +
117 +diff --git a/MANIFEST b/MANIFEST
118 +index 8fbb909..7653c9b 100644
119 +--- a/MANIFEST
120 ++++ b/MANIFEST
121 +@@ -20,23 +20,14 @@ t/99_errors.t
122 + inc/Module/AutoInstall.pm
123 + inc/Module/Install.pm
124 + inc/Module/Install/AutoLicense.pm
125 +-inc/Module/Install/AutomatedTester.pm
126 + inc/Module/Install/Base.pm
127 +-inc/Module/Install/Bugtracker.pm
128 + inc/Module/Install/Can.pm
129 + inc/Module/Install/CheckOptional.pm
130 + inc/Module/Install/Fetch.pm
131 +-inc/Module/Install/GithubMeta.pm
132 + inc/Module/Install/Include.pm
133 + inc/Module/Install/Makefile.pm
134 + inc/Module/Install/Metadata.pm
135 +-inc/Module/Install/StandardTests.pm
136 + inc/Module/Install/Win32.pm
137 + inc/Module/Install/WriteAll.pm
138 +-inc/Module/Install/PRIVATE/Enable_Verbose_CPAN_Testing.pm
139 +-inc/URI/Escape.pm
140 +-
141 +-# Private Module::Install extensions
142 +-private-lib/Module/Install/PRIVATE/Enable_Verbose_CPAN_Testing.pm
143 +
144 + META.yml
145 +diff --git a/META.yml b/META.yml
146 +index b5fd365..a653d31 100644
147 +--- a/META.yml
148 ++++ b/META.yml
149 +@@ -4,12 +4,9 @@ author:
150 + - '-2001 Andrew Ho.'
151 + build_requires:
152 + ExtUtils::MakeMaker: 6.36
153 +- Test::Compile: 0
154 + Test::More: 0
155 +- UNIVERSAL::require: 0
156 + configure_requires:
157 + ExtUtils::MakeMaker: 6.36
158 +- URI::Escape: 0
159 + distribution_type: module
160 + dynamic_config: 1
161 + generated_by: 'Module::Install version 1.19'
162 +diff --git a/Makefile.PL b/Makefile.PL
163 +index a187b91..386b90f 100755
164 +--- a/Makefile.PL
165 ++++ b/Makefile.PL
166 +@@ -10,17 +10,9 @@ use inc::Module::Install;
167 +
168 + all_from('lib/Benchmark/Timer.pm');
169 +
170 +-auto_set_bugtracker;
171 +-githubmeta;
172 +-
173 + # Perl 5.6 doesn't work with URI::Escape. We get an error about Exporter not exporting "import"
174 + perl_version '5.008';
175 +
176 +-configure_requires(
177 +- # Module::Install::Bugtracker needs this
178 +- 'URI::Escape' => 0,
179 +-);
180 +-
181 + requires(
182 + 'Time::HiRes' => 0,
183 + );
184 +@@ -31,8 +23,6 @@ test_requires(
185 +
186 + license 'gpl2';
187 +
188 +-use_standard_tests;
189 +-
190 + auto_license(holder => 'David Coppit');
191 +
192 + check_optional('Statistics::PointEstimation' => 0,
193 +@@ -41,34 +31,6 @@ check_optional('Statistics::PointEstimation' => 0,
194 + no_index 'file' => 'delta.pl';
195 + no_index 'directory' => 'private-lib';
196 +
197 +-enable_verbose_cpan_testing();
198 +-
199 + realclean_files('inc');
200 +
201 + WriteAll;
202 +-
203 +-# ---- Workaround for broken module ----
204 +-# https://rt.cpan.org/Ticket/Display.html?id=125772
205 +-{
206 +- package Module::Install::StandardTests;
207 +-
208 +- sub write_standard_test_compile {
209 +- my $self = shift;
210 +- $self->write_test_file('000_standard__compile.t', q/
211 +- BEGIN {
212 +- if ($^O eq 'MSWin32') {
213 +- require Test::More;
214 +- Test::More->import(skip_all =>
215 +- "Test::Compile doesn't work properly on Windows");
216 +- } else {
217 +- require Test::More;
218 +- Test::More->import();
219 +- eval "use Test::Compile";
220 +- Test::More->builder->BAIL_OUT(
221 +- "Test::Compile required for testing compilation") if $@;
222 +- all_pm_files_ok();
223 +- }
224 +- }
225 +- /);
226 +- }
227 +-}
228 +--
229 +2.17.1
230 +
231
232 diff --git a/dev-perl/Benchmark-Timer/files/Benchmark-Timer-0.7112-relocateexample.patch b/dev-perl/Benchmark-Timer/files/Benchmark-Timer-0.7112-relocateexample.patch
233 new file mode 100644
234 index 00000000000..89534e0b782
235 --- /dev/null
236 +++ b/dev-perl/Benchmark-Timer/files/Benchmark-Timer-0.7112-relocateexample.patch
237 @@ -0,0 +1,34 @@
238 +From 61b57efe776ee08232d2f9cd1cd6c89ae26cd232 Mon Sep 17 00:00:00 2001
239 +From: Kent Fredric <kentnl@g.o>
240 +Date: Sun, 19 Aug 2018 16:12:39 +1200
241 +Subject: Don't install delta.pl to lib/Benchmark/
242 +
243 +*.pl install to $(INST_SITELIB) due to legacy behaviour for EUMM
244 +where *.pl was for a "perl library", and nodes in / were installed
245 +under $(dirname $(echo $distname | sed 's|-|/|;s|^|lib/|;s|$|.pm$' ))
246 +---
247 + MANIFEST | 2 +-
248 + delta.pl => examples/delta.pl | 0
249 + 2 files changed, 1 insertion(+), 1 deletion(-)
250 + rename delta.pl => examples/delta.pl (100%)
251 +
252 +diff --git a/MANIFEST b/MANIFEST
253 +index 7653c9b..6c93cee 100644
254 +--- a/MANIFEST
255 ++++ b/MANIFEST
256 +@@ -3,7 +3,7 @@ LICENSE
257 + MANIFEST
258 + Makefile.PL
259 + README
260 +-delta.pl
261 ++examples/delta.pl
262 + TODO
263 +
264 + # The module files
265 +diff --git a/delta.pl b/examples/delta.pl
266 +similarity index 100%
267 +rename from delta.pl
268 +rename to examples/delta.pl
269 +--
270 +2.17.1
271 +