blob: 9ef5aecdf16f23472b3cc18f21040d88737b4e15 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=ALEXMV
DIST_VERSION=0.52
inherit perl-module
DESCRIPTION="Perl module interface to interacting with GnuPG"
SLOT="0"
KEYWORDS="amd64 ~hppa ~ppc x86"
IUSE="test"
RDEPEND="
>=app-crypt/gnupg-1.2.1-r1
virtual/perl-autodie
>=virtual/perl-Math-BigInt-1.780.0
>=dev-perl/Moo-0.91.11
>=dev-perl/MooX-HandlesVia-0.1.4
>=dev-perl/MooX-late-0.14.0
"
DEPEND="${RDEPEND}
>=virtual/perl-ExtUtils-MakeMaker-6.360.0
"
PATCHES=(
"${FILESDIR}/${P}"-0001-fix-spelling-error-settting-should-be-setting.patch
"${FILESDIR}/${P}"-0002-Generalize-the-test-suite.patch
"${FILESDIR}/${P}"-0003-subkey-validity-of-an-key-when-we-have-established-n.patch
"${FILESDIR}/${P}"-0004-ensure-that-test-covers-all-signatures.patch
"${FILESDIR}/${P}"-0005-add-gpg_is_modern-to-test-suite.patch
"${FILESDIR}/${P}"-0006-Modern-GnuPG-2.1-reports-more-detail-about-secret-ke.patch
"${FILESDIR}/${P}"-0007-test-suite-match-plaintext-output-across-versions-of.patch
"${FILESDIR}/${P}"-0008-fix-test_default_key_passphrase-when-passphrase-come.patch
"${FILESDIR}/${P}"-0009-clean-up-trailing-whitespace.patch
"${FILESDIR}/${P}"-0010-fix-capitalization-of-GnuPG.patch
"${FILESDIR}/${P}"-0011-ommand_args-should-be-command_args.patch
"${FILESDIR}/${P}"-0012-use-fingerprints-as-inputs-during-tests-to-demonstra.patch
"${FILESDIR}/${P}"-0013-move-key-files-to-generic-names.patch
"${FILESDIR}/${P}"-0014-fix-spelling-s-convience-convenience.patch
"${FILESDIR}/${P}"-0015-added-new-secret-key-with-different-passphrase.patch
"${FILESDIR}/${P}"-0016-Test-use-of-gpg-without-explicit-passphrase-agent-pi.patch
"${FILESDIR}/${P}"-0017-Kill-any-GnuPG-agent-before-and-after-the-test-suite.patch
"${FILESDIR}/${P}"-0018-Use-a-short-temporary-homedir-during-the-test-suite.patch
"${FILESDIR}/${P}"-0019-Make-things-work-with-gpg1-assuming-plain-gpg-is-mod.patch
"${FILESDIR}/${P}"-0030-gpg-2.2.6.patch
"${FILESDIR}/${P}"-0031-gpg-2.2.8.patch
)
src_prepare() {
sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL ||
die "Can't patch Makefile.PL for 5.26 dot-in-inc"
perl-module_src_prepare
}
src_test() {
# Nearly all tests succeed with this patchset and GnuPG 2.1 when running outside the
# emerge sandbox. However, the agent architecture is not really sandbox-friendly, so...
#
# Test Summary Report
# -------------------
# t/decrypt.t (Wstat: 0 Tests: 6 Failed: 2)
# Failed tests: 5-6
# Failed 1/22 test programs. 2/56 subtests failed.
perl_rm_files t/decrypt.t
# Needs to run a setup test that spawns a persistent daemon
DIST_TEST="do"
perl-module_src_test
}
|