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/Class-DBI-AsForm/files/2.42/, dev-perl/Class-DBI-AsForm/
Date: Thu, 28 Aug 2014 07:30:12
Message-Id: 1409207433.f877cc0443f8495fac478deec7817ae959df1da2.kent@gentoo
1 commit: f877cc0443f8495fac478deec7817ae959df1da2
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Thu Aug 28 06:30:33 2014 +0000
4 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com>
5 CommitDate: Thu Aug 28 06:30:33 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=f877cc04
7
8 [fixup] dev-perl/Class-DBI-AsForm EAPI5, Normalise, fixup deps and test, fix rt#63623
9
10 Package-Manager: portage-2.2.10
11
12 ---
13 dev-perl/Class-DBI-AsForm/ChangeLog | 13 +++++++-
14 ...2.42.ebuild => Class-DBI-AsForm-2.420.0.ebuild} | 19 +++++++++---
15 .../Class-DBI-AsForm/files/2.42/rt-63623.patch | 36 ++++++++++++++++++++++
16 3 files changed, 63 insertions(+), 5 deletions(-)
17
18 diff --git a/dev-perl/Class-DBI-AsForm/ChangeLog b/dev-perl/Class-DBI-AsForm/ChangeLog
19 index 4a07c21..4e3fd93 100644
20 --- a/dev-perl/Class-DBI-AsForm/ChangeLog
21 +++ b/dev-perl/Class-DBI-AsForm/ChangeLog
22 @@ -1,7 +1,18 @@
23 # ChangeLog for dev-perl/Class-DBI-AsForm
24 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
25 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
26 # $Header: $
27
28 + 28 Aug 2014; Kent Fredric <kentfredric@×××××.com>
29 + -Class-DBI-AsForm-2.42.ebuild, +Class-DBI-AsForm-2.420.0.ebuild,
30 + +files/2.42/rt-63623.patch:
31 + EAPI5, Normalise, fixup deps and test, fix rt#63623
32 +
33 +*Class-DBI-AsForm-2.420.0 (28 Aug 2014)
34 +
35 + 28 Aug 2014; Kent Fredric <kentfredric@×××××.com>
36 + -Class-DBI-AsForm-2.42.ebuild, +Class-DBI-AsForm-2.420.0.ebuild:
37 + EAPI5, Normalise, fixup deps and tests
38 +
39 26 Apr 2013; Kent Fredric <kentfredric@×××××.com>
40 Class-DBI-AsForm-2.42.ebuild:
41 Fix dependency on DBI ( normalize )
42
43 diff --git a/dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.42.ebuild b/dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.420.0.ebuild
44 similarity index 55%
45 rename from dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.42.ebuild
46 rename to dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.420.0.ebuild
47 index 0536f2b..517809f 100644
48 --- a/dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.42.ebuild
49 +++ b/dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.420.0.ebuild
50 @@ -1,8 +1,9 @@
51 -# Copyright 1999-2013 Gentoo Foundation
52 +# Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: $
55 -
56 +EAPI=5
57 MODULE_AUTHOR=TMTM
58 +MODULE_VERSION=2.42
59 inherit perl-module
60
61 DESCRIPTION="Produce HTML form elements for database columns"
62 @@ -12,9 +13,19 @@ SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64
65 IUSE=""
66 -DEPEND="
67 - >=dev-perl/Class-DBI-0.94
68 +PATCHES=(
69 + "${FILESDIR}/${MODULE_VERSION}/rt-63623.patch"
70 +)
71 +# HTML::Element -> HTML::Tree
72 +RDEPEND="
73 + >=dev-perl/Class-DBI-0.940.0
74 >=dev-perl/DBI-1.210.0
75 dev-perl/HTML-Tree
76 dev-perl/Class-DBI-Plugin-Type
77 "
78 +DEPEND="$RDEPEND"
79 +PERL_RM_FILES=(
80 + t/pod-coverage.t
81 + t/pod.t
82 +)
83 +SRC_TEST=do
84
85 diff --git a/dev-perl/Class-DBI-AsForm/files/2.42/rt-63623.patch b/dev-perl/Class-DBI-AsForm/files/2.42/rt-63623.patch
86 new file mode 100644
87 index 0000000..b0d8503
88 --- /dev/null
89 +++ b/dev-perl/Class-DBI-AsForm/files/2.42/rt-63623.patch
90 @@ -0,0 +1,36 @@
91 +From ca3bb3bb3004396afa52ea9b3c99e9b5dd363576 Mon Sep 17 00:00:00 2001
92 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@××××××.com>
93 +Date: Fri, 24 Jun 2011 12:12:50 +0200
94 +Subject: [PATCH] Adapt to formating changes in HTML-Tree 4.0 (RT#63623)
95 +
96 +---
97 + t/01.t | 11 ++++-------
98 + 1 files changed, 4 insertions(+), 7 deletions(-)
99 +
100 +diff --git a/t/01.t b/t/01.t
101 +index 96133ba..e26e83e 100644
102 +--- a/t/01.t
103 ++++ b/t/01.t
104 +@@ -40,15 +40,12 @@ like(Foo->to_field("baz"), qr/<input .*name="baz"/,
105 + "Ordinary text field OK");
106 +
107 + Foo->has_a(bar => Bar);
108 +-is(Foo->to_field("bar"), "<select name=\"bar\"><option value=1>Hi</option></select>\n",
109 ++is(Foo->to_field("bar"), "<select name=\"bar\"><option value=\"1\">Hi</option></select>",
110 + "Select OK");
111 +
112 + my $x = bless({id => 1, bar => Bar->retrieve_all(), baz => "Hello there"}, "Foo");
113 +-my %cgi = ( id => '<input name="id" type="text" value=1>
114 +-',
115 +- bar => '<select name="bar"><option selected value=1>Hi</option></select>
116 +-',
117 +- baz => '<input name="baz" type="text" value="Hello there">
118 +-'
119 ++my %cgi = ( id => '<input name="id" type="text" value="1" />',
120 ++ bar => '<select name="bar"><option selected value="1">Hi</option></select>',
121 ++ baz => '<input name="baz" type="text" value="Hello there" />'
122 + );
123 + is_deeply({$x->to_cgi}, \%cgi, "All correct as an object method");
124 +--
125 +1.7.5.4
126 +