commit: 833535d7dedaedcd9715cce29303f08a5c75fa85 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> AuthorDate: Sat Nov 14 16:04:48 2015 +0000 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> CommitDate: Sat Nov 14 16:06:17 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=833535d7
sci-mathematics/pari: fix building docs with perl-5.22 Thanks to Andreas Proteus <proteuss <AT> sdf.lonestar.org> Package-Manager: portage-2.2.24 sci-mathematics/pari/files/pari-2.7.1-perl-5.22-doc.patch | 12 ++++++++++++ sci-mathematics/pari/pari-2.7.1.ebuild | 2 ++ 2 files changed, 14 insertions(+) diff --git a/sci-mathematics/pari/files/pari-2.7.1-perl-5.22-doc.patch b/sci-mathematics/pari/files/pari-2.7.1-perl-5.22-doc.patch new file mode 100644 index 0000000..c4bbadc --- /dev/null +++ b/sci-mathematics/pari/files/pari-2.7.1-perl-5.22-doc.patch @@ -0,0 +1,12 @@ +diff -U2 -r pari-2.7.1.orig/src/desc/doc_make pari-2.7.1/src/desc/doc_make +--- pari-2.7.1.orig/src/desc/doc_make 2014-05-11 00:59:29.000000000 +0700 ++++ pari-2.7.1/src/desc/doc_make 2015-11-15 00:51:11.494845695 +0600 +@@ -39,6 +39,6 @@ + $v =~ s/(\w\w+)/\\var{$1}/g; + $v =~ s/\^([a-z])/\\hbox{\\kbd{\\pow}}$1/g; +- $v =~ s/\\var{flag}/\\fl/g; +- $v =~ s/\\var{(\d+)}/{$1}/g; ++ $v =~ s/\\var\{flag}/\\fl/g; ++ $v =~ s/\\var\{(\d+)}/{$1}/g; + + $v = "\$($v)\$"; diff --git a/sci-mathematics/pari/pari-2.7.1.ebuild b/sci-mathematics/pari/pari-2.7.1.ebuild index 1af3fe0..ffaa8f8 100644 --- a/sci-mathematics/pari/pari-2.7.1.ebuild +++ b/sci-mathematics/pari/pari-2.7.1.ebuild @@ -43,6 +43,8 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-2.7.0-no-automagic.patch # sage-on-gentoo trac 15654: PARI discriminant speed depends on stack size epatch "${FILESDIR}"/${PN}-2.7.0-slow-discriminant.patch + # fix building docs with perl-5.22 + epatch "${FILESDIR}"/${PN}-2.7.1-perl-5.22-doc.patch # disable default building of docs during install sed -i \