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/HTML-TagFilter/, dev-perl/HTML-TagFilter/files/
Date: Tue, 24 Oct 2017 05:54:41
Message-Id: 1508824468.3317ead1f4e9b39af873a84c44d64a3bda2fd280.kentnl@gentoo
1 commit: 3317ead1f4e9b39af873a84c44d64a3bda2fd280
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 24 05:49:35 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 24 05:54:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3317ead1
7
8 dev-perl/HTML-TagFilter: Fix tests without '.' in @INC bug #616992
9
10 Closes: https://bugs.gentoo.org/616992
11 Package-Manager: Portage-2.3.8, Repoman-2.3.3
12
13 .../HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild | 3 +-
14 .../files/HTML-TagFilter-1.30.0-no-dot-inc.patch | 46 ++++++++++++++++++++++
15 2 files changed, 48 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild b/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild
18 index dfef44f4652..731bc5bd494 100644
19 --- a/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild
20 +++ b/dev-perl/HTML-TagFilter/HTML-TagFilter-1.30.0.ebuild
21 @@ -1,4 +1,4 @@
22 -# Copyright 1999-2014 Gentoo Foundation
23 +# Copyright 1999-2017 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=5
27 @@ -18,5 +18,6 @@ RDEPEND="
28 dev-perl/URI
29 "
30 DEPEND="${RDEPEND}"
31 +PATCHES=( "${FILESDIR}/${P}-no-dot-inc.patch" )
32
33 SRC_TEST="do"
34
35 diff --git a/dev-perl/HTML-TagFilter/files/HTML-TagFilter-1.30.0-no-dot-inc.patch b/dev-perl/HTML-TagFilter/files/HTML-TagFilter-1.30.0-no-dot-inc.patch
36 new file mode 100644
37 index 00000000000..cc2f106182b
38 --- /dev/null
39 +++ b/dev-perl/HTML-TagFilter/files/HTML-TagFilter-1.30.0-no-dot-inc.patch
40 @@ -0,0 +1,46 @@
41 +From 6b22ff73fac56cd405f021f5c9fd1cce6f62cff0 Mon Sep 17 00:00:00 2001
42 +From: Kent Fredric <kentnl@g.o>
43 +Date: Tue, 24 Oct 2017 18:44:46 +1300
44 +Subject: Fix tests for '.' in @INC
45 +
46 +Bug: https://bugs.gentoo.org/616992
47 +Bug: https://rt.cpan.org/Ticket/Display.html?id=121449
48 +---
49 + MANIFEST | 2 +-
50 + t/04-subclass.t | 1 +
51 + {My => t/lib/My}/Filter.pm | 0
52 + 3 files changed, 2 insertions(+), 1 deletion(-)
53 + rename {My => t/lib/My}/Filter.pm (100%)
54 +
55 +diff --git a/MANIFEST b/MANIFEST
56 +index 2ef9813..ef6a569 100644
57 +--- a/MANIFEST
58 ++++ b/MANIFEST
59 +@@ -3,7 +3,7 @@ Makefile.PL
60 + MANIFEST
61 + README
62 + TagFilter.pm
63 +-My/Filter.pm
64 ++t/lib/My/Filter.pm
65 + t/01-filter.t
66 + t/02-xss.t
67 + t/03-extension.t
68 +diff --git a/t/04-subclass.t b/t/04-subclass.t
69 +index ef2eb61..f8b3598 100644
70 +--- a/t/04-subclass.t
71 ++++ b/t/04-subclass.t
72 +@@ -2,6 +2,7 @@ package main;
73 +
74 + use strict;
75 + use Test::More;
76 ++use lib 't/lib';
77 + use My::Filter;
78 +
79 + BEGIN {
80 +diff --git a/My/Filter.pm b/t/lib/My/Filter.pm
81 +similarity index 100%
82 +rename from My/Filter.pm
83 +rename to t/lib/My/Filter.pm
84 +--
85 +2.14.2
86 +