Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/WWW-Bugzilla/
Date: Wed, 21 Mar 2018 07:07:39
Message-Id: 1521616035.c98109e151052c53e5a097c1e2d8d3085f0075cc.kentnl@gentoo
1 commit: c98109e151052c53e5a097c1e2d8d3085f0075cc
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 21 07:02:12 2018 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 21 07:07:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c98109e1
7
8 dev-perl/WWW-Bugzilla: EAPI6 + tests
9
10 - EAPI6
11 - Fix DESCRIPTION
12 - Add very arbitrary minimal tests
13
14 Note:
15 - Builtin tests are well broken for a long time as they rely on
16 connecting to the landfill bugzilla server, and then, they only
17 support Bugzilla 3.4, which no longer runs on the landfill server.
18
19 - The code in question doesn't support working on Bugzilla >3.4
20
21 So the tests in place here only confirm it works as far as Perl can
22 compile it, but doesn't demonstrate the library is actually usable.
23
24 A package-mask and tree-removal request are next on the todo list.
25
26 Package-Manager: Portage-2.3.24, Repoman-2.3.6
27
28 .../WWW-Bugzilla/WWW-Bugzilla-1.500.0-r2.ebuild | 50 ++++++++++++++++++++++
29 1 file changed, 50 insertions(+)
30
31 diff --git a/dev-perl/WWW-Bugzilla/WWW-Bugzilla-1.500.0-r2.ebuild b/dev-perl/WWW-Bugzilla/WWW-Bugzilla-1.500.0-r2.ebuild
32 new file mode 100644
33 index 00000000000..b860738c147
34 --- /dev/null
35 +++ b/dev-perl/WWW-Bugzilla/WWW-Bugzilla-1.500.0-r2.ebuild
36 @@ -0,0 +1,50 @@
37 +# Copyright 1999-2018 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +DIST_AUTHOR=BMC
43 +DIST_VERSION=1.5
44 +inherit perl-module
45 +
46 +DESCRIPTION="Automate interaction with bugzilla"
47 +
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~ppc ~x86"
50 +IUSE=""
51 +
52 +RDEPEND=">=dev-perl/WWW-Mechanize-1.300.0
53 + >=dev-perl/Params-Validate-0.880.0
54 + >=dev-perl/Crypt-SSLeay-0.570.0
55 + >=dev-perl/Class-MethodMaker-1.80.0"
56 +DEPEND="${RDEPEND}"
57 +
58 +src_prepare() {
59 + perl-module_src_prepare
60 + mkdir "${S}"/lib || die "Can't mkdir lib"
61 + cp -r "${S}"/{WWW,lib} || die "Can't copy WWW"
62 +}
63 +
64 +# Network tests are broken
65 +DIST_TEST="skip"
66 +src_test() {
67 + local MODULES=(
68 + "WWW::Bugzilla ${DIST_VERSION}"
69 + "WWW::Bugzilla::Search 0.1"
70 + )
71 + local failed=()
72 + for dep in "${MODULES[@]}"; do
73 + ebegin "Compile testing ${dep}"
74 + perl -Mblib="${S}" -M"${dep} ()" -e1
75 + eend $? || failed+=( "$dep" )
76 + done
77 + if [[ ${failed[@]} ]]; then
78 + echo
79 + eerror "One or more modules failed compile:";
80 + for dep in "${failed[@]}"; do
81 + eerror " ${dep}"
82 + done
83 + die "Failing due to module compilation errors";
84 + fi
85 + perl-module_src_test
86 +}