1 |
commit: d095e8c7b2a628d2e8a62822799e39c968878f3f |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 14 21:45:38 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 14 21:46:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d095e8c7 |
7 |
|
8 |
dev-perl/Authen-PAM: Sort out testing |
9 |
|
10 |
- EAPI6 |
11 |
- Do basic compile time testing |
12 |
- Add USE="examples" |
13 |
- Document how to run some kind of test |
14 |
|
15 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
16 |
|
17 |
dev-perl/Authen-PAM/Authen-PAM-0.160.0-r2.ebuild | 43 ++++++++++++++++++++++++ |
18 |
1 file changed, 43 insertions(+) |
19 |
|
20 |
diff --git a/dev-perl/Authen-PAM/Authen-PAM-0.160.0-r2.ebuild b/dev-perl/Authen-PAM/Authen-PAM-0.160.0-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..eb8ead5dec6 |
23 |
--- /dev/null |
24 |
+++ b/dev-perl/Authen-PAM/Authen-PAM-0.160.0-r2.ebuild |
25 |
@@ -0,0 +1,43 @@ |
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=NIKIP |
32 |
+DIST_VERSION=0.16 |
33 |
+DIST_EXAMPLES=("test.pl") |
34 |
+inherit perl-module |
35 |
+ |
36 |
+DESCRIPTION="Interface to PAM library" |
37 |
+ |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
40 |
+IUSE="examples" |
41 |
+ |
42 |
+RDEPEND="virtual/pam" |
43 |
+DEPEND="${RDEPEND}" |
44 |
+PATCHES=("${FILESDIR}/no-dot-inc.patch") |
45 |
+export OPTIMIZE="$CFLAGS" |
46 |
+ |
47 |
+src_test() { |
48 |
+ local MODULES=( |
49 |
+ "Authen::PAM ${DIST_VERSION}" |
50 |
+ ) |
51 |
+ local failed=() |
52 |
+ for dep in "${MODULES[@]}"; do |
53 |
+ ebegin "Compile testing ${dep}" |
54 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
55 |
+ eend $? || failed+=( "$dep" ) |
56 |
+ done |
57 |
+ if [[ ${failed[@]} ]]; then |
58 |
+ echo |
59 |
+ eerror "One or more modules failed compile:"; |
60 |
+ for dep in "${failed[@]}"; do |
61 |
+ eerror " ${dep}" |
62 |
+ done |
63 |
+ die "Failing due to module compilation errors"; |
64 |
+ fi |
65 |
+ ewarn "To comprehensively test this module, interactive testing is necessary" |
66 |
+ ewarn "For details, see:" |
67 |
+ ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/Authen-PAM" |
68 |
+} |