1 |
commit: 356eebba5d87cfaf036e9632c1b014e76d81f61a |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 2 23:49:14 2020 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 2 23:57:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=356eebba |
7 |
|
8 |
dev-perl/Authen-PAM: -r bump for EAPI7 + CFLAGS love |
9 |
|
10 |
- EAPI7 |
11 |
- Ensure CFLAGS passed to make/compile (existing logic did nothing) |
12 |
- Simplify + Indent wiki link for readability |
13 |
|
14 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
15 |
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org> |
16 |
|
17 |
dev-perl/Authen-PAM/Authen-PAM-0.160.0-r3.ebuild | 51 ++++++++++++++++++++++++ |
18 |
1 file changed, 51 insertions(+) |
19 |
|
20 |
diff --git a/dev-perl/Authen-PAM/Authen-PAM-0.160.0-r3.ebuild b/dev-perl/Authen-PAM/Authen-PAM-0.160.0-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..c1487d41ac9 |
23 |
--- /dev/null |
24 |
+++ b/dev-perl/Authen-PAM/Authen-PAM-0.160.0-r3.ebuild |
25 |
@@ -0,0 +1,51 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
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 ~sparc ~x86" |
40 |
+IUSE="examples" |
41 |
+ |
42 |
+RDEPEND="sys-libs/pam" |
43 |
+DEPEND="${RDEPEND}" |
44 |
+BDEPEND="${RDEPEND}" |
45 |
+ |
46 |
+PATCHES=("${FILESDIR}/no-dot-inc.patch") |
47 |
+ |
48 |
+src_compile() { |
49 |
+ mymake=( |
50 |
+ "OPTIMIZE=${CFLAGS}" |
51 |
+ ) |
52 |
+ perl-module_src_compile |
53 |
+} |
54 |
+ |
55 |
+src_test() { |
56 |
+ local MODULES=( |
57 |
+ "Authen::PAM ${DIST_VERSION}" |
58 |
+ ) |
59 |
+ local failed=() |
60 |
+ for dep in "${MODULES[@]}"; do |
61 |
+ ebegin "Compile testing ${dep}" |
62 |
+ perl -Mblib="${S}" -M"${dep} ()" -e1 |
63 |
+ eend $? || failed+=( "$dep" ) |
64 |
+ done |
65 |
+ if [[ ${failed[@]} ]]; then |
66 |
+ echo |
67 |
+ eerror "One or more modules failed compile:"; |
68 |
+ for dep in "${failed[@]}"; do |
69 |
+ eerror " ${dep}" |
70 |
+ done |
71 |
+ die "Failing due to module compilation errors"; |
72 |
+ fi |
73 |
+ ewarn "To comprehensively test this module, interactive testing is necessary" |
74 |
+ ewarn "For details, see:" |
75 |
+ ewarn " https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}" |
76 |
+} |