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/Getopt-GUI-Long/
Date: Tue, 24 Oct 2017 02:43:16
Message-Id: 1508809721.d8a6ff012bf0705c92464cba4c6e28bce4d8be69.kentnl@gentoo
1 commit: d8a6ff012bf0705c92464cba4c6e28bce4d8be69
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 24 00:06:09 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 24 01:48:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8a6ff01
7
8 dev-perl/Getopt-GUI-Long: Enable tests
9
10 - EAPI6
11 - Add basic compile tests
12 - Add USE=examples
13
14 Package-Manager: Portage-2.3.8, Repoman-2.3.3
15
16 .../Getopt-GUI-Long-0.930.0-r2.ebuild | 39 ++++++++++++++++++++++
17 1 file changed, 39 insertions(+)
18
19 diff --git a/dev-perl/Getopt-GUI-Long/Getopt-GUI-Long-0.930.0-r2.ebuild b/dev-perl/Getopt-GUI-Long/Getopt-GUI-Long-0.930.0-r2.ebuild
20 new file mode 100644
21 index 00000000000..d38b4859425
22 --- /dev/null
23 +++ b/dev-perl/Getopt-GUI-Long/Getopt-GUI-Long-0.930.0-r2.ebuild
24 @@ -0,0 +1,39 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +DIST_AUTHOR=HARDAKER
31 +DIST_VERSION=0.93
32 +DIST_EXAMPLES=("examples/*")
33 +inherit perl-module
34 +
35 +DESCRIPTION="Auto-GUI extending Getopt::Long"
36 +
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE=""
40 +
41 +RDEPEND="virtual/perl-File-Temp
42 + virtual/perl-Getopt-Long"
43 +
44 +src_test() {
45 + local MODULES=(
46 + "Getopt::GUI::Long ${DIST_VERSION}"
47 + )
48 + local failed=()
49 + for dep in "${MODULES[@]}"; do
50 + ebegin "Compile testing ${dep}"
51 + perl -Mblib="${S}" -M"${dep} ()" -e1
52 + eend $? || failed+=( "$dep" )
53 + done
54 + if [[ ${failed[@]} ]]; then
55 + echo
56 + eerror "One or more modules failed compile:";
57 + for dep in "${failed[@]}"; do
58 + eerror " ${dep}"
59 + done
60 + die "Failing due to module compilation errors";
61 + fi
62 + perl-module_src_test
63 +}