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/Catalyst-View-Mason/, dev-perl/Catalyst-View-Mason/files/0.19/
Date: Sun, 29 Mar 2015 17:19:29
Message-Id: 1427649361.e55a1e13f3debd175822b548c83468bf5fa11749.kent@gentoo
1 commit: e55a1e13f3debd175822b548c83468bf5fa11749
2 Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
3 AuthorDate: Sun Mar 29 16:55:29 2015 +0000
4 Commit: Kent Fredric <kentfredric <AT> gmail <DOT> com>
5 CommitDate: Sun Mar 29 17:16:01 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/perl-overlay.git/commit/?id=e55a1e13
7
8 [bump] Catalyst-View-Mason-0.190.0
9
10 Package-Manager: portage-2.2.17
11
12 .../Catalyst-View-Mason-0.18.ebuild | 21 -------------
13 .../Catalyst-View-Mason-0.190.0.ebuild | 28 +++++++++++++++++
14 .../Catalyst-View-Mason/files/0.19/rt-102381.patch | 35 ++++++++++++++++++++++
15 3 files changed, 63 insertions(+), 21 deletions(-)
16
17 diff --git a/dev-perl/Catalyst-View-Mason/Catalyst-View-Mason-0.18.ebuild b/dev-perl/Catalyst-View-Mason/Catalyst-View-Mason-0.18.ebuild
18 deleted file mode 100644
19 index 60f3629..0000000
20 --- a/dev-perl/Catalyst-View-Mason/Catalyst-View-Mason-0.18.ebuild
21 +++ /dev/null
22 @@ -1,21 +0,0 @@
23 -# Copyright 1999-2009 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -# $Header: $
26 -EAPI=2
27 -MODULE_AUTHOR=FLORA
28 -inherit perl-module
29 -
30 -DESCRIPTION="Mason View Class"
31 -LICENSE="|| ( Artistic GPL-2 )"
32 -
33 -SLOT="0"
34 -KEYWORDS="~amd64 ~x86"
35 -
36 -IUSE=""
37 -RDEPEND="
38 - dev-perl/Catalyst-Runtime
39 - dev-perl/HTML-Mason
40 - virtual/perl-parent
41 - dev-perl/MRO-Compat
42 -"
43 -DEPEND="${RDEPEND}"
44
45 diff --git a/dev-perl/Catalyst-View-Mason/Catalyst-View-Mason-0.190.0.ebuild b/dev-perl/Catalyst-View-Mason/Catalyst-View-Mason-0.190.0.ebuild
46 new file mode 100644
47 index 0000000..d917e1e
48 --- /dev/null
49 +++ b/dev-perl/Catalyst-View-Mason/Catalyst-View-Mason-0.190.0.ebuild
50 @@ -0,0 +1,28 @@
51 +# Copyright 1999-2015 Gentoo Foundation
52 +# Distributed under the terms of the GNU General Public License v2
53 +# $Header: $
54 +EAPI=5
55 +MODULE_AUTHOR=JJNAPIORK
56 +MODULE_VERSION=0.19
57 +inherit perl-module
58 +
59 +DESCRIPTION="Mason View Class"
60 +
61 +SLOT="0"
62 +KEYWORDS="~amd64 ~x86"
63 +
64 +IUSE=""
65 +PATCHES=(
66 + "${FILESDIR}/${MODULE_VERSION}/rt-102381.patch"
67 +)
68 +RDEPEND="
69 + >=dev-perl/Catalyst-Runtime-5.500.0
70 + virtual/perl-File-Spec
71 + dev-perl/HTML-Mason
72 + dev-perl/MRO-Compat
73 + virtual/perl-Scalar-List-Utils
74 + virtual/perl-parent
75 +"
76 +DEPEND="${RDEPEND}
77 + >=virtual/perl-ExtUtils-MakeMaker-6.360.0
78 +"
79
80 diff --git a/dev-perl/Catalyst-View-Mason/files/0.19/rt-102381.patch b/dev-perl/Catalyst-View-Mason/files/0.19/rt-102381.patch
81 new file mode 100644
82 index 0000000..56287f8
83 --- /dev/null
84 +++ b/dev-perl/Catalyst-View-Mason/files/0.19/rt-102381.patch
85 @@ -0,0 +1,35 @@
86 +--- t/debug.t 2014-12-29 20:50:47.000000000 +0000
87 ++++ t/debug.t 2015-03-29 16:47:27.450513977 +0000
88 +@@ -4,8 +4,8 @@
89 + use warnings;
90 + use Test::More;
91 +
92 +-eval "use IO::Capture::Stderr";
93 +-plan skip_all => "IO::Capture::Stderr required for debug testing" if $@;
94 ++eval "use Capture::Tiny";
95 ++plan skip_all => "Capture::Tiny required for debug testing" if $@;
96 +
97 + plan tests => 3;
98 +
99 +@@ -14,15 +14,15 @@
100 +
101 + $ENV{CATALYST_DEBUG} = 1;
102 +
103 +-my $capture = IO::Capture::Stderr->new;
104 +-$capture->start;
105 ++my $response;
106 ++my $capture = Capture::Tiny::capture_stderr(sub{
107 +
108 +-use_ok('Catalyst::Test', 'TestApp');
109 ++ use_ok('Catalyst::Test', 'TestApp');
110 +
111 +-my $response = request('/test');
112 ++ $response = request('/test');
113 +
114 +-$capture->stop;
115 ++});
116 +
117 + ok($response->is_success, 'request ok');
118 +
119 +-like(join('', $capture->read), qr{\[debug\] Rendering component "/test"}, 'debug message ok');
120 ++like($capture, qr{\[debug\] Rendering component "/test"}, 'debug message ok');