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/Apache-DBI/
Date: Sat, 14 Oct 2017 04:31:41
Message-Id: 1507955484.894e3ade2c53cf3f4452f5003ceaf6f4dc6baa4d.kentnl@gentoo
1 commit: 894e3ade2c53cf3f4452f5003ceaf6f4dc6baa4d
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 03:50:13 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 04:31:24 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=894e3ade
7
8 dev-perl/Apache-DBI: Enhance testing
9
10 - EAPI6
11 - Add USE="examples"
12 - Fix DESCRIPTION
13 - Enhance testing substantially
14
15 Package-Manager: Portage-2.3.8, Repoman-2.3.3
16
17 dev-perl/Apache-DBI/Apache-DBI-1.120.0-r2.ebuild | 55 ++++++++++++++++++++++++
18 1 file changed, 55 insertions(+)
19
20 diff --git a/dev-perl/Apache-DBI/Apache-DBI-1.120.0-r2.ebuild b/dev-perl/Apache-DBI/Apache-DBI-1.120.0-r2.ebuild
21 new file mode 100644
22 index 00000000000..1540bd97087
23 --- /dev/null
24 +++ b/dev-perl/Apache-DBI/Apache-DBI-1.120.0-r2.ebuild
25 @@ -0,0 +1,55 @@
26 +# Copyright 1999-2017 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=6
30 +
31 +DIST_AUTHOR=PHRED
32 +DIST_VERSION=1.12
33 +DIST_EXAMPLES=( "eg/*" )
34 +inherit perl-module
35 +
36 +DESCRIPTION="Authentication and Authorization via Perl's DBI"
37 +
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
40 +IUSE="test"
41 +
42 +RDEPEND=">=dev-perl/Digest-SHA1-2.10.0
43 + >=virtual/perl-Digest-MD5-2.2
44 + >=dev-perl/DBI-1.30"
45 +DEPEND="${RDEPEND}
46 + virtual/perl-ExtUtils-MakeMaker
47 + test? ( virtual/perl-Test-Simple )
48 +"
49 +src_test() {
50 + local MODULES=(
51 + "Apache::DBI ${DIST_VERSION}"
52 + # Defaults to Apache1 Logic, but supports
53 + # Apache2 but must run under Apache2
54 + # "Apache::AuthDBI ${DIST_VERSION}"
55 + )
56 + has_version "dev-perl/DBD-mysql" && MODULES+=( "DBD::mysql" );
57 + local failed=()
58 + for dep in "${MODULES[@]}"; do
59 + ebegin "Compile testing ${dep}"
60 + perl -Mblib="${S}" -M"${dep} ()" -e1
61 + eend $? || failed+=( "$dep" )
62 + done
63 + if [[ ${failed[@]} ]]; then
64 + echo
65 + eerror "One or more modules failed compile:";
66 + for dep in "${failed[@]}"; do
67 + eerror " ${dep}"
68 + done
69 + die "Failing due to module compilation errors";
70 + fi
71 + local i;
72 + elog "Install the following dependencies for comprehensive tests:"
73 + i="$(if has_version "dev-perl/DBD-mysql"; then echo '[I]'; else echo '[ ]'; fi)"
74 + elog " $i dev-perl/DBD-mysql"
75 + elog " - Test apache authentication using mysql as a backing store"
76 + elog " (Also requires a running mysql instance)"
77 + elog "For testing details, see:"
78 + elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/Apache-DBI"
79 + perl-module_src_test
80 +}