commit: f877cc0443f8495fac478deec7817ae959df1da2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com> AuthorDate: Thu Aug 28 06:30:33 2014 +0000 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com> CommitDate: Thu Aug 28 06:30:33 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=commit;h=f877cc04
[fixup] dev-perl/Class-DBI-AsForm EAPI5, Normalise, fixup deps and test, fix rt#63623 Package-Manager: portage-2.2.10 --- dev-perl/Class-DBI-AsForm/ChangeLog | 13 +++++++- ...2.42.ebuild => Class-DBI-AsForm-2.420.0.ebuild} | 19 +++++++++--- .../Class-DBI-AsForm/files/2.42/rt-63623.patch | 36 ++++++++++++++++++++++ 3 files changed, 63 insertions(+), 5 deletions(-) diff --git a/dev-perl/Class-DBI-AsForm/ChangeLog b/dev-perl/Class-DBI-AsForm/ChangeLog index 4a07c21..4e3fd93 100644 --- a/dev-perl/Class-DBI-AsForm/ChangeLog +++ b/dev-perl/Class-DBI-AsForm/ChangeLog @@ -1,7 +1,18 @@ # ChangeLog for dev-perl/Class-DBI-AsForm -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 28 Aug 2014; Kent Fredric <[email protected]> + -Class-DBI-AsForm-2.42.ebuild, +Class-DBI-AsForm-2.420.0.ebuild, + +files/2.42/rt-63623.patch: + EAPI5, Normalise, fixup deps and test, fix rt#63623 + +*Class-DBI-AsForm-2.420.0 (28 Aug 2014) + + 28 Aug 2014; Kent Fredric <[email protected]> + -Class-DBI-AsForm-2.42.ebuild, +Class-DBI-AsForm-2.420.0.ebuild: + EAPI5, Normalise, fixup deps and tests + 26 Apr 2013; Kent Fredric <[email protected]> Class-DBI-AsForm-2.42.ebuild: Fix dependency on DBI ( normalize ) 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 similarity index 55% rename from dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.42.ebuild rename to dev-perl/Class-DBI-AsForm/Class-DBI-AsForm-2.420.0.ebuild index 0536f2b..517809f 100644 --- 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 @@ -1,8 +1,9 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ - +EAPI=5 MODULE_AUTHOR=TMTM +MODULE_VERSION=2.42 inherit perl-module DESCRIPTION="Produce HTML form elements for database columns" @@ -12,9 +13,19 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" -DEPEND=" - >=dev-perl/Class-DBI-0.94 +PATCHES=( + "${FILESDIR}/${MODULE_VERSION}/rt-63623.patch" +) +# HTML::Element -> HTML::Tree +RDEPEND=" + >=dev-perl/Class-DBI-0.940.0 >=dev-perl/DBI-1.210.0 dev-perl/HTML-Tree dev-perl/Class-DBI-Plugin-Type " +DEPEND="$RDEPEND" +PERL_RM_FILES=( + t/pod-coverage.t + t/pod.t +) +SRC_TEST=do 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 new file mode 100644 index 0000000..b0d8503 --- /dev/null +++ b/dev-perl/Class-DBI-AsForm/files/2.42/rt-63623.patch @@ -0,0 +1,36 @@ +From ca3bb3bb3004396afa52ea9b3c99e9b5dd363576 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <[email protected]> +Date: Fri, 24 Jun 2011 12:12:50 +0200 +Subject: [PATCH] Adapt to formating changes in HTML-Tree 4.0 (RT#63623) + +--- + t/01.t | 11 ++++------- + 1 files changed, 4 insertions(+), 7 deletions(-) + +diff --git a/t/01.t b/t/01.t +index 96133ba..e26e83e 100644 +--- a/t/01.t ++++ b/t/01.t +@@ -40,15 +40,12 @@ like(Foo->to_field("baz"), qr/<input .*name="baz"/, + "Ordinary text field OK"); + + Foo->has_a(bar => Bar); +-is(Foo->to_field("bar"), "<select name=\"bar\"><option value=1>Hi</option></select>\n", ++is(Foo->to_field("bar"), "<select name=\"bar\"><option value=\"1\">Hi</option></select>", + "Select OK"); + + my $x = bless({id => 1, bar => Bar->retrieve_all(), baz => "Hello there"}, "Foo"); +-my %cgi = ( id => '<input name="id" type="text" value=1> +-', +- bar => '<select name="bar"><option selected value=1>Hi</option></select> +-', +- baz => '<input name="baz" type="text" value="Hello there"> +-' ++my %cgi = ( id => '<input name="id" type="text" value="1" />', ++ bar => '<select name="bar"><option selected value="1">Hi</option></select>', ++ baz => '<input name="baz" type="text" value="Hello there" />' + ); + is_deeply({$x->to_cgi}, \%cgi, "All correct as an object method"); +-- +1.7.5.4 +
