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/Clipboard/files/, dev-perl/Clipboard/
Date: Wed, 18 Oct 2017 21:39:17
Message-Id: 1508362747.04291b6956a571e8e9191274dd20db4027f8d15d.kentnl@gentoo
1 commit: 04291b6956a571e8e9191274dd20db4027f8d15d
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 18 21:35:05 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 18 21:39:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04291b69
7
8 dev-perl/Clipboard: EAPI6 + Tests
9
10 - EAPI6
11 - Enable tests
12 - Fix virtualx needed for tests
13 - Fix tests broken by '.' in @INC
14 - Migrate makefile.PL fix to general '.' in @INC patch
15
16 Package-Manager: Portage-2.3.8, Repoman-2.3.3
17
18 dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild | 26 +++++++++++++
19 .../files/Clipboard-0.130.0-no-dot-inc.patch | 45 ++++++++++++++++++++++
20 2 files changed, 71 insertions(+)
21
22 diff --git a/dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild b/dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild
23 new file mode 100644
24 index 00000000000..1b02d004d0b
25 --- /dev/null
26 +++ b/dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild
27 @@ -0,0 +1,26 @@
28 +# Copyright 1999-2017 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +
33 +DIST_AUTHOR=KING
34 +DIST_VERSION=0.13
35 +inherit perl-module virtualx
36 +
37 +DESCRIPTION="Copy and paste with any OS"
38 +
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
41 +IUSE=""
42 +
43 +# See bug 521890.
44 +PATCHES=(
45 + "${FILESDIR}"/"${P}"-insecure-tempfile.patch
46 + "${FILESDIR}"/"${P}"-no-dot-inc.patch
47 +)
48 +
49 +RDEPEND="x11-misc/xclip"
50 +
51 +src_test() {
52 + virtx perl-module_src_test
53 +}
54
55 diff --git a/dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch b/dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch
56 new file mode 100644
57 index 00000000000..1e9c31be70e
58 --- /dev/null
59 +++ b/dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch
60 @@ -0,0 +1,45 @@
61 +From 389b272f8696b86f594726544a8280e43cd2ffc6 Mon Sep 17 00:00:00 2001
62 +From: Kent Fredric <kentnl@g.o>
63 +Date: Thu, 19 Oct 2017 10:21:36 +1300
64 +Subject: Fix Makefile.PL & Tests for '.' in @INC removal under Perl 5.26+
65 +
66 +Bug: https://bugs.gentoo.org/615138
67 +Bug: https://rt.cpan.org/Ticket/Display.html?id=121056
68 +---
69 + Makefile.PL | 1 +
70 + t/drivers.t | 2 ++
71 + t/mock.t | 2 ++
72 + 3 files changed, 5 insertions(+)
73 +
74 +diff --git a/Makefile.PL b/Makefile.PL
75 +index 08468ac..ab60784 100644
76 +--- a/Makefile.PL
77 ++++ b/Makefile.PL
78 +@@ -1,3 +1,4 @@
79 ++use lib '.';
80 + use inc::Module::Install;
81 + name('Clipboard');
82 + author('Ryan King <rking@××××××××.com>');
83 +diff --git a/t/drivers.t b/t/drivers.t
84 +index 1ae7014..de2478f 100644
85 +--- a/t/drivers.t
86 ++++ b/t/drivers.t
87 +@@ -1,3 +1,5 @@
88 ++use File::Spec::Functions qw(rel2abs);
89 ++use lib rel2abs('.');
90 + use Test::Clipboard;
91 + use strict; # XXX make Test::Clipboard do this
92 + my %map = qw(
93 +diff --git a/t/mock.t b/t/mock.t
94 +index fbd76f0..2a50ebb 100644
95 +--- a/t/mock.t
96 ++++ b/t/mock.t
97 +@@ -1,3 +1,5 @@
98 ++use File::Spec::Functions qw(rel2abs);
99 ++use lib rel2abs('.');
100 + use Test::Clipboard;
101 + use Test::MockClipboard;
102 + use strict; # XXX make Test::Clipboard do this
103 +--
104 +2.14.2
105 +