media-tv/xmltv: Half the work to make this compatible to Perl 5.26
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 23 Sep 2017 10:45:45 +0000 (12:45 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 23 Sep 2017 10:46:10 +0000 (12:46 +0200)
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 [new file with mode: 0644]
media-tv/xmltv/xmltv-0.5.68.ebuild

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 (file)
index 0000000..4a23d78
--- /dev/null
@@ -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.
+ #
index f69e0b7e73e94862a8c7a61ce490693c1c0c04b9..73ffc2be3e9f5f18b033ef9803a63b09e82ff869 100644 (file)
@@ -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
 }