1 |
commit: 914bdcba7885cb18e0195eb23faefd1544ee75ac |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 14 19:36:39 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 14 19:37:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914bdcba |
7 |
|
8 |
dev-perl/Apache2-AuthenNTLM: Fixup tests |
9 |
|
10 |
- EAPI6 |
11 |
- Fix Description |
12 |
- Compile test all modules |
13 |
- Run test suite |
14 |
|
15 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
16 |
|
17 |
.../Apache2-AuthenNTLM-0.20.0-r2.ebuild | 40 ++++++++++++++++++++++ |
18 |
1 file changed, 40 insertions(+) |
19 |
|
20 |
diff --git a/dev-perl/Apache2-AuthenNTLM/Apache2-AuthenNTLM-0.20.0-r2.ebuild b/dev-perl/Apache2-AuthenNTLM/Apache2-AuthenNTLM-0.20.0-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..3f376ef51fd |
23 |
--- /dev/null |
24 |
+++ b/dev-perl/Apache2-AuthenNTLM/Apache2-AuthenNTLM-0.20.0-r2.ebuild |
25 |
@@ -0,0 +1,40 @@ |
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=SPEEVES |
32 |
+DIST_VERSION=0.02 |
33 |
+inherit perl-module |
34 |
+ |
35 |
+DESCRIPTION="Perform Microsoft NTLM and Basic User Authentication" |
36 |
+ |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+RDEPEND="virtual/perl-MIME-Base64 |
42 |
+ >=www-apache/mod_perl-2" |
43 |
+DEPEND="${RDEPEND}" |
44 |
+ |
45 |
+src_test() { |
46 |
+ local MODULES=( |
47 |
+ "Apache2::AuthenNTLM ${DIST_VERSION}" |
48 |
+ "Authen::Smb 0.96" |
49 |
+ ) |
50 |
+ local failed=() |
51 |
+ for dep in "${MODULES[@]}"; do |
52 |
+ ebegin "Compile testing ${dep}" |
53 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
54 |
+ eend $? || failed+=( "$dep" ) |
55 |
+ done |
56 |
+ if [[ ${failed[@]} ]]; then |
57 |
+ echo |
58 |
+ eerror "One or more modules failed compile:"; |
59 |
+ for dep in "${failed[@]}"; do |
60 |
+ eerror " ${dep}" |
61 |
+ done |
62 |
+ die "Failing due to module compilation errors"; |
63 |
+ fi |
64 |
+ perl-module_src_test |
65 |
+} |