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/Gtk2-Ex-PodViewer/
Date: Tue, 24 Oct 2017 02:43:17
Message-Id: 1508809725.0e2f2fef867a6772f8004bf8db11ff24c8045ebe.kentnl@gentoo
1 commit: 0e2f2fef867a6772f8004bf8db11ff24c8045ebe
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 24 01:35:18 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 24 01:48:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e2f2fef
7
8 dev-perl/Gtk2-Ex-PodViewer: Add tests
9
10 - EAPI6
11 - Add basic compile tests
12
13 Package-Manager: Portage-2.3.8, Repoman-2.3.3
14
15 .../Gtk2-Ex-PodViewer-0.180.0-r2.ebuild | 44 ++++++++++++++++++++++
16 1 file changed, 44 insertions(+)
17
18 diff --git a/dev-perl/Gtk2-Ex-PodViewer/Gtk2-Ex-PodViewer-0.180.0-r2.ebuild b/dev-perl/Gtk2-Ex-PodViewer/Gtk2-Ex-PodViewer-0.180.0-r2.ebuild
19 new file mode 100644
20 index 00000000000..7bc16b5c07e
21 --- /dev/null
22 +++ b/dev-perl/Gtk2-Ex-PodViewer/Gtk2-Ex-PodViewer-0.180.0-r2.ebuild
23 @@ -0,0 +1,44 @@
24 +# Copyright 1999-2017 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +DIST_AUTHOR=GBROWN
29 +DIST_VERSION=0.18
30 +inherit perl-module
31 +
32 +DESCRIPTION="a Gtk2 widget for displaying Plain old Documentation (POD)"
33 +
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~x86"
36 +IUSE=""
37 +
38 +RDEPEND="x11-libs/gtk+:2
39 + dev-perl/Gtk2
40 + dev-perl/IO-stringy
41 + virtual/perl-Pod-Parser
42 + virtual/perl-Pod-Simple
43 + dev-perl/Gtk2-Ex-Simple-List
44 + dev-perl/Locale-gettext"
45 +DEPEND="${RDEPEND}"
46 +
47 +src_test() {
48 + local MODULES=(
49 + "Gtk2::Ex::PodViewer ${DIST_VERSION}"
50 + "Gtk2::Ex::PodViewer::Parser"
51 + )
52 + local failed=()
53 + for dep in "${MODULES[@]}"; do
54 + ebegin "Compile testing ${dep}"
55 + perl -Mblib="${S}" -M"${dep} ()" -e1
56 + eend $? || failed+=( "$dep" )
57 + done
58 + if [[ ${failed[@]} ]]; then
59 + echo
60 + eerror "One or more modules failed compile:";
61 + for dep in "${failed[@]}"; do
62 + eerror " ${dep}"
63 + done
64 + die "Failing due to module compilation errors";
65 + fi
66 + perl-module_src_test
67 +}