commit:     df38bbfac7d3b278f23fabc4d34ed48534881852
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 31 17:01:12 2017 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Tue Oct 31 17:01:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df38bbfa

media-gfx/asymptote: patch a perl source to work with perl-5.26

Closes: https://bugs.gentoo.org/635984
Package-Manager: Portage-2.3.11, Repoman-2.3.3

 media-gfx/asymptote/asymptote-2.41-r1.ebuild             |  3 +++
 media-gfx/asymptote/files/asymptote-2.41-perl-5.26.patch | 10 ++++++++++
 2 files changed, 13 insertions(+)

diff --git a/media-gfx/asymptote/asymptote-2.41-r1.ebuild 
b/media-gfx/asymptote/asymptote-2.41-r1.ebuild
index 4dc9ef30750..87c3bab4778 100644
--- a/media-gfx/asymptote/asymptote-2.41-r1.ebuild
+++ b/media-gfx/asymptote/asymptote-2.41-r1.ebuild
@@ -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
index 00000000000..54499b74e6c
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.41-perl-5.26.patch
@@ -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');

Reply via email to