media-gfx/asymptote: patch a perl source to work with perl-5.26
authorAndrey Grozin <grozin@gentoo.org>
Tue, 31 Oct 2017 17:01:12 +0000 (00:01 +0700)
committerAndrey Grozin <grozin@gentoo.org>
Tue, 31 Oct 2017 17:01:12 +0000 (00:01 +0700)
Closes: https://bugs.gentoo.org/635984
Package-Manager: Portage-2.3.11, Repoman-2.3.3

media-gfx/asymptote/asymptote-2.41-r1.ebuild
media-gfx/asymptote/files/asymptote-2.41-perl-5.26.patch [new file with mode: 0644]

index 4dc9ef30750e502f38083e6c94abb31ad2bce1b7..87c3bab4778427f26ef23ca7c556e402f564ae0e 100644 (file)
@@ -63,6 +63,9 @@ PATCHES=(
 
        # Bug #322473
        "${FILESDIR}/${P}-info.patch"
+
+       # Bug #635984 - perl-5.26 no longer has . in @INC
+       "${FILESDIR}/${P}-perl-5.26.patch"
 )
 
 pkg_setup() {
diff --git a/media-gfx/asymptote/files/asymptote-2.41-perl-5.26.patch b/media-gfx/asymptote/files/asymptote-2.41-perl-5.26.patch
new file mode 100644 (file)
index 0000000..54499b7
--- /dev/null
@@ -0,0 +1,10 @@
+diff -r -U2 asymptote-2.41.orig/doc/FAQ/bfnnconv.pl asymptote-2.41/doc/FAQ/bfnnconv.pl
+--- asymptote-2.41.orig/doc/FAQ/bfnnconv.pl    2017-03-22 14:56:46.000000000 +0700
++++ asymptote-2.41/doc/FAQ/bfnnconv.pl 2017-10-31 23:44:05.511045390 +0700
+@@ -62,5 +62,5 @@
+ open(U,">$prefix.xrefdb-new");
+-for $x (@outputs) { require("m-$x.pl"); }
++for $x (@outputs) { require("./m-$x.pl"); }
+ &call('init');