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/Crypt-Cracklib/files/, dev-perl/Crypt-Cracklib/
Date: Tue, 30 Jun 2020 14:00:37
Message-Id: 1593525597.1d79ac57f4449ed34d97ddea06fedcfd479f5a5c.kentnl@gentoo
1 commit: 1d79ac57f4449ed34d97ddea06fedcfd479f5a5c
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 30 13:59:30 2020 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 30 13:59:57 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d79ac57
7
8 dev-perl/Crypt-Cracklib: -r bump for EAPI7 and fixes
9
10 - EAPI7
11 - Expand dependencies better
12 - Migrade "sed" hackery to a patch
13 - Rework existing patch into git format
14 - Unconditionally patch out bad tests
15 - Ensure CFLAGS passed through to make
16
17 Package-Manager: Portage-2.3.100, Repoman-2.3.22
18 Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org>
19
20 .../Crypt-Cracklib-1.700.0-r3.ebuild | 39 ++++++++++++++++++++++
21 .../files/Crypt-Cracklib-1.7-CFLAGS-1.patch | 25 ++++++++++++++
22 .../files/Crypt-Cracklib-1.7-no-dot-inc.patch | 21 ++++++++++++
23 3 files changed, 85 insertions(+)
24
25 diff --git a/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r3.ebuild b/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r3.ebuild
26 new file mode 100644
27 index 00000000000..9d86b5c2aae
28 --- /dev/null
29 +++ b/dev-perl/Crypt-Cracklib/Crypt-Cracklib-1.700.0-r3.ebuild
30 @@ -0,0 +1,39 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DIST_AUTHOR=DANIEL
37 +DIST_VERSION=1.7
38 +inherit perl-module
39 +
40 +DESCRIPTION="Perl interface to Alec Muffett's Cracklib"
41 +
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="test"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="sys-libs/cracklib"
48 +DEPEND="${RDEPEND}"
49 +BDEPEND="${RDEPEND}
50 + >=virtual/perl-ExtUtils-MakeMaker-6.420.0
51 + test? (
52 + >=virtual/perl-Test-Simple-0.470.0
53 + )
54 +"
55 +
56 +PATCHES=(
57 + "${FILESDIR}/${PN}-1.7-CFLAGS-1.patch"
58 + "${FILESDIR}/${PN}-1.7-no-dot-inc.patch"
59 +)
60 +PERL_RM_FILES=(
61 + t/pod-coverage.t
62 + t/pod.t
63 +)
64 +src_compile() {
65 + mymake=(
66 + "OPTIMIZE=${CFLAGS}"
67 + )
68 + perl-module_src_compile
69 +}
70
71 diff --git a/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-CFLAGS-1.patch b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-CFLAGS-1.patch
72 new file mode 100644
73 index 00000000000..fbc5517efec
74 --- /dev/null
75 +++ b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-CFLAGS-1.patch
76 @@ -0,0 +1,25 @@
77 +From 160ea833ef64916906c9334f7da12db3208293eb Mon Sep 17 00:00:00 2001
78 +From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@g.o>
79 +Date: Wed, 16 Oct 2019 17:00:25 +1300
80 +Subject: Avoid clobbering CFLAGS in Makefile.pl
81 +
82 +Bug: https://bugs.gentoo.org/658000
83 +---
84 + Makefile.PL | 1 -
85 + 1 file changed, 1 deletion(-)
86 +
87 +diff --git a/Makefile.PL b/Makefile.PL
88 +index 34f1008..6ede3a6 100644
89 +--- a/Makefile.PL
90 ++++ b/Makefile.PL
91 +@@ -15,7 +15,6 @@ test_requires 'Test::More' => '0.47';
92 + requires_external_cc();
93 +
94 + cc_lib_links('crack');
95 +-cc_optimize_flags('-g -Wall -Werror');
96 +
97 + auto_install();
98 + WriteAll();
99 +--
100 +2.27.0
101 +
102
103 diff --git a/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-no-dot-inc.patch b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-no-dot-inc.patch
104 new file mode 100644
105 index 00000000000..0af640bcf48
106 --- /dev/null
107 +++ b/dev-perl/Crypt-Cracklib/files/Crypt-Cracklib-1.7-no-dot-inc.patch
108 @@ -0,0 +1,21 @@
109 +From 8dd70878d095fa0b35b81ee6e21c2b1fc010b41b Mon Sep 17 00:00:00 2001
110 +From: Kent Fredric <kentnl@g.o>
111 +Date: Wed, 1 Jul 2020 01:23:46 +1200
112 +Subject: Include '.' in @INC for perl 5.26+
113 +
114 +---
115 + Makefile.PL | 1 +
116 + 1 file changed, 1 insertion(+)
117 +
118 +diff --git a/Makefile.PL b/Makefile.PL
119 +index 6ede3a6..d793c3b 100644
120 +--- a/Makefile.PL
121 ++++ b/Makefile.PL
122 +@@ -1,3 +1,4 @@
123 ++use lib '.';
124 + use inc::Module::Install;
125 +
126 + name('Crypt-Cracklib');
127 +--
128 +2.27.0
129 +