[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2023-10-31 Thread Michael Orlitzky
commit: d9fcca476e20004701ce379b18ae9cfdfbf220af
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Tue Oct 31 12:46:47 2023 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Tue Oct 31 12:56:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9fcca47

sci-mathematics/pari: drop 2.15.3

Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/pari/Manifest   |   1 -
 sci-mathematics/pari/files/pari-2.9.4-ppc.patch |   9 --
 sci-mathematics/pari/pari-2.15.3.ebuild | 133 
 3 files changed, 143 deletions(-)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index ca590e9f02fe..c96e983220ff 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,2 +1 @@
-DIST pari-2.15.3.tar.gz 5178288 BLAKE2B 
d9cc11526360e9fc7688e0a3195a85302d6bf95039051c9419aa18c5bf91eff837d64d9acabb0a51a6e15a3614a5cab4acbf0a502dba5417982514f27721d47d
 SHA512 
9e127850759bac0c0a9b32c6660a55018ec6c6781aaa14c42667f26655444f55c08e100fe186aec8ad1f574d883d76888b13fbafb65d1f4741e2018b78ff307b
 DIST pari-2.15.4.tar.gz 5183685 BLAKE2B 
2e20b6dc073ce69bc098dd849e6ab43cb38b05d30ff5f72a31272cd24ef01aa515d4e2a4948264ca89169a6980cd9d76f86c7fbb9aad5be604680569950d9c25
 SHA512 
2b9f0c1fe7198406df8e6ceb3fcdc8bfb75f5c7ebfb963f023a1eebfff0bcc26e3b690941e188d6b9f8dfb6cddf4ce4c00f2cc320ebe47d42ae7596c774ed6cc

diff --git a/sci-mathematics/pari/files/pari-2.9.4-ppc.patch 
b/sci-mathematics/pari/files/pari-2.9.4-ppc.patch
deleted file mode 100644
index 558f7eb9eda4..
--- a/sci-mathematics/pari/files/pari-2.9.4-ppc.patch
+++ /dev/null
@@ -1,9 +0,0 @@
-diff -r -U2 pari-2.9.4.orig/config/arch-osname pari-2.9.4/config/arch-osname
 pari-2.9.4.orig/config/arch-osname 2011-09-23 03:02:11.0 +0700
-+++ pari-2.9.4/config/arch-osname  2018-01-13 16:22:39.623382825 +0700
-@@ -40,4 +40,5 @@
-   linux)arch=`uname -m`
-   case $arch in
-+  ppc) arch=powerpc;;
-   sparc64) arch=sparcv9;;
-   parisc*) arch=hppa;;

diff --git a/sci-mathematics/pari/pari-2.15.3.ebuild 
b/sci-mathematics/pari/pari-2.15.3.ebuild
deleted file mode 100644
index 2c285bc6c7ab..
--- a/sci-mathematics/pari/pari-2.15.3.ebuild
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="Computer-aided number theory C library and tools"
-HOMEPAGE="https://pari.math.u-bordeaux.fr/;
-SRC_URI="https://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz;
-
-LICENSE="GPL-2"
-
-# The subslot is the value of $soname_num obtained from
-# upstream's config/version script.
-SLOT="0/8"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ~ppc ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux"
-IUSE="data doc examples fltk gmp test threads X"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-   virtual/pkgconfig
-   doc? ( virtual/latex-base )
-"
-DEPEND="
-   sys-libs/readline:0=
-   data? ( sci-mathematics/pari-data )
-   doc? ( X? ( x11-misc/xdg-utils ) )
-   fltk? ( x11-libs/fltk:1= )
-   gmp? ( dev-libs/gmp:0= )
-   X? ( x11-libs/libX11:0= )"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}"-2.9.4-ppc.patch
-   "${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch
-   "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
-)
-
-src_prepare() {
-   default
-
-   # move doc dir to a gentoo doc dir and replace acroread by xdg-open
-   sed -i \
-   -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
-   -e 's:"acroread":"xdg-open":' \
-   doc/gphelp.in || die "Failed to fix doc dir"
-
-   # These tests fail when LaTeX is not installed (which we don't
-   # require without USE=doc), most likely due to output formatting
-   # issues but I haven't deleted my LaTeX installation to check.
-   # There's no real upstream support for enabling/disabling the LaTeX
-   # docs, so this is probably the correctest way to skip these tests.
-   if ! use doc; then
-   rm src/test/{in,32}/help || die
-   fi
-}
-
-src_configure() {
-   tc-export CC CXX PKG_CONFIG
-
-   # Workaraound to "asm operand has impossible constraints" as
-   # suggested in bug #46.
-   use x86 && append-cflags $(test-flags-CC -fno-stack-check)
-
-   # sysdatadir installs a pari.cfg stuff which is informative only.
-   # It is supposed to be for "architecture-dependent" data.  It needs
-   # to be easily discoverable for downstream packages such as gp2c.
-   # We set LD="" and DLLD="$CC" so that the "shared library linker"
-   # always gets set to the value of the compiler used. Pari's build
-   # system does not cope very well with a naked linker, it is
-   # expecting a compiler driver. See bugs 722090 and 871117.
-   # DLLDFLAGS, 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2023-03-18 Thread Michael Orlitzky
commit: ab98c256a0799d183172beff705dabbf663192c1
Author: Michael Orlitzky  gentoo  org>
AuthorDate: Sat Mar 18 16:35:55 2023 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Sat Mar 18 19:40:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab98c256

sci-mathematics/pari: add 2.15.3, drop 2.15.2-r2

Signed-off-by: Michael Orlitzky  gentoo.org>

 sci-mathematics/pari/Manifest  |  2 +-
 .../pari/files/pari-2.15.2-ellsea-r1.patch | 34 --
 .../pari/files/pari-2.15.2-install-doctex.patch| 25 
 .../{pari-2.15.2-r2.ebuild => pari-2.15.3.ebuild}  |  4 +--
 4 files changed, 2 insertions(+), 63 deletions(-)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index 9e878940b366..787883758f30 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,2 +1,2 @@
 DIST pari-2.13.4.tar.gz 4772735 BLAKE2B 
5a3eebd380f1e47f38746b03ddde9a715ed74e7e8e4ed30ef8f2d62cf7289694b800fc8396557150ce9d79245c244fb56cecddac867c6057b438da4df68505e6
 SHA512 
0eb8c0100d76fb8f29fd29e6a49e9534b9a4d90e1869820dbfddd57fe444f0e83909947331823157a67be31f71a5d26fa1224f72ce3f9e5197db0194c417b9b9
-DIST pari-2.15.2.tar.gz 5176694 BLAKE2B 
b3aa021cb0b786dfde691b150d38c0ee9e9844ff5d2554d7a4f0cd85b27c8077696433b14c0b2128930b7db2191e7db99bdebc200e03607554cc4a9394ea42a4
 SHA512 
fa9e8713484ab5d659dcf7cf65de0fbaf28334969f443bfaffb8fc19c2305631435fc5635e090cbd8033758ea18200a62c47e8434067af9a86565832e96d489c
+DIST pari-2.15.3.tar.gz 5178288 BLAKE2B 
d9cc11526360e9fc7688e0a3195a85302d6bf95039051c9419aa18c5bf91eff837d64d9acabb0a51a6e15a3614a5cab4acbf0a502dba5417982514f27721d47d
 SHA512 
9e127850759bac0c0a9b32c6660a55018ec6c6781aaa14c42667f26655444f55c08e100fe186aec8ad1f574d883d76888b13fbafb65d1f4741e2018b78ff307b

diff --git a/sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch 
b/sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch
deleted file mode 100644
index b8af421c0e56..
--- a/sci-mathematics/pari/files/pari-2.15.2-ellsea-r1.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-A fix for upstream bug 2441 and gentoo bug 892035, with the changes to
-CHANGES and the test suite stripped out (they don't apply cleanly).
-
-From 6f556664bea5dae9d7101533be65f10b9d6332e2 Mon Sep 17 00:00:00 2001
-From: Bill Allombert 
-Date: Fri, 20 Jan 2023 11:13:46 +0100
-Subject: [PATCH 1/1] ellcard(ellinit([1,1]*ffgen([41,16])))-> impossible
- inverse [#2441]
-
-find_isogenous_from_Atkin: check that the kernel divides the division 
polynomial

- CHANGES   | 1 +
- src/basemath/ellsea.c | 3 ++-
- src/test/32/ellff | 3 ++-
- src/test/in/ellff | 3 +++
- 4 files changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/src/basemath/ellsea.c b/src/basemath/ellsea.c
-index a6871fa6a7..05f148eadd 100644
 a/src/basemath/ellsea.c
-+++ b/src/basemath/ellsea.c
-@@ -852,7 +852,8 @@ find_isogenous_from_Atkin(GEN a4, GEN a6, ulong ell, 
struct meqn *MEQN, GEN g, G
-   GEN a4t, a6t, h;
-   a4a6t(, , ell, E4t, E6t, T, p);
-   h = find_kernel(a4, a6, ell, a4t, a6t, pp1, T, p, pp, e);
--  if (h) return gerepilecopy(ltop, mkvec3(a4t, a6t, h));
-+  if (h && signe(Fq_elldivpolmod(a4, a6, ell, h, T, pp))==0)
-+return gerepilecopy(ltop, mkvec3(a4t, a6t, h));
- }
-   }
-   pari_err_BUG("find_isogenous_from_Atkin, kernel not found");
--- 
-2.30.2
-

diff --git a/sci-mathematics/pari/files/pari-2.15.2-install-doctex.patch 
b/sci-mathematics/pari/files/pari-2.15.2-install-doctex.patch
deleted file mode 100644
index d504326b7b43..
--- a/sci-mathematics/pari/files/pari-2.15.2-install-doctex.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 0888050e8f3fc8c07e42331651c970d80c8d6a90 Mon Sep 17 00:00:00 2001
-From: Bill Allombert 
-Date: Wed, 25 Jan 2023 18:42:09 +0100
-Subject: [PATCH] TOP_Make.SH: add target install-docvi, install-doctex [#2444]
-

- config/TOP_Make.SH | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/config/TOP_Make.SH b/config/TOP_Make.SH
-index d2543c91eb..e60fd5f6ee 100644
 a/config/TOP_Make.SH
-+++ b/config/TOP_Make.SH
-@@ -42,7 +42,7 @@ all::
-   @\$(MAKE) gp
-   @-cd doc && \$(MAKE) doc
- 
--gp bench test-kernel test-all install cleanall cleanobj cleantest nsis 
link-data install-bin install-doc install-docpdf install-nodata install-data 
install-lib-sta install-bin-sta dobench dyntest-all statest-all tune 
$top_test_extra $top_dotest_extra::
-+gp bench test-kernel test-all install cleanall cleanobj cleantest nsis 
link-data install-bin install-doc install-doctex install-docdvi install-docpdf 
install-nodata install-data install-lib-sta install-bin-sta dobench dyntest-all 
statest-all tune $top_test_extra $top_dotest_extra::
-   @dir=\`config/objdir\`; echo "Making \$@ in \$\$dir";\\
-if test ! -d \$\$dir; then echo "Please run Configure first!"; exit 1; 
fi;\\
-   cd \$\$dir && \$(MAKE) \$@
--- 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2023-01-16 Thread Michael Orlitzky
commit: d4b6f83e21e7151ac0471d8c7b62c973928e6d08
Author: François Bissey  gmail  com>
AuthorDate: Sun Jan 15 01:21:24 2023 +
Commit: Michael Orlitzky  gentoo  org>
CommitDate: Mon Jan 16 16:40:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4b6f83e

sci-mathematics/pari: add 2.15.2

Closes: https://github.com/gentoo/gentoo/pull/29112
Signed-off-by: Michael Orlitzky  gentoo.org>
Signed-off-by: François Bissey  gmail.com>

 sci-mathematics/pari/Manifest  |   1 +
 .../pari/files/pari-2.15.2-ellsea.patch|  22 
 sci-mathematics/pari/pari-2.15.2.ebuild| 127 +
 3 files changed, 150 insertions(+)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index df9fca51a90a..d9cc0ed7c828 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,2 +1,3 @@
 DIST pari-2.13.4.tar.gz 4772735 BLAKE2B 
5a3eebd380f1e47f38746b03ddde9a715ed74e7e8e4ed30ef8f2d62cf7289694b800fc8396557150ce9d79245c244fb56cecddac867c6057b438da4df68505e6
 SHA512 
0eb8c0100d76fb8f29fd29e6a49e9534b9a4d90e1869820dbfddd57fe444f0e83909947331823157a67be31f71a5d26fa1224f72ce3f9e5197db0194c417b9b9
 DIST pari-2.15.1.tar.gz 5175706 BLAKE2B 
abc04a8bd75f756ad62937941c3b88f910bf57d58e7c4eda20649292ce5ba390688abe463d27cb22af0aee0249967e67a6f929beb9ef328d00d05648af5bf72e
 SHA512 
8f536c1cabff3a082f67febd00240506eef5288c7e85c97d23018e8cdd01109dfb8ebe2fa71dc0e929c55ca00f31349fd145030689c988289201de2ddbcf0a5c
+DIST pari-2.15.2.tar.gz 5176694 BLAKE2B 
b3aa021cb0b786dfde691b150d38c0ee9e9844ff5d2554d7a4f0cd85b27c8077696433b14c0b2128930b7db2191e7db99bdebc200e03607554cc4a9394ea42a4
 SHA512 
fa9e8713484ab5d659dcf7cf65de0fbaf28334969f443bfaffb8fc19c2305631435fc5635e090cbd8033758ea18200a62c47e8434067af9a86565832e96d489c

diff --git a/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch 
b/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch
new file mode 100644
index ..a5c19504ea87
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.15.2-ellsea.patch
@@ -0,0 +1,22 @@
+# upstream bug https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2441
+# will be fixed in 2.15.3
+diff --git a/src/basemath/ellsea.c b/src/basemath/ellsea.c
+index a6871fa6a7..f1e725ea55 100644
+--- a/src/basemath/ellsea.c
 b/src/basemath/ellsea.c
+@@ -1303,6 +1303,7 @@ find_trace_Elkies_power(GEN a4, GEN a6, ulong ell, long 
*pt_k, struct meqn *MEQN
+   lambda = tr ? find_eigen_value_oneroot(a4, a6, ell, tr, kpoly, T, p):
+ find_eigen_value_power(a4, a6, ell, 1, 1, kpoly, T, p);
+   if (DEBUGLEVEL>1) err_printf(" [%ld ms]", timer_delay(ti));
++  if (lambda==ell) return NULL;
+   if (smallfact && smallfact%(long)ell!=0)
+   {
+ ulong pell = pellk%ell;
+@@ -1317,6 +1318,7 @@ find_trace_Elkies_power(GEN a4, GEN a6, ulong ell, long 
*pt_k, struct meqn *MEQN
+ if (!tmp) { k = cnt-1; break; }
+ if (DEBUGLEVEL) err_printf(", %Ps", powuu(ell, cnt));
+ lambda = find_eigen_value_power(a4, a6, ell, cnt, lambda, gel(tmp,3), T, 
p);
++if (lambda == upowuu(ell, cnt)) { k = cnt-1; break; }
+ Eba4 = Eca4;
+ Eba6 = Eca6;
+ Eca4 = gel(tmp,1);

diff --git a/sci-mathematics/pari/pari-2.15.2.ebuild 
b/sci-mathematics/pari/pari-2.15.2.ebuild
new file mode 100644
index ..e677ee6a41a1
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.15.2.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Computer-aided number theory C library and tools"
+HOMEPAGE="https://pari.math.u-bordeaux.fr/;
+SRC_URI="https://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz;
+
+LICENSE="GPL-2"
+
+# The subslot is the value of $soname_num obtained from
+# upstream's config/version script.
+SLOT="0/8"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux"
+IUSE="data doc fltk gmp test threads X"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+   virtual/pkgconfig
+   doc? ( virtual/latex-base )
+"
+DEPEND="
+   sys-libs/readline:0=
+   data? ( sci-mathematics/pari-data )
+   doc? ( X? ( x11-misc/xdg-utils ) )
+   fltk? ( x11-libs/fltk:1= )
+   gmp? ( dev-libs/gmp:0= )
+   X? ( x11-libs/libX11:0= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}"-2.9.4-strip.patch
+   "${FILESDIR}/${PN}"-2.9.4-ppc.patch
+   "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
+   "${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch
+   "${FILESDIR}/${PN}"-2.11.2-Makefile-LDFLAGS.patch
+   "${FILESDIR}/${PN}"-2.11.2-Makefile-docinstall.patch
+   "${FILESDIR}/${PN}"-2.15.2-ellsea.patch
+)
+
+src_prepare() {
+   default
+
+   # move doc dir to a gentoo doc dir and replace acroread by xdg-open
+   sed -i \
+   -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
+   -e 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2020-04-26 Thread Joonas Niilola
commit: 2ad4661499ae447c67c366828a89afae43b23dfa
Author: François Bissey  gmail  com>
AuthorDate: Wed Apr 22 02:18:51 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun Apr 26 08:39:52 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ad46614

sci-mathematics/pari: superceded by new release

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: François René Pierre Bissey  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/15441
Signed-off-by: Joonas Niilola  gentoo.org>

 sci-mathematics/pari/Manifest  |   1 -
 .../files/pari-2.11.3-incorrect_bnfisunit.patch|  49 -
 sci-mathematics/pari/pari-2.11.3.ebuild| 112 -
 3 files changed, 162 deletions(-)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index a01ef39374a..0c8ef471926 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,3 +1,2 @@
 DIST pari-2.11.2.tar.gz 4433038 BLAKE2B 
89fd8c14d6ee8c8640432bec75e10b79897f0180212dcb1b04b654478a3258fc13a7f982bcb400e28997934a21667c0c3cb08fdb2e843a80a24c6499feafb639
 SHA512 
22f5a6ecad6d9b8b337c2655f538a196a0460f6fe98256d0f49557ce7b843f6b27ad364f45a9472aaafee9506386c886f1f0d62697078e501ec465151d4d10a1
-DIST pari-2.11.3.tar.gz 4441199 BLAKE2B 
49b001f2dc27d1be7a742c165881f2b21d55cf387a91d880bd3a16cbc5d69172f931caa779c5ccbe79b6855175695b5e88ff99b420b4f2b7404dd5e4a53a135c
 SHA512 
2624cdd0523ec02324f58af65703003c88ab596bcaa30c366a9ea01123b0ae657285b10016abaa06b6783ba34dd4980f560900b836b8df228b9dbe0ca36a5b11
 DIST pari-2.11.4.tar.gz 4445000 BLAKE2B 
e910783186eeb71e74a369681c113b77271abd7f87d7a9f366aea83f36ab984f02e312cd451fad7ee6efb2fa285780e8fa78540bb1fd4b135a62d265176c80e0
 SHA512 
1312f452244cd1d814a1e43e108378c956669b614845f21199b7039fe6462881168983d4badb8a80bb1bac202cd82d92788a2b4f3c23d16f993cae6e251c4fe1

diff --git a/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch 
b/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch
deleted file mode 100644
index 877cc6ace75..000
--- a/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From: Karim Belabas 
-Date: Mon, 9 Sep 2019 15:20:21 + (+0200)
-Subject: fix #2164
-X-Git-Url: 
https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=commitdiff_plain;h=c7a1d35f382e96ddf14694be27a0ca5746880700
-
-fix #2164

-
-diff --git a/src/basemath/buch2.c b/src/basemath/buch2.c
-index a853d3c48..e31b2278b 100644
 a/src/basemath/buch2.c
-+++ b/src/basemath/buch2.c
-@@ -2136,7 +2136,8 @@ bnfisunit(GEN bnf,GEN x)
-   for (i = 1; i < RU; i++)
- if (gexpo(gel(emb,i)) > -1) break;
-   p1 = imag_i( row_i(logunit,i, 1,RU-1) );
--  p1 = RgV_dotproduct(p1, ex); if (!R1) p1 = gmul2n(p1, -1);
-+  p1 = RgV_dotproduct(p1, ex);
-+  if (i > R1) p1 = gmul2n(p1, -1);
-   p1 = gsub(garg(gel(emb,i),prec), p1);
-   /* p1 = arg(the missing root of 1) */
- 
-diff --git a/src/test/32/nf b/src/test/32/nf
-index 16bf83ce3..e6c41f8b5 100644
 a/src/test/32/nf
-+++ b/src/test/32/nf
-@@ -502,6 +502,7 @@ Mod(1/2*x - 1/2, x^2 + 23)
- [1, 1/2*x - 1/2]
- Mod(0, x)
- Mod(-6/5, x)
-+[0, 2, Mod(0, 2)]~
-   ***   at top-level: nfinit([y^3+2,[1,x]])
-   *** ^-
-   *** nfinit: incorrect type in nfinit_basic (t_VEC).
-diff --git a/src/test/in/nf b/src/test/in/nf
-index 49148123b..94d5165bc 100644
 a/src/test/in/nf
-+++ b/src/test/in/nf
-@@ -156,6 +156,10 @@ K.zk
- nfinit(x, 3)[2]
- nfinit(1/2*x + 3/5, 3)[2]
- 
-+\\ #2164
-+bnf = bnfinit(y^4-y-1);
-+bnfisunit(bnf,-y^3+2*y^2-1)
-+
- \\ ERRORS: keep at end of file
- 
- nfinit([y^3+2,[1,x]])

diff --git a/sci-mathematics/pari/pari-2.11.3.ebuild 
b/sci-mathematics/pari/pari-2.11.3.ebuild
deleted file mode 100644
index 7f3a302bbe4..000
--- a/sci-mathematics/pari/pari-2.11.3.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="Computer-aided number theory C library and tools"
-HOMEPAGE="https://pari.math.u-bordeaux.fr/;
-SRC_URI="https://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz;
-
-LICENSE="GPL-2"
-SLOT="0/6"
-KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux ~x86-macos ~x86-solaris"
-IUSE="data doc fltk gmp test threads X"
-RESTRICT="!test? ( test )"
-
-BDEPEND="doc? ( virtual/latex-base )"
-DEPEND="
-   sys-libs/readline:0=
-   data? ( sci-mathematics/pari-data )
-   doc? ( X? ( x11-misc/xdg-utils ) )
-   fltk? ( x11-libs/fltk:1= )
-   gmp? ( dev-libs/gmp:0= )
-   X? ( x11-libs/libX11:0= )"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}"-2.9.4-strip.patch
-   "${FILESDIR}/${PN}"-2.9.4-ppc.patch
-   "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
-   

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2020-04-17 Thread Joonas Niilola
commit: 15f489e9fbc977dc72d9bdcabc8b19dce3e2aabf
Author: François Bissey  gmail  com>
AuthorDate: Wed Apr  8 04:19:36 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Apr 17 07:35:53 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15f489e9

sci-mathematics/pari: new release + upstream patch

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: François René Pierre Bissey  gmail.com>
Signed-off-by: Joonas Niilola  gentoo.org>

 sci-mathematics/pari/Manifest  |   1 +
 .../files/pari-2.11.3-incorrect_bnfisunit.patch|  49 +
 sci-mathematics/pari/pari-2.11.3.ebuild| 112 +
 3 files changed, 162 insertions(+)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index c679cd11326..dc1b0ad1731 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1 +1,2 @@
 DIST pari-2.11.2.tar.gz 4433038 BLAKE2B 
89fd8c14d6ee8c8640432bec75e10b79897f0180212dcb1b04b654478a3258fc13a7f982bcb400e28997934a21667c0c3cb08fdb2e843a80a24c6499feafb639
 SHA512 
22f5a6ecad6d9b8b337c2655f538a196a0460f6fe98256d0f49557ce7b843f6b27ad364f45a9472aaafee9506386c886f1f0d62697078e501ec465151d4d10a1
+DIST pari-2.11.3.tar.gz 4441199 BLAKE2B 
49b001f2dc27d1be7a742c165881f2b21d55cf387a91d880bd3a16cbc5d69172f931caa779c5ccbe79b6855175695b5e88ff99b420b4f2b7404dd5e4a53a135c
 SHA512 
2624cdd0523ec02324f58af65703003c88ab596bcaa30c366a9ea01123b0ae657285b10016abaa06b6783ba34dd4980f560900b836b8df228b9dbe0ca36a5b11

diff --git a/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch 
b/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch
new file mode 100644
index 000..877cc6ace75
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch
@@ -0,0 +1,49 @@
+From: Karim Belabas 
+Date: Mon, 9 Sep 2019 15:20:21 + (+0200)
+Subject: fix #2164
+X-Git-Url: 
https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=commitdiff_plain;h=c7a1d35f382e96ddf14694be27a0ca5746880700
+
+fix #2164
+---
+
+diff --git a/src/basemath/buch2.c b/src/basemath/buch2.c
+index a853d3c48..e31b2278b 100644
+--- a/src/basemath/buch2.c
 b/src/basemath/buch2.c
+@@ -2136,7 +2136,8 @@ bnfisunit(GEN bnf,GEN x)
+   for (i = 1; i < RU; i++)
+ if (gexpo(gel(emb,i)) > -1) break;
+   p1 = imag_i( row_i(logunit,i, 1,RU-1) );
+-  p1 = RgV_dotproduct(p1, ex); if (!R1) p1 = gmul2n(p1, -1);
++  p1 = RgV_dotproduct(p1, ex);
++  if (i > R1) p1 = gmul2n(p1, -1);
+   p1 = gsub(garg(gel(emb,i),prec), p1);
+   /* p1 = arg(the missing root of 1) */
+ 
+diff --git a/src/test/32/nf b/src/test/32/nf
+index 16bf83ce3..e6c41f8b5 100644
+--- a/src/test/32/nf
 b/src/test/32/nf
+@@ -502,6 +502,7 @@ Mod(1/2*x - 1/2, x^2 + 23)
+ [1, 1/2*x - 1/2]
+ Mod(0, x)
+ Mod(-6/5, x)
++[0, 2, Mod(0, 2)]~
+   ***   at top-level: nfinit([y^3+2,[1,x]])
+   *** ^-
+   *** nfinit: incorrect type in nfinit_basic (t_VEC).
+diff --git a/src/test/in/nf b/src/test/in/nf
+index 49148123b..94d5165bc 100644
+--- a/src/test/in/nf
 b/src/test/in/nf
+@@ -156,6 +156,10 @@ K.zk
+ nfinit(x, 3)[2]
+ nfinit(1/2*x + 3/5, 3)[2]
+ 
++\\ #2164
++bnf = bnfinit(y^4-y-1);
++bnfisunit(bnf,-y^3+2*y^2-1)
++
+ \\ ERRORS: keep at end of file
+ 
+ nfinit([y^3+2,[1,x]])

diff --git a/sci-mathematics/pari/pari-2.11.3.ebuild 
b/sci-mathematics/pari/pari-2.11.3.ebuild
new file mode 100644
index 000..7f3a302bbe4
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.11.3.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Computer-aided number theory C library and tools"
+HOMEPAGE="https://pari.math.u-bordeaux.fr/;
+SRC_URI="https://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0/6"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux 
~x86-linux ~x86-macos ~x86-solaris"
+IUSE="data doc fltk gmp test threads X"
+RESTRICT="!test? ( test )"
+
+BDEPEND="doc? ( virtual/latex-base )"
+DEPEND="
+   sys-libs/readline:0=
+   data? ( sci-mathematics/pari-data )
+   doc? ( X? ( x11-misc/xdg-utils ) )
+   fltk? ( x11-libs/fltk:1= )
+   gmp? ( dev-libs/gmp:0= )
+   X? ( x11-libs/libX11:0= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}"-2.9.4-strip.patch
+   "${FILESDIR}/${PN}"-2.9.4-ppc.patch
+   "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
+   "${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch
+   "${FILESDIR}/${PN}"-2.11.2-Makefile-LDFLAGS.patch
+   "${FILESDIR}/${PN}"-2.11.2-Makefile-docinstall.patch
+   "${FILESDIR}/${PN}"-2.11.3-incorrect_bnfisunit.patch
+)
+
+src_prepare() {
+   default
+
+   # move doc dir to a gentoo doc dir and replace acroread by xdg-open
+   sed -i \
+   -e "s:\$d = \$0:\$d = 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2018-03-18 Thread Andrey Grozin
commit: 9661c2a09237d46969ce7d0918efe03771be8795
Author: Andrey Grozin  gentoo  org>
AuthorDate: Sun Mar 18 21:17:36 2018 +
Commit: Andrey Grozin  gentoo  org>
CommitDate: Sun Mar 18 21:17:36 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9661c2a0

sci-mathematics/pari: fix building with USE=fltk

Suggested-by: François Bissey  gmail.com>
Closes: https://bugs.gentoo.org/646942
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../pari/files/pari-2.9.4-fltk-detection.patch |  22 
 sci-mathematics/pari/pari-2.9.4-r1.ebuild  | 126 +
 2 files changed, 148 insertions(+)

diff --git a/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch 
b/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch
new file mode 100644
index 000..26e146e032a
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.9.4-fltk-detection.patch
@@ -0,0 +1,22 @@
+diff --git a/config/get_fltk b/config/get_fltk
+index 87d0c1d..22f5bd8 100644
+--- a/config/get_fltk
 b/config/get_fltk
+@@ -2,13 +2,16 @@ if test -z "$with_fltk"; then
+   with_fltk=yes
+ fi
+ 
++cmd="FLTK_CXXFLAGS=\`fltk-config --cxxflags\`"
++. log_cmd
++
+ cmd="FLTK_LIBS=\`fltk-config --ldflags\`"
+ . log_cmd
+ 
+ exe=$osname-$arch-fltk$$$exe_suff
+ cxx=$CXX
+ if test -z "$cxx"; then cxx=g++; fi;
+-cmd="$cxx $CFLAGS $FLTK_LIBS -o $exe has_fltk.c"
++cmd="$cxx $CFLAGS $FLTK_CXXFLAGS $FLTK_LIBS -o $exe has_fltk.c"
+ . log_cmd
+ if test -r "$exe"; then
+   echo "Using FLTK library"

diff --git a/sci-mathematics/pari/pari-2.9.4-r1.ebuild 
b/sci-mathematics/pari/pari-2.9.4-r1.ebuild
new file mode 100644
index 000..ce071489ded
--- /dev/null
+++ b/sci-mathematics/pari/pari-2.9.4-r1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic toolchain-funcs multilib
+
+DESCRIPTION="Computer-aided number theory C library and tools"
+HOMEPAGE="http://pari.math.u-bordeaux.fr/;
+LICENSE="GPL-2"
+SLOT="0/5"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd 
~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
+IUSE="data doc fltk gmp X"
+SRC_URI="http://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz;
+
+RDEPEND="
+   sys-libs/readline:0=
+   data? ( sci-mathematics/pari-data )
+   doc? ( X? ( x11-misc/xdg-utils ) )
+   fltk? ( x11-libs/fltk:1= )
+   gmp? ( dev-libs/gmp:0= )
+   X? ( x11-libs/libX11:0= )"
+DEPEND="${RDEPEND}
+   doc? ( virtual/latex-base )"
+
+get_compile_dir() {
+   pushd "${S}/config" > /dev/null
+   local fastread=yes
+   source ./get_archos
+   popd > /dev/null
+   echo "O${osname}-${arch}"
+}
+
+PATCHES=( "${FILESDIR}"/${P}-strip.patch
+   "${FILESDIR}"/${P}-ppc.patch
+   "${FILESDIR}"/${P}-no-automagic.patch
+   "${FILESDIR}"/${P}-fltk-detection.patch
+   )
+
+src_prepare() {
+   default
+
+   # disable default building of docs during install
+   sed -i \
+   -e "s:install-doc install-examples:install-examples:" \
+   config/Makefile.SH || die "Failed to fix makefile"
+
+   # propagate ldflags
+   sed -i \
+   -e 's/$shared $extra/$shared $extra \\$(LDFLAGS)/' \
+   config/get_dlld || die "failed to fix LDFLAGS"
+   # move doc dir to a gentoo doc dir and replace acroread by xdg-open
+   sed -i \
+   -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
+   -e 's:"acroread":"xdg-open":' \
+   doc/gphelp.in || die "Failed to fix doc dir"
+}
+
+src_configure() {
+   tc-export CC
+   export CPLUSPLUS=$(tc-getCXX)
+
+   # need to force optimization here, as it breaks without
+   if is-flag -O0; then
+   replace-flags -O0 -O2
+   elif ! is-flag -O?; then
+   append-flags -O2
+   fi
+
+   # sysdatadir installs a pari.cfg stuff which is informative only
+   ./Configure \
+   --prefix="${EPREFIX}"/usr \
+   --datadir="${EPREFIX}"/usr/share/${PN} \
+   --libdir="${EPREFIX}"/usr/$(get_libdir) \
+   --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \
+   --mandir="${EPREFIX}"/usr/share/man/man1 \
+   --with-readline="${EPREFIX}"/usr \
+   --with-ncurses-lib="${EPREFIX}"/usr/$(get_libdir) \
+   $(use_with fltk) \
+   $(use_with gmp) \
+   --without-qt \
+   || die "./Configure failed"
+}
+
+src_compile() {
+   use hppa && \
+   mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ 
-Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
+
+   mycxxmake=LD\=$(tc-getCXX)
+
+   local installdir=$(get_compile_dir)
+   cd "${installdir}" || die "failed to change directory"
+   # upstream set -fno-strict-aliasing.
+   # aliasing is 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2018-01-13 Thread Andrey Grozin
commit: 11c19699f31647ce20bee4ed56608df444278e32
Author: Andrey Grozin  gentoo  org>
AuthorDate: Sat Jan 13 13:38:45 2018 +
Commit: Andrey Grozin  gentoo  org>
CommitDate: Sat Jan 13 13:38:45 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c19699

sci-mathematics/pari: bump to 2.9.4

Closes: https://bugs.gentoo.org/600568
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sci-mathematics/pari/Manifest  |   1 +
 .../pari/files/pari-2.9.4-no-automagic.patch   |  66 +++
 sci-mathematics/pari/files/pari-2.9.4-ppc.patch|   9 ++
 sci-mathematics/pari/files/pari-2.9.4-strip.patch  |  10 ++
 sci-mathematics/pari/pari-2.9.4.ebuild | 126 +
 5 files changed, 212 insertions(+)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index a78f8a17c5f..8a4f45c784c 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -7,4 +7,5 @@ DIST pari-2.5.4-patchset.tar.bz2 11050 BLAKE2B 
0ea4727bb03045c7cda9b39cd429db8ea
 DIST pari-2.5.4.tar.gz 2721861 BLAKE2B 
003113716c4aaea3836ee7f813ff4aacecb40e6c7d9119c0a6d6073f951e6c5fae887ee22d87d5c7d7320e0d873585f145dd14e7014075bf198143dde68325f9
 SHA512 
de2f0593682d638288908636d848489acf115f4858b91c574168db26c4ab7443465a21d1e6c43be19ecc57dcedcd883e5af72b65467a59a2c8811e4eec64e0b9
 DIST pari-2.7.1-patchset.tar.bz2 4318 BLAKE2B 
881354eec4f89f7b7e0a1d53d5fa169b0ea0de3964baff454f2e7aca1b7bd2e7ffa2f404e4df7a8ff7a662aed3920e10df4a3a1d5d86967579c360869abce557
 SHA512 
1ff40adcf638230e1aca951b4fdb291cd4d2048ef66215de0ec157b9ec0040e28c115c2684056cf582695e66ee8363aa776a4a50f8654c8dde7bad490a47b304
 DIST pari-2.7.1.tar.gz 3140893 BLAKE2B 
0f5c69ac2decb0ac26f51de7843c282606f854c257b06d1596eb7f4157e8f64d65b65f887e2d9bb8b77cbdffdac0bb1902e373b1d44e457ac25993bc308d3e09
 SHA512 
ff32c181e6810af8a38f0dfe45b9f15d930923da5759c3e88595f56bf3c65ec0a79fdb9fb5f0e4ce0adb1ebc56a84e6b1606085057762073a85c0d1946857d5f
+DIST pari-2.9.4.tar.gz 3851772 BLAKE2B 
648e7fd14888bed2dfb7bbb9a25d097aa91899780da9734b444e29997916c27773109e735ecb2d3e9d164a596f3bb8da607d83f278e52d84c49a56df5c89b530
 SHA512 
539534496e9733bd905b6131374eef8019f93398423710d339bd3c01245e1af675a0a3f9489a05c3ceb2cf3b3426e6b1fb11ea4886b76a1b2e793b59f52e8787
 DIST seadata.tgz 19214199 BLAKE2B 
cafb89905180ff481f578ff2cdb150b04533ecbccfa96d045bdb61e5fe2c230262f3459d31b11f049ad1e16ed9dd6fb734569ee621efa3831800cc3d99583e60
 SHA512 
393f2fae45964ad0921fcf417113e10b296cb4c3a0e0eec138c896827f43a5464c4b42a07313e0f3a4383e8df97912e2e359a4cd5225d014d7575e80c7dd996a

diff --git a/sci-mathematics/pari/files/pari-2.9.4-no-automagic.patch 
b/sci-mathematics/pari/files/pari-2.9.4-no-automagic.patch
new file mode 100644
index 000..3612d8f020f
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.9.4-no-automagic.patch
@@ -0,0 +1,66 @@
+diff -r -U2 pari-2.9.4.orig/config/Makefile.SH pari-2.9.4/config/Makefile.SH
+--- pari-2.9.4.orig/config/Makefile.SH 2017-11-09 16:26:14.0 +0700
 pari-2.9.4/config/Makefile.SH  2018-01-13 17:31:02.404210285 +0700
+@@ -80,10 +80,10 @@
+   graph=plotQt;;
+ Qt4)
+-  PLOTCFLAGS='-D__FANCY_WIN__ -I$(QTDIR)/include'
+-  PLOTLIBS="-L\$(QTDIR)/lib $QTLIB"
++  PLOTCFLAGS='-D__FANCY_WIN__ `pkg-config --cflags QtGui`'
++  PLOTLIBS="`pkg-config --libs QtGui`"
+   graph=plotQt4;;
+ fltk)
+-  PLOTCFLAGS=
+-  PLOTLIBS="$FLTK_LIBS"
++  PLOTCFLAGS="`fltk-config --cxxflags` $X11_INC"
++  PLOTLIBS="`fltk-config --ldflags`"
+   postconfig='fltk-config --post '
+   graph=plotfltk;;
+@@ -277,5 +277,5 @@
+ # Graphic library.
+ QTDIR  = "$QTDIR"
+-MOC= \$(QTDIR)/bin/moc
++MOC= "`which moc`"
+ PLOTCFLAGS = $PLOTCFLAGS
+ PLOTLIBS   = $PLOTLIBS
+diff -r -U2 pari-2.9.4.orig/config/get_Qt pari-2.9.4/config/get_Qt
+--- pari-2.9.4.orig/config/get_Qt  2017-05-12 16:45:12.0 +0700
 pari-2.9.4/config/get_Qt   2018-01-13 17:35:49.481198212 +0700
+@@ -6,5 +6,5 @@
+ yes)
+pth="/usr/local/lib /usr/local/share /usr/lib /usr/share"
+-   QTDIR=`locatedir qt4/bin $pth`
++   QTDIR=`locatedir qt4 $pth`
+if test -n "$QTDIR"; then
+  QTLIB="-lQtCore -lQtGui"
+diff -r -U2 pari-2.9.4.orig/config/get_config_options 
pari-2.9.4/config/get_config_options
+--- pari-2.9.4.orig/config/get_config_options  2017-11-09 16:26:14.0 
+0700
 pari-2.9.4/config/get_config_options   2018-01-13 17:38:39.264191072 
+0700
+@@ -87,8 +87,10 @@
+   with_ncurses_lib=`echo "$1" | sed -e 's/[-a-z]*=//'` ;;
+ 
++  --without-qt|--with-qt=no) without_qt=yes ;;
+   --with-qt) with_qt=yes ;;
+   --with-qt=*)
+   with_qt=`echo "$1" | sed -e 's/[-a-z]*=//'` ;;
+ 
++  --without-fltk|--with-fltk=no) without_fltk=yes ;;
+   --with-fltk) with_fltk=yes ;;
+   --with-fltk=*)
+@@ -168,5 +170,7 @@
+ 
+   --with-qt[=DIR]use the Qt graphical library [prefix for Qt dir.]
++  --without-qt   do not try to use the Qt lib
+   --with-fltkuse the FLTK 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2017-12-11 Thread Michał Górny
commit: 402214f19fac15d127352556a0699df444331879
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Dec 11 19:41:16 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Dec 11 19:46:29 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=402214f1

sci-mathematics/pari: [QA] Move patches to distfiles

Closes: https://bugs.gentoo.org/620628

 sci-mathematics/pari/Manifest  |   3 +
 .../files/pari-2.3.2-ppc-powerpc-arch-fix.patch|  11 -
 sci-mathematics/pari/files/pari-2.3.2-strip.patch  |  11 -
 .../pari/files/pari-2.3.5-doc-make.patch   |  46 --
 .../pari/files/pari-2.3.5-no-dot-inc.patch |  61 --
 .../pari/files/pari-2.5.0-doc-make.patch   |  82 ---
 sci-mathematics/pari/files/pari-2.5.0-macos.patch  |  21 -
 sci-mathematics/pari/files/pari-2.5.0-mp.c.patch   |  23 -
 .../pari/files/pari-2.5.0-no-dot-inc.patch |  61 --
 .../pari/files/pari-2.5.1-no-automagic.patch   | 100 ---
 sci-mathematics/pari/files/pari-2.5.4-polred.patch | 754 -
 .../pari/files/pari-2.5.4-slow_determinant.patch   | 100 ---
 .../pari/files/pari-2.7.0-doc-make.patch   |  89 ---
 .../pari/files/pari-2.7.0-no-automagic.patch   | 100 ---
 .../pari/files/pari-2.7.0-no-dot-inc.patch |  64 --
 .../pari/files/pari-2.7.0-slow-discriminant.patch  |  54 --
 .../pari/files/pari-2.7.1-perl-5.22-doc.patch  |  12 -
 sci-mathematics/pari/pari-2.3.5.ebuild |   9 +-
 sci-mathematics/pari/pari-2.5.4.ebuild |  21 +-
 sci-mathematics/pari/pari-2.7.1.ebuild |  17 +-
 20 files changed, 28 insertions(+), 1611 deletions(-)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index c2317db8fd8..a78f8a17c5f 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -1,7 +1,10 @@
 DIST elldata.tgz 14185595 BLAKE2B 
eb90a0e392eeeaad81b6b01ba4e8258aaf2a4b4a01950b18a0e91f176629aecc693453d8fe99b49a28f2dfbbb6fae1a06d7d4137cb13ced298e64e5aa4062f53
 SHA512 
dc13d1cacb98a6c2774936997452bd34ae198da9206fea69bc7cdd28240d0cdd07bb0ec1f14b8e97bea4321a60a6a6144464ab3b629be2e37dd76a73efaf43ef
 DIST galdata.tgz 53229 BLAKE2B 
08f0a1be3c5252fbe534b2ed7e66b9bc8cddab807b7caf12b783aacc2e75de82dc000e762da2ec895d52424281234af121e1edfd84adf9f02c26c4e59d23e2f3
 SHA512 
bc89c8a42416e8ca25c356b7ad6d80ffcfff127e561fc338df87147a9e370ec71f7ae2eb6bef73d634cc7a8f18c794d7fd5ebfd0a042d3d356526a2eee28125a
 DIST nftables.tgz 8393731 BLAKE2B 
d33cbf1f52d3e8a040087da28014ab727b59c641d1a53c97d311a9d1613b59f6b317b7632e0fc89943bea0a507a737543890109b888707c4fb7879279549a2e9
 SHA512 
62fb0f6d8c578a4e165a1f2daf3b87acbbc38377044ddd98e2901a8e0554a46c8714bad0f4f4e09107b0c0c8f43069b4ddf4fba9c7832bad65ce3c901183
+DIST pari-2.3.5-patchset.tar.bz2 1773 BLAKE2B 
08358dcb7e353eb41a784a6daa9400b74b8f331a54eea8ef159fbbecdbed5d00955a821db20e3a4f7e254160cd600d0255d6648aa0e1b2b7aca9910d5cd17f1d
 SHA512 
f616eac3049fea684413f8f221a1604a5e62ae2804207513fcfff513d8b162a3a4d1063dad059907682404ee30f840182d75e29a44b44cda4f80266b46f75364
 DIST pari-2.3.5.tar.gz 2018097 BLAKE2B 
b5f4f8bc83cd77aceab791263e1a2f0294d0663d354fea454bad8cac3cdbac9c4c8381cc83bc947d518522701c36e94ce1d6862125a9bfd3b17b1a31c9baabc8
 SHA512 
0e49e6310b4c76ef3370786a13aa8cbc5bb0b7dc84ec1665866d623e6284f45db8584eea759e8b5954dc9b5c8a3e866e77a377d18073ed33f11708a7e88a4cca
+DIST pari-2.5.4-patchset.tar.bz2 11050 BLAKE2B 
0ea4727bb03045c7cda9b39cd429db8ea1b8d9e2656cf81fb4d401abc57803d8a6b4c538727f6744dd75c6b95530a0cca058cfdb0e85d4b9eaf39e7d43a14929
 SHA512 
5b70b6e15e651118c5dba339601eee1b8dfe55eb37f30d0b350d73eef33a4119ba366ba48fa171e450e27af2823b96d8006aadf0f994ae76002f98a76adcf6bb
 DIST pari-2.5.4.tar.gz 2721861 BLAKE2B 
003113716c4aaea3836ee7f813ff4aacecb40e6c7d9119c0a6d6073f951e6c5fae887ee22d87d5c7d7320e0d873585f145dd14e7014075bf198143dde68325f9
 SHA512 
de2f0593682d638288908636d848489acf115f4858b91c574168db26c4ab7443465a21d1e6c43be19ecc57dcedcd883e5af72b65467a59a2c8811e4eec64e0b9
+DIST pari-2.7.1-patchset.tar.bz2 4318 BLAKE2B 
881354eec4f89f7b7e0a1d53d5fa169b0ea0de3964baff454f2e7aca1b7bd2e7ffa2f404e4df7a8ff7a662aed3920e10df4a3a1d5d86967579c360869abce557
 SHA512 
1ff40adcf638230e1aca951b4fdb291cd4d2048ef66215de0ec157b9ec0040e28c115c2684056cf582695e66ee8363aa776a4a50f8654c8dde7bad490a47b304
 DIST pari-2.7.1.tar.gz 3140893 BLAKE2B 
0f5c69ac2decb0ac26f51de7843c282606f854c257b06d1596eb7f4157e8f64d65b65f887e2d9bb8b77cbdffdac0bb1902e373b1d44e457ac25993bc308d3e09
 SHA512 
ff32c181e6810af8a38f0dfe45b9f15d930923da5759c3e88595f56bf3c65ec0a79fdb9fb5f0e4ce0adb1ebc56a84e6b1606085057762073a85c0d1946857d5f
 DIST seadata.tgz 19214199 BLAKE2B 
cafb89905180ff481f578ff2cdb150b04533ecbccfa96d045bdb61e5fe2c230262f3459d31b11f049ad1e16ed9dd6fb734569ee621efa3831800cc3d99583e60
 SHA512 
393f2fae45964ad0921fcf417113e10b296cb4c3a0e0eec138c896827f43a5464c4b42a07313e0f3a4383e8df97912e2e359a4cd5225d014d7575e80c7dd996a

diff --git 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2017-12-11 Thread Michał Górny
commit: 2b4de8113370e08dd863e5fe1cc9553055f1b306
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Dec 11 19:35:33 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Dec 11 19:46:29 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b4de811

sci-mathematics/pari: Prune old

 sci-mathematics/pari/Manifest |   5 -
 sci-mathematics/pari/files/50pari-gentoo.el   |  10 --
 sci-mathematics/pari/files/pari-2.5.1-1302.patch  |  33 --
 sci-mathematics/pari/files/pari-2.5.1-1304.patch  |  39 --
 sci-mathematics/pari/files/pari-2.5.1-gcc47.patch |  18 ---
 sci-mathematics/pari/pari-2.5.0-r3.ebuild | 136 -
 sci-mathematics/pari/pari-2.5.1-r1.ebuild | 138 --
 sci-mathematics/pari/pari-2.5.1.ebuild| 138 --
 sci-mathematics/pari/pari-2.5.2.ebuild| 134 -
 sci-mathematics/pari/pari-2.5.3.ebuild| 134 -
 sci-mathematics/pari/pari-2.7.0.ebuild| 134 -
 11 files changed, 919 deletions(-)

diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
index c43b709a4c7..c2317db8fd8 100644
--- a/sci-mathematics/pari/Manifest
+++ b/sci-mathematics/pari/Manifest
@@ -2,11 +2,6 @@ DIST elldata.tgz 14185595 BLAKE2B 
eb90a0e392eeeaad81b6b01ba4e8258aaf2a4b4a01950b
 DIST galdata.tgz 53229 BLAKE2B 
08f0a1be3c5252fbe534b2ed7e66b9bc8cddab807b7caf12b783aacc2e75de82dc000e762da2ec895d52424281234af121e1edfd84adf9f02c26c4e59d23e2f3
 SHA512 
bc89c8a42416e8ca25c356b7ad6d80ffcfff127e561fc338df87147a9e370ec71f7ae2eb6bef73d634cc7a8f18c794d7fd5ebfd0a042d3d356526a2eee28125a
 DIST nftables.tgz 8393731 BLAKE2B 
d33cbf1f52d3e8a040087da28014ab727b59c641d1a53c97d311a9d1613b59f6b317b7632e0fc89943bea0a507a737543890109b888707c4fb7879279549a2e9
 SHA512 
62fb0f6d8c578a4e165a1f2daf3b87acbbc38377044ddd98e2901a8e0554a46c8714bad0f4f4e09107b0c0c8f43069b4ddf4fba9c7832bad65ce3c901183
 DIST pari-2.3.5.tar.gz 2018097 BLAKE2B 
b5f4f8bc83cd77aceab791263e1a2f0294d0663d354fea454bad8cac3cdbac9c4c8381cc83bc947d518522701c36e94ce1d6862125a9bfd3b17b1a31c9baabc8
 SHA512 
0e49e6310b4c76ef3370786a13aa8cbc5bb0b7dc84ec1665866d623e6284f45db8584eea759e8b5954dc9b5c8a3e866e77a377d18073ed33f11708a7e88a4cca
-DIST pari-2.5.0.tar.gz 2714449 BLAKE2B 
2c3bdc52c9c5332670656910a425847633a39831d372f69966542564a0bc5b35d767b84df68a357285e06357ebe110fb55134d1e34675f7e9b27c78cfc0945d4
 SHA512 
701abdf4d65bcaeac9bdd314b1fc24a59de9ee1874b9abba5761cb88bb871c18d108a99cf1cbf9a357ac192196c043592e0e5d1645689d5a6f85afbfa7a9096f
-DIST pari-2.5.1.tar.gz 2718726 BLAKE2B 
28149a9af879fed26dd5d7effee8a821a293518743fb5c1ef2ca97e903cf1ab24afbeb4116b2bf833c05aebddacd026a584b8b2c60fef5b036af44d666f22f60
 SHA512 
dd304bd02402602c1f114a7f4d1e54af0fce8707b196fd9da617c028ba3426418813aeaf818fecaa9f76572b1d36847463a3aa7f60848cdec607ec70131dc263
-DIST pari-2.5.2.tar.gz 2719367 BLAKE2B 
a48109c1c5ec85306eef4b6bff8c7c05bfe0479f1f9e4e57e2b914286117c2768be869109e7701d74f29fee80fcff9e0f05d6863fde6cf881e7ecc00b7539ba0
 SHA512 
2d0332e5604a6bd41c8328c4cffc42302dd85db077a950e19769a0cc7b8c3e17b7c4c5c1514ecb2f75757015baa7e7df76f6174e997fbaa90874c5e6cf5e7fce
-DIST pari-2.5.3.tar.gz 2720543 BLAKE2B 
a52473c817c9625f30e6c3ee08942f8e69d4cba0ef6d50972c20ac0995dc00d605d19d90793b88d59e5d47ac87d0ef68d4dbc6b77c3887677cd7b290e0b41bbb
 SHA512 
8606f1f1b59a8e9e8b5bdbaacd03f980da99616568c180eb37f6f530efad396343e3146f6c7adfc5dac6e43a1d35c898531ecf61dd6d62c26cafcd2554f8c43b
 DIST pari-2.5.4.tar.gz 2721861 BLAKE2B 
003113716c4aaea3836ee7f813ff4aacecb40e6c7d9119c0a6d6073f951e6c5fae887ee22d87d5c7d7320e0d873585f145dd14e7014075bf198143dde68325f9
 SHA512 
de2f0593682d638288908636d848489acf115f4858b91c574168db26c4ab7443465a21d1e6c43be19ecc57dcedcd883e5af72b65467a59a2c8811e4eec64e0b9
-DIST pari-2.7.0.tar.gz 3142306 BLAKE2B 
eb4a62af1eaa502d38e04116a34e2c9b186ef075cfa647c242ec5384de8d1c12acdb1ad55397a2c3af19b93b95115a60a8a6e8ae2b2bd6d197d68a1907df79e8
 SHA512 
312ed6032e5b1b431d04cccb593e5ca6ca323361736669be0ed345cbb6cf22114c670984ae74120aacb4ac1af822a1fdf76aed7ba59a1cd4f94e26150562ad84
 DIST pari-2.7.1.tar.gz 3140893 BLAKE2B 
0f5c69ac2decb0ac26f51de7843c282606f854c257b06d1596eb7f4157e8f64d65b65f887e2d9bb8b77cbdffdac0bb1902e373b1d44e457ac25993bc308d3e09
 SHA512 
ff32c181e6810af8a38f0dfe45b9f15d930923da5759c3e88595f56bf3c65ec0a79fdb9fb5f0e4ce0adb1ebc56a84e6b1606085057762073a85c0d1946857d5f
 DIST seadata.tgz 19214199 BLAKE2B 
cafb89905180ff481f578ff2cdb150b04533ecbccfa96d045bdb61e5fe2c230262f3459d31b11f049ad1e16ed9dd6fb734569ee621efa3831800cc3d99583e60
 SHA512 
393f2fae45964ad0921fcf417113e10b296cb4c3a0e0eec138c896827f43a5464c4b42a07313e0f3a4383e8df97912e2e359a4cd5225d014d7575e80c7dd996a

diff --git a/sci-mathematics/pari/files/50pari-gentoo.el 
b/sci-mathematics/pari/files/50pari-gentoo.el
deleted file mode 100644
index 2f5b4da9084..000
--- 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2017-06-11 Thread Kent Fredric
commit: 820fcd22ef2a0a5d8eefb18e86ab21ba76d96e3f
Author: Kent Fredric  gentoo  org>
AuthorDate: Sat Jun 10 23:48:16 2017 +
Commit: Kent Fredric  gentoo  org>
CommitDate: Sun Jun 11 14:29:18 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820fcd22

sci-mathematics/pari: Fix for '.' in @INC on perl 5.26 re bug #615016

Perl 5.26 removes implied cwd from library loading paths, and
subsequently Pari's compile fails due to reliance on this implication.

These patches rectify that by constructing a library path the same
as the scripts directory, and inserting that into `@INC`

Of course, we still need the oldest pari because dev-perl/Math-Pari
needs the old version.

And of course, the files in question have minor changes over the
handful of versions, necessitating 3 *mostly* identical but slightly
different patches for the relevant versions.

I haven't filed this issue upstream, as their bug reporting stuff
looked dizzyingly confusing.

Bug: https://bugs.gentoo.org/615016
Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../pari/files/pari-2.3.5-no-dot-inc.patch | 61 +
 .../pari/files/pari-2.5.0-no-dot-inc.patch | 61 +
 .../pari/files/pari-2.7.0-no-dot-inc.patch | 64 ++
 sci-mathematics/pari/pari-2.3.5.ebuild |  3 +-
 sci-mathematics/pari/pari-2.5.0-r3.ebuild  |  4 +-
 sci-mathematics/pari/pari-2.5.1-r1.ebuild  |  4 +-
 sci-mathematics/pari/pari-2.5.1.ebuild |  4 +-
 sci-mathematics/pari/pari-2.5.2.ebuild |  4 +-
 sci-mathematics/pari/pari-2.5.3.ebuild |  4 +-
 sci-mathematics/pari/pari-2.5.4.ebuild |  4 +-
 sci-mathematics/pari/pari-2.7.0.ebuild |  4 +-
 sci-mathematics/pari/pari-2.7.1.ebuild |  4 +-
 12 files changed, 212 insertions(+), 9 deletions(-)

diff --git a/sci-mathematics/pari/files/pari-2.3.5-no-dot-inc.patch 
b/sci-mathematics/pari/files/pari-2.3.5-no-dot-inc.patch
new file mode 100644
index 000..cd34851a30f
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.3.5-no-dot-inc.patch
@@ -0,0 +1,61 @@
+From 4f1e00df5ea1e51042146f6277bb1af02f249cc3 Mon Sep 17 00:00:00 2001
+From: Kent Fredric 
+Date: Sun, 11 Jun 2017 10:31:03 +1200
+Subject: [PATCH] Fix for 5.26 removal of '.' in @INC
+
+Previous scripts assumed CWD was in @INC and that "PARI::822" was in
+wherever CWD was.
+
+This fixes both of those, and the latter, because its not obvious
+from the build system where one should assume CWD to be.
+
+Instead, the absolute path of the directory of these scripts is
+inserted into @INC
+---
+ src/desc/gen_member | 4 
+ src/desc/gen_proto  | 4 
+ src/desc/merge_822  | 4 
+ 3 files changed, 12 insertions(+)
+
+diff --git a/src/desc/gen_member b/src/desc/gen_member
+index 2f3cf52..66dea2b 100755
+--- a/src/desc/gen_member
 b/src/desc/gen_member
+@@ -1,4 +1,8 @@
+ #!/usr/bin/perl -w
++use File::Spec;
++use File::Basename qw( dirname );
++use lib dirname(File::Spec->rel2abs(__FILE__));
++
+ use PARI::822;
+ 
+ $class='member_functions';
+diff --git a/src/desc/gen_proto b/src/desc/gen_proto
+index 1b507fa..2fb4d3f 100755
+--- a/src/desc/gen_proto
 b/src/desc/gen_proto
+@@ -1,4 +1,8 @@
+ #!/usr/bin/perl -w
++use File::Spec;
++use File::Basename qw( dirname );
++use lib dirname(File::Spec->rel2abs(__FILE__));
++
+ use PARI::822;
+ 
+ $class=$ARGV[0];
+diff --git a/src/desc/merge_822 b/src/desc/merge_822
+index a02d612..9ca8252 100755
+--- a/src/desc/merge_822
 b/src/desc/merge_822
+@@ -1,4 +1,8 @@
+ #!/usr/bin/perl -w
++use File::Spec;
++use File::Basename qw( dirname );
++use lib dirname(File::Spec->rel2abs(__FILE__));
++
+ use PARI::822;
+ 
+ PARI::822::read(\%funcs,$_,1)
+-- 
+2.13.1
+

diff --git a/sci-mathematics/pari/files/pari-2.5.0-no-dot-inc.patch 
b/sci-mathematics/pari/files/pari-2.5.0-no-dot-inc.patch
new file mode 100644
index 000..e34fa6b352a
--- /dev/null
+++ b/sci-mathematics/pari/files/pari-2.5.0-no-dot-inc.patch
@@ -0,0 +1,61 @@
+From 03df0cdd7228a412d2adfe9ee9c746b3ec69dd6b Mon Sep 17 00:00:00 2001
+From: Kent Fredric 
+Date: Sun, 11 Jun 2017 10:31:03 +1200
+Subject: [PATCH] Fix for 5.26 removal of '.' in @INC
+
+Previous scripts assumed CWD was in @INC and that "PARI::822" was in
+wherever CWD was.
+
+This fixes both of those, and the latter, because its not obvious
+from the build system where one should assume CWD to be.
+
+Instead, the absolute path of the directory of these scripts is
+inserted into @INC
+---
+ src/desc/doc_make  | 4 
+ src/desc/gen_proto | 4 
+ src/desc/merge_822 | 4 
+ 3 files changed, 12 insertions(+)
+
+diff --git a/src/desc/doc_make b/src/desc/doc_make
+index 02dc90d..55296ed 100755
+--- a/src/desc/doc_make
 b/src/desc/doc_make
+@@ -1,4 +1,8 @@
+ #!/usr/bin/perl
++use File::Spec;
++use File::Basename qw( dirname );
++use lib 

[gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/

2015-11-14 Thread Andrey Grozin
commit: 833535d7dedaedcd9715cce29303f08a5c75fa85
Author: Andrey Grozin  gentoo  org>
AuthorDate: Sat Nov 14 16:04:48 2015 +
Commit: Andrey Grozin  gentoo  org>
CommitDate: Sat Nov 14 16:06:17 2015 +
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  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 000..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.0 +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 \