1 |
commit: 9bb7ea66fa59fdfba20638d5c160d0f749a66818 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 16 01:16:24 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 16 01:16:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bb7ea66 |
7 |
|
8 |
dev-perl/CGI-Builder: Fix tests |
9 |
|
10 |
- EAPI6 |
11 |
- Ensure tests run |
12 |
- Fix tests on newer CGI.pm |
13 |
- Add USE=examples |
14 |
- Add missing deps |
15 |
|
16 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
17 |
|
18 |
dev-perl/CGI-Builder/CGI-Builder-1.360.0-r2.ebuild | 49 ++++++++++++++++++++++ |
19 |
.../files/CGI-Builder-1.360.0-test-cgipm.patch | 26 ++++++++++++ |
20 |
2 files changed, 75 insertions(+) |
21 |
|
22 |
diff --git a/dev-perl/CGI-Builder/CGI-Builder-1.360.0-r2.ebuild b/dev-perl/CGI-Builder/CGI-Builder-1.360.0-r2.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..a5c86b1d0bd |
25 |
--- /dev/null |
26 |
+++ b/dev-perl/CGI-Builder/CGI-Builder-1.360.0-r2.ebuild |
27 |
@@ -0,0 +1,49 @@ |
28 |
+# Copyright 1999-2017 Gentoo Foundation |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=6 |
32 |
+ |
33 |
+DIST_AUTHOR=DOMIZIO |
34 |
+DIST_VERSION=1.36 |
35 |
+DIST_EXAMPLES=( "CBF_examples/*" ) |
36 |
+inherit perl-module |
37 |
+ |
38 |
+DESCRIPTION="Framework to build simple or complex web-apps" |
39 |
+ |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="" |
43 |
+ |
44 |
+DEPEND=">=dev-perl/OOTools-2.21 |
45 |
+ >=dev-perl/IO-Util-1.5 |
46 |
+ dev-perl/CGI |
47 |
+" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+ |
50 |
+PATCHES=( "${FILESDIR}/${P}-test-cgipm.patch" ) |
51 |
+src_test() { |
52 |
+ local MODULES=( |
53 |
+ # https://rt.cpan.org/Ticket/Display.html?id=123292 |
54 |
+ # "Bundle::CGI::Builder::Complete ${DIST_VERSION}" |
55 |
+ "CGI::Builder ${DIST_VERSION}" |
56 |
+ "CGI::Builder::Conf" |
57 |
+ "CGI::Builder::Const" |
58 |
+ "CGI::Builder::Test" |
59 |
+ ) |
60 |
+ local failed=() |
61 |
+ for dep in "${MODULES[@]}"; do |
62 |
+ ebegin "Compile testing ${dep}" |
63 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
64 |
+ eend $? || failed+=( "$dep" ) |
65 |
+ done |
66 |
+ if [[ ${failed[@]} ]]; then |
67 |
+ echo |
68 |
+ eerror "One or more modules failed compile:"; |
69 |
+ for dep in "${failed[@]}"; do |
70 |
+ eerror " ${dep}" |
71 |
+ done |
72 |
+ die "Failing due to module compilation errors"; |
73 |
+ fi |
74 |
+ perl_rm_files t/test_pod.t t/test_pod_coverage.t |
75 |
+ perl-module_src_test |
76 |
+} |
77 |
|
78 |
diff --git a/dev-perl/CGI-Builder/files/CGI-Builder-1.360.0-test-cgipm.patch b/dev-perl/CGI-Builder/files/CGI-Builder-1.360.0-test-cgipm.patch |
79 |
new file mode 100644 |
80 |
index 00000000000..c4fb30fbd9b |
81 |
--- /dev/null |
82 |
+++ b/dev-perl/CGI-Builder/files/CGI-Builder-1.360.0-test-cgipm.patch |
83 |
@@ -0,0 +1,26 @@ |
84 |
+From 6a8ddfede178b1635f729ed215815c4eff5b8374 Mon Sep 17 00:00:00 2001 |
85 |
+From: Kent Fredric <kentnl@g.o> |
86 |
+Date: Mon, 16 Oct 2017 13:51:39 +1300 |
87 |
+Subject: Fix tests failing with CGI >= 3.16 |
88 |
+ |
89 |
+Bug: https://rt.cpan.org/Ticket/Display.html?id=123293 |
90 |
+--- |
91 |
+ t/02_features.t | 2 +- |
92 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
93 |
+ |
94 |
+diff --git a/t/02_features.t b/t/02_features.t |
95 |
+index 96f46dd..9f43b61 100644 |
96 |
+--- a/t/02_features.t |
97 |
++++ b/t/02_features.t |
98 |
+@@ -46,7 +46,7 @@ |
99 |
+ |
100 |
+ ; my $ap9 = Test8->new( cgi => CGI->new({ p => 'redirect' }) ) |
101 |
+ ; my $o9 = $ap9->capture('process') |
102 |
+-; ok( ($$o9 =~ /302 Moved/) |
103 |
++; ok( ($$o9 =~ /302 Found/) |
104 |
+ && ($$o9 !~ /never printed/) |
105 |
+ && ($$o9 !~ /fixup/) |
106 |
+ && ($$o9 !~ /madness/) |
107 |
+-- |
108 |
+2.14.2 |
109 |
+ |