commit:     347ff1a15274fe00f1d05b2e072771e47c8a9f6a
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 23 10:45:45 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Sep 23 10:46:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=347ff1a1

media-tv/xmltv: Half the work to make this compatible to Perl 5.26

Now the configure phase works. Unfortunately the written Makefile still
calls Perl, requiring modules in .

Bug: https://bugs.gentoo.org/630474
Package-Manager: Portage-2.3.10, Repoman-2.3.3

 media-tv/xmltv/files/xmltv-0.5.68-perl526-1.patch | 13 +++++++++++++
 media-tv/xmltv/xmltv-0.5.68.ebuild                |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/media-tv/xmltv/files/xmltv-0.5.68-perl526-1.patch 
b/media-tv/xmltv/files/xmltv-0.5.68-perl526-1.patch
new file mode 100644
index 00000000000..4a23d783c25
--- /dev/null
+++ b/media-tv/xmltv/files/xmltv-0.5.68-perl526-1.patch
@@ -0,0 +1,13 @@
+diff -ruN xmltv-0.5.68.orig/Makefile.PL xmltv-0.5.68/Makefile.PL
+--- xmltv-0.5.68.orig/Makefile.PL      2016-06-02 07:05:01.000000000 +0200
++++ xmltv-0.5.68/Makefile.PL   2017-09-23 12:20:18.128841958 +0200
+@@ -6,6 +6,9 @@
+ use File::Basename ();
+ use File::Find;
+ 
++# Needed later for Perl 5.26
++use lib q[.];
++
+ # Don't use ':config pass_through' because that requires Getopt::Long
+ # 2.24 or later, and we don't have a clean way to require that.
+ #

diff --git a/media-tv/xmltv/xmltv-0.5.68.ebuild 
b/media-tv/xmltv/xmltv-0.5.68.ebuild
index f69e0b7e73e..73ffc2be3e9 100644
--- a/media-tv/xmltv/xmltv-0.5.68.ebuild
+++ b/media-tv/xmltv/xmltv-0.5.68.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -87,6 +87,8 @@ src_prepare() {
                -e "/^@docs/s:doc/COPYING ::" \
                Makefile.PL || die
 
+       epatch "${FILESDIR}/${P}-perl526-1.patch"
+
        epatch_user
 }
 

Reply via email to