media-gfx/sam2p: Import upstream fix to build with perl 5.26, bug #617014
authorAlexis Ballier <aballier@gentoo.org>
Mon, 15 May 2017 15:23:05 +0000 (17:23 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 15 May 2017 15:23:05 +0000 (17:23 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch [new file with mode: 0644]
media-gfx/sam2p/sam2p-0.49.3.ebuild

diff --git a/media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch b/media-gfx/sam2p/files/sam2p-0.49.3-perl526.patch
new file mode 100644 (file)
index 0000000..cb24dbd
--- /dev/null
@@ -0,0 +1,23 @@
+commit 79a7de171f461a1c79089fa770f0da186e87c723
+Author: Peter Szabo <pts@fazekas.hu>
+Date:   Sun Apr 30 04:00:23 2017 +0200
+
+    fixed Perl 5.26 compatibility for perl -x (https://github.com/pts/sam2p/issues/2)
+
+diff --git a/Makefile b/Makefile
+index 849b09d..1791a9c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -71,10 +71,10 @@ sam2p_version.h: debian/changelog
+ sam2p_main.o: sam2p_version.h
+ 
+ xpmc.h: cols2.pl
+-      perl -x cols2.pl >xpmc.h
++      perl -x ./cols2.pl >xpmc.h
+ 
+ #HQ=perl -e'$$_=join"",<STDIN>; s@([^\w\.\/\-])@sprintf"\\%03o",ord$$1@ge; print "\"$$_\"\n"'
+-HQ=perl -x hq.pl
++HQ=perl -x ./hq.pl
+ #%.tth: %.tte
+ #     <$< >$@ $(HQ)
+ #%.tth: %.ttm
index 446f3a38cd384ca9c8a13221119cc1d1d4d9793c..d27c127034890b99878d55b2435ee75bfeff1e6c 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=6
@@ -18,7 +18,7 @@ DEPEND="dev-lang/perl"
 
 RESTRICT="test"
 
-PATCHES=( "${FILESDIR}"/${P}-build-fixes.patch )
+PATCHES=( "${FILESDIR}"/${P}-build-fixes.patch "${FILESDIR}/${P}-perl526.patch" )
 
 src_prepare() {
        default