summaryrefslogtreecommitdiff
blob: 48b88d3924e8b2c90e1208bb88c434f10e99a33e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DIST_AUTHOR=SHERWIN
DIST_VERSION=0.09
inherit perl-module

DESCRIPTION="Check password strength and generate password using passwdqc"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
	virtual/perl-Carp
	dev-perl/List-MoreUtils
	dev-perl/Moose
	dev-perl/namespace-autoclean
"
BDEPEND="${RDEPEND}
	>=virtual/perl-ExtUtils-MakeMaker-6.300.0
	dev-perl/Devel-CheckOS
	test? (
		virtual/perl-Test-Simple
	)
"
PERL_RM_FILES=(
	t/pod.t
)
src_prepare() {
	ebegin "Stripping Devel-CheckOS from inc/"
	rm -rf "${S}/inc/Devel/CheckOS.pm" \
			"${S}/inc/Devel/AssertOS.pm" \
			"${S}/inc/Devel/AssertOS" ||
			die "Can't remove bundled Devel-CheckOS bits"
	sed -i -e '/^inc\/Devel\/\(Check\|Assert\)OS/d' MANIFEST ||
		die "Can't remove Devel-CheckOS bits from MANIFEST"
	eend
	perl-module_src_prepare
}
src_compile() {
	mymake=(
		"OPTIMIZE=${CFLAGS}"
	)
	perl-module_src_compile
}