Gentoo Archives: gentoo-commits

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/perl-overlay:master commit in: dev-perl/HTML-Widget/files/1.11/, dev-perl/HTML-Widget/
Date: Mon, 01 Sep 2014 17:07:26
Message-Id: 1409590095.cdb05dce6e1f7772f985879658ca3b12d42c10da.kent@gentoo
1 commit: cdb05dce6e1f7772f985879658ca3b12d42c10da
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 1 16:48:15 2014 +0000
4 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com>
5 CommitDate: Mon Sep 1 16:48:15 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=cdb05dce
7
8 [fixup] dev-perl/HTML-Widget EAPI5, Normalise, Fixup deps and tests
9
10 Package-Manager: portage-2.2.10
11
12 ---
13 dev-perl/HTML-Widget/ChangeLog | 9 +++-
14 dev-perl/HTML-Widget/HTML-Widget-1.11.ebuild | 27 -----------
15 dev-perl/HTML-Widget/HTML-Widget-1.110.0.ebuild | 47 ++++++++++++++++++
16 .../files/1.11/5.17-hash-random-rt-85970.patch | 56 ++++++++++++++++++++++
17 .../files/1.11/HTML-Tree-4-rt-63853.patch | 34 +++++++++++++
18 5 files changed, 145 insertions(+), 28 deletions(-)
19
20 diff --git a/dev-perl/HTML-Widget/ChangeLog b/dev-perl/HTML-Widget/ChangeLog
21 index 5d639ca..070eb56 100644
22 --- a/dev-perl/HTML-Widget/ChangeLog
23 +++ b/dev-perl/HTML-Widget/ChangeLog
24 @@ -1,7 +1,14 @@
25 # ChangeLog for dev-perl/HTML-Widget
26 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
27 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 # $Header: $
29
30 +*HTML-Widget-1.110.0 (01 Sep 2014)
31 +
32 + 01 Sep 2014; Kent Fredric <kentfredric@×××××.com> -HTML-Widget-1.11.ebuild,
33 + +HTML-Widget-1.110.0.ebuild, +files/1.11/HTML-Tree-4-rt-63853.patch,
34 + +files/1.11/5.17-hash-random-rt-85970.patch:
35 + EAPI5, Normalise, Fixup deps and tests
36 +
37 28 Oct 2012; Kent Fredric <kentfredric@×××××.com> HTML-Widget-1.11.ebuild:
38 Fix dependency on HTML-Tree ( normalize )
39
40
41 diff --git a/dev-perl/HTML-Widget/HTML-Widget-1.11.ebuild b/dev-perl/HTML-Widget/HTML-Widget-1.11.ebuild
42 deleted file mode 100644
43 index bd11ff9..0000000
44 --- a/dev-perl/HTML-Widget/HTML-Widget-1.11.ebuild
45 +++ /dev/null
46 @@ -1,27 +0,0 @@
47 -# Copyright 1999-2012 Gentoo Foundation
48 -# Distributed under the terms of the GNU General Public License v2
49 -# $Header: $
50 -
51 -MODULE_AUTHOR=CFRANKS
52 -inherit perl-module
53 -
54 -DESCRIPTION="HTML Widget And Validation Framework"
55 -LICENSE="|| ( Artistic GPL-2 )"
56 -
57 -SLOT="0"
58 -KEYWORDS="~amd64 ~x86"
59 -
60 -IUSE=""
61 -DEPEND="
62 - >=dev-lang/perl-5.8.1
63 - dev-perl/Module-Install
64 - >=dev-perl/HTML-Tree-3.230.0
65 - dev-perl/Class-Accessor
66 - dev-perl/Class-Accessor-Chained
67 - dev-perl/Class-Data-Accessor
68 - dev-perl/HTML-Scrubber
69 - dev-perl/Module-Pluggable-Fast
70 - dev-perl/Email-Valid
71 - dev-perl/Date-Calc
72 - dev-perl/Test-NoWarnings
73 -"
74
75 diff --git a/dev-perl/HTML-Widget/HTML-Widget-1.110.0.ebuild b/dev-perl/HTML-Widget/HTML-Widget-1.110.0.ebuild
76 new file mode 100644
77 index 0000000..5beaad1
78 --- /dev/null
79 +++ b/dev-perl/HTML-Widget/HTML-Widget-1.110.0.ebuild
80 @@ -0,0 +1,47 @@
81 +# Copyright 1999-2014 Gentoo Foundation
82 +# Distributed under the terms of the GNU General Public License v2
83 +# $Header: $
84 +EAPI=5
85 +MODULE_AUTHOR=CFRANKS
86 +MODULE_VERSION=1.11
87 +inherit perl-module
88 +
89 +DESCRIPTION="HTML Widget And Validation Framework"
90 +LICENSE="|| ( Artistic GPL-2 )"
91 +
92 +SLOT="0"
93 +KEYWORDS="~amd64 ~x86"
94 +
95 +IUSE="test"
96 +# HTML::Element -> HTML-Tree
97 +# Class::Accessor::Fast -> Class-Accessor
98 +# Class::Accessor::Chained::Fast -> Class-Accessor-Chained
99 +RDEPEND="
100 + >=dev-lang/perl-5.8.1
101 + >=dev-perl/HTML-Tree-3.220.0
102 + dev-perl/Class-Accessor
103 + dev-perl/Class-Accessor-Chained
104 + dev-perl/Class-Data-Accessor
105 + dev-perl/HTML-Scrubber
106 + virtual/perl-Storable
107 + dev-perl/Module-Pluggable-Fast
108 + dev-perl/Email-Valid
109 + dev-perl/Date-Calc
110 + virtual/perl-Scalar-List-Utils
111 +"
112 +DEPEND="$RDEPEND
113 + dev-perl/Test-NoWarnings
114 + test? (
115 + dev-perl/Test-Deep
116 + )
117 +"
118 +PATCHES=(
119 + "${FILESDIR}/${MODULE_VERSION}/HTML-Tree-4-rt-63853.patch"
120 + "${FILESDIR}/${MODULE_VERSION}/5.17-hash-random-rt-85970.patch"
121 +)
122 +PERL_RM_FILES=(
123 + t/02pod.t
124 + t/03podcoverage.t
125 +)
126 +
127 +SRC_TEST="do parallel"
128
129 diff --git a/dev-perl/HTML-Widget/files/1.11/5.17-hash-random-rt-85970.patch b/dev-perl/HTML-Widget/files/1.11/5.17-hash-random-rt-85970.patch
130 new file mode 100644
131 index 0000000..3c77d4e
132 --- /dev/null
133 +++ b/dev-perl/HTML-Widget/files/1.11/5.17-hash-random-rt-85970.patch
134 @@ -0,0 +1,56 @@
135 +Description: use Test::Deep against hash randomisation causing test failures
136 +Origin: vendor
137 +Bug: http://rt.cpan.org/Public/Bug/Display.html?id=85970
138 +Bug-Debian: http://bugs.debian.org/711572
139 +Author: gregor herrmann <gregoa@××××××.org>
140 +Last-Update: 2013-10-29
141 +
142 +--- a/t/06bugs_select_zero_key_constraint.t
143 ++++ b/t/06bugs_select_zero_key_constraint.t
144 +@@ -1,7 +1,8 @@
145 + use strict;
146 + use warnings;
147 +
148 +-use Test::More tests => 3;
149 ++use Test::More tests => 2;
150 ++use Test::Deep;
151 +
152 + use HTML::Widget;
153 + use lib 't/lib';
154 +@@ -20,7 +21,5 @@
155 +
156 + my $keys = $constraints[0]->in;
157 +
158 +-is( $keys->[0], 1, 'constraint value' );
159 +-
160 +-is( $keys->[1], 0, 'constraint value' );
161 ++cmp_bag( $keys, [0, 1], 'constraint values' );
162 +
163 +--- a/t/get_errors.t
164 ++++ b/t/get_errors.t
165 +@@ -2,6 +2,7 @@
166 + use warnings;
167 +
168 + use Test::More tests => 6;
169 ++use Test::Deep;
170 +
171 + use HTML::Widget;
172 + use lib 't/lib';
173 +@@ -27,7 +28,7 @@
174 + type => 'OtherType'
175 + } );
176 +
177 +- is_deeply( [
178 ++ cmp_bag( [
179 + new HTML::Widget::Error( {
180 + type => 'OtherType',
181 + name => 'baz',
182 +@@ -85,7 +86,7 @@
183 + "Errors correct with name provided"
184 + );
185 +
186 +- is_deeply( [
187 ++ cmp_bag( [
188 + new HTML::Widget::Error( {
189 + type => 'OtherType',
190 + name => 'baz',
191 \ No newline at end of file
192
193 diff --git a/dev-perl/HTML-Widget/files/1.11/HTML-Tree-4-rt-63853.patch b/dev-perl/HTML-Widget/files/1.11/HTML-Tree-4-rt-63853.patch
194 new file mode 100644
195 index 0000000..5688f0e
196 --- /dev/null
197 +++ b/dev-perl/HTML-Widget/files/1.11/HTML-Tree-4-rt-63853.patch
198 @@ -0,0 +1,34 @@
199 +diff -Naur t/04basic.t t/04basic.t
200 +--- t/04basic.t 2007-03-01 15:42:26.000000000 +0000
201 ++++ t/04basic.t 2014-09-01 16:31:49.592374273 +0000
202 +@@ -82,7 +82,7 @@
203 + is( $c->error_xml, <<EOF, 'Error XML output is ok' );
204 + <span class="error_messages" id="widget_age_errors"><span class="regex_errors" id="widget_age_error_regex">Contains digit characters.</span></span>
205 + EOF
206 +- is( $c->javascript_xml, <<EOF, 'JavScript XML output is ok' );
207 ++ is( $c->javascript_xml, ( substr <<EOF, 0, -1 ), 'JavScript XML output is ok' );
208 + <script type="text/javascript">
209 + <!--
210 +
211 +diff -Naur t/06bugs_xml_escape.t t/06bugs_xml_escape.t
212 +--- t/06bugs_xml_escape.t 2007-03-01 16:05:40.000000000 +0000
213 ++++ t/06bugs_xml_escape.t 2014-09-01 16:32:15.889098013 +0000
214 +@@ -23,5 +23,5 @@
215 +
216 + like( "$f", qr'value="é"', 'utf-8 character ok' );
217 +
218 +- like( "$f", qr'value="&#34; foo &#62;"', '' );
219 ++ like( "$f", qr'value="&quot; foo &gt;"', '' );
220 + }
221 +diff -Naur t/07custom_render.t t/07custom_render.t
222 +--- t/07custom_render.t 2007-03-01 15:42:26.000000000 +0000
223 ++++ t/07custom_render.t 2014-09-01 16:32:45.904641305 +0000
224 +@@ -119,7 +119,7 @@
225 + is( $c->error_xml, <<EOF, 'Error XML output is ok' );
226 + <span class="error_messages" id="widget_age_errors"><span class="regex_errors" id="widget_age_error_regex">Contains digit characters.</span></span>
227 + EOF
228 +- is( $c->javascript_xml, <<EOF, 'JavScript XML output is ok' );
229 ++ is( $c->javascript_xml, ( substr <<EOF, 0, -1 ), 'JavScript XML output is ok' );
230 + <script type="text/javascript">
231 + <!--
232 +