1 |
commit: f484d34b8dd3a9699168afc94c66ef5290412efb |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 24 00:58:54 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 24 01:48:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f484d34b |
7 |
|
8 |
dev-perl/GnuPG-Interface: Enable tests |
9 |
|
10 |
By fencing off the one known-to-fail test |
11 |
|
12 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
13 |
|
14 |
.../GnuPG-Interface-0.520.0-r3.ebuild | 69 ++++++++++++++++++++++ |
15 |
1 file changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/dev-perl/GnuPG-Interface/GnuPG-Interface-0.520.0-r3.ebuild b/dev-perl/GnuPG-Interface/GnuPG-Interface-0.520.0-r3.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..113f6288c3f |
20 |
--- /dev/null |
21 |
+++ b/dev-perl/GnuPG-Interface/GnuPG-Interface-0.520.0-r3.ebuild |
22 |
@@ -0,0 +1,69 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+DIST_AUTHOR=ALEXMV |
29 |
+DIST_VERSION=0.52 |
30 |
+inherit perl-module |
31 |
+ |
32 |
+DESCRIPTION="Perl module interface to interacting with GnuPG" |
33 |
+ |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
36 |
+IUSE="test" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ >=app-crypt/gnupg-1.2.1-r1 |
40 |
+ virtual/perl-autodie |
41 |
+ >=virtual/perl-Math-BigInt-1.780.0 |
42 |
+ >=dev-perl/Moo-0.91.11 |
43 |
+ >=dev-perl/MooX-HandlesVia-0.1.4 |
44 |
+ >=dev-perl/MooX-late-0.14.0 |
45 |
+" |
46 |
+DEPEND="${RDEPEND} |
47 |
+ >=virtual/perl-ExtUtils-MakeMaker-6.360.0 |
48 |
+" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}/${P}"-0001-fix-spelling-error-settting-should-be-setting.patch |
52 |
+ "${FILESDIR}/${P}"-0002-Generalize-the-test-suite.patch |
53 |
+ "${FILESDIR}/${P}"-0003-subkey-validity-of-an-key-when-we-have-established-n.patch |
54 |
+ "${FILESDIR}/${P}"-0004-ensure-that-test-covers-all-signatures.patch |
55 |
+ "${FILESDIR}/${P}"-0005-add-gpg_is_modern-to-test-suite.patch |
56 |
+ "${FILESDIR}/${P}"-0006-Modern-GnuPG-2.1-reports-more-detail-about-secret-ke.patch |
57 |
+ "${FILESDIR}/${P}"-0007-test-suite-match-plaintext-output-across-versions-of.patch |
58 |
+ "${FILESDIR}/${P}"-0008-fix-test_default_key_passphrase-when-passphrase-come.patch |
59 |
+ "${FILESDIR}/${P}"-0009-clean-up-trailing-whitespace.patch |
60 |
+ "${FILESDIR}/${P}"-0010-fix-capitalization-of-GnuPG.patch |
61 |
+ "${FILESDIR}/${P}"-0011-ommand_args-should-be-command_args.patch |
62 |
+ "${FILESDIR}/${P}"-0012-use-fingerprints-as-inputs-during-tests-to-demonstra.patch |
63 |
+ "${FILESDIR}/${P}"-0013-move-key-files-to-generic-names.patch |
64 |
+ "${FILESDIR}/${P}"-0014-fix-spelling-s-convience-convenience.patch |
65 |
+ "${FILESDIR}/${P}"-0015-added-new-secret-key-with-different-passphrase.patch |
66 |
+ "${FILESDIR}/${P}"-0016-Test-use-of-gpg-without-explicit-passphrase-agent-pi.patch |
67 |
+ "${FILESDIR}/${P}"-0017-Kill-any-GnuPG-agent-before-and-after-the-test-suite.patch |
68 |
+ "${FILESDIR}/${P}"-0018-Use-a-short-temporary-homedir-during-the-test-suite.patch |
69 |
+ "${FILESDIR}/${P}"-0019-Make-things-work-with-gpg1-assuming-plain-gpg-is-mod.patch |
70 |
+) |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL || |
74 |
+ die "Can't patch Makefile.PL for 5.26 dot-in-inc" |
75 |
+ perl-module_src_prepare |
76 |
+} |
77 |
+ |
78 |
+src_test() { |
79 |
+# Nearly all tests succeed with this patchset and GnuPG 2.1 when running outside the |
80 |
+# emerge sandbox. However, the agent architecture is not really sandbox-friendly, so... |
81 |
+# |
82 |
+# Test Summary Report |
83 |
+# ------------------- |
84 |
+# t/decrypt.t (Wstat: 0 Tests: 6 Failed: 2) |
85 |
+# Failed tests: 5-6 |
86 |
+# Failed 1/22 test programs. 2/56 subtests failed. |
87 |
+ perl_rm_files t/decrypt.t |
88 |
+# Needs to run a setup test that spawns a persistent daemon |
89 |
+ DIST_TEST="do" |
90 |
+ perl-module_src_test |
91 |
+} |