Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/pari/, sci-mathematics/pari/files/
Date: Sun, 26 Apr 2020 08:40:26
Message-Id: 1587890392.2ad4661499ae447c67c366828a89afae43b23dfa.juippis@gentoo
1 commit: 2ad4661499ae447c67c366828a89afae43b23dfa
2 Author: François Bissey <frp.bissey <AT> gmail <DOT> com>
3 AuthorDate: Wed Apr 22 02:18:51 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 26 08:39:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ad46614
7
8 sci-mathematics/pari: superceded by new release
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: François René Pierre Bissey <frp.bissey <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/15441
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 sci-mathematics/pari/Manifest | 1 -
16 .../files/pari-2.11.3-incorrect_bnfisunit.patch | 49 ---------
17 sci-mathematics/pari/pari-2.11.3.ebuild | 112 ---------------------
18 3 files changed, 162 deletions(-)
19
20 diff --git a/sci-mathematics/pari/Manifest b/sci-mathematics/pari/Manifest
21 index a01ef39374a..0c8ef471926 100644
22 --- a/sci-mathematics/pari/Manifest
23 +++ b/sci-mathematics/pari/Manifest
24 @@ -1,3 +1,2 @@
25 DIST pari-2.11.2.tar.gz 4433038 BLAKE2B 89fd8c14d6ee8c8640432bec75e10b79897f0180212dcb1b04b654478a3258fc13a7f982bcb400e28997934a21667c0c3cb08fdb2e843a80a24c6499feafb639 SHA512 22f5a6ecad6d9b8b337c2655f538a196a0460f6fe98256d0f49557ce7b843f6b27ad364f45a9472aaafee9506386c886f1f0d62697078e501ec465151d4d10a1
26 -DIST pari-2.11.3.tar.gz 4441199 BLAKE2B 49b001f2dc27d1be7a742c165881f2b21d55cf387a91d880bd3a16cbc5d69172f931caa779c5ccbe79b6855175695b5e88ff99b420b4f2b7404dd5e4a53a135c SHA512 2624cdd0523ec02324f58af65703003c88ab596bcaa30c366a9ea01123b0ae657285b10016abaa06b6783ba34dd4980f560900b836b8df228b9dbe0ca36a5b11
27 DIST pari-2.11.4.tar.gz 4445000 BLAKE2B e910783186eeb71e74a369681c113b77271abd7f87d7a9f366aea83f36ab984f02e312cd451fad7ee6efb2fa285780e8fa78540bb1fd4b135a62d265176c80e0 SHA512 1312f452244cd1d814a1e43e108378c956669b614845f21199b7039fe6462881168983d4badb8a80bb1bac202cd82d92788a2b4f3c23d16f993cae6e251c4fe1
28
29 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
30 deleted file mode 100644
31 index 877cc6ace75..00000000000
32 --- a/sci-mathematics/pari/files/pari-2.11.3-incorrect_bnfisunit.patch
33 +++ /dev/null
34 @@ -1,49 +0,0 @@
35 -From: Karim Belabas <Karim.Belabas@××××××××××××××××.fr>
36 -Date: Mon, 9 Sep 2019 15:20:21 +0000 (+0200)
37 -Subject: fix #2164
38 -X-Git-Url: https://pari.math.u-bordeaux.fr/cgi-bin/gitweb.cgi?p=pari.git;a=commitdiff_plain;h=c7a1d35f382e96ddf14694be27a0ca5746880700
39 -
40 -fix #2164
41 ----
42 -
43 -diff --git a/src/basemath/buch2.c b/src/basemath/buch2.c
44 -index a853d3c48..e31b2278b 100644
45 ---- a/src/basemath/buch2.c
46 -+++ b/src/basemath/buch2.c
47 -@@ -2136,7 +2136,8 @@ bnfisunit(GEN bnf,GEN x)
48 - for (i = 1; i < RU; i++)
49 - if (gexpo(gel(emb,i)) > -1) break;
50 - p1 = imag_i( row_i(logunit,i, 1,RU-1) );
51 -- p1 = RgV_dotproduct(p1, ex); if (!R1) p1 = gmul2n(p1, -1);
52 -+ p1 = RgV_dotproduct(p1, ex);
53 -+ if (i > R1) p1 = gmul2n(p1, -1);
54 - p1 = gsub(garg(gel(emb,i),prec), p1);
55 - /* p1 = arg(the missing root of 1) */
56 -
57 -diff --git a/src/test/32/nf b/src/test/32/nf
58 -index 16bf83ce3..e6c41f8b5 100644
59 ---- a/src/test/32/nf
60 -+++ b/src/test/32/nf
61 -@@ -502,6 +502,7 @@ Mod(1/2*x - 1/2, x^2 + 23)
62 - [1, 1/2*x - 1/2]
63 - Mod(0, x)
64 - Mod(-6/5, x)
65 -+[0, 2, Mod(0, 2)]~
66 - *** at top-level: nfinit([y^3+2,[1,x]])
67 - *** ^---------------------
68 - *** nfinit: incorrect type in nfinit_basic (t_VEC).
69 -diff --git a/src/test/in/nf b/src/test/in/nf
70 -index 49148123b..94d5165bc 100644
71 ---- a/src/test/in/nf
72 -+++ b/src/test/in/nf
73 -@@ -156,6 +156,10 @@ K.zk
74 - nfinit(x, 3)[2]
75 - nfinit(1/2*x + 3/5, 3)[2]
76 -
77 -+\\ #2164
78 -+bnf = bnfinit(y^4-y-1);
79 -+bnfisunit(bnf,-y^3+2*y^2-1)
80 -+
81 - \\ ERRORS: keep at end of file
82 -
83 - nfinit([y^3+2,[1,x]])
84
85 diff --git a/sci-mathematics/pari/pari-2.11.3.ebuild b/sci-mathematics/pari/pari-2.11.3.ebuild
86 deleted file mode 100644
87 index 7f3a302bbe4..00000000000
88 --- a/sci-mathematics/pari/pari-2.11.3.ebuild
89 +++ /dev/null
90 @@ -1,112 +0,0 @@
91 -# Copyright 1999-2020 Gentoo Authors
92 -# Distributed under the terms of the GNU General Public License v2
93 -
94 -EAPI=7
95 -
96 -inherit flag-o-matic toolchain-funcs
97 -
98 -DESCRIPTION="Computer-aided number theory C library and tools"
99 -HOMEPAGE="https://pari.math.u-bordeaux.fr/"
100 -SRC_URI="https://pari.math.u-bordeaux.fr/pub/${PN}/unix/${P}.tar.gz"
101 -
102 -LICENSE="GPL-2"
103 -SLOT="0/6"
104 -KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
105 -IUSE="data doc fltk gmp test threads X"
106 -RESTRICT="!test? ( test )"
107 -
108 -BDEPEND="doc? ( virtual/latex-base )"
109 -DEPEND="
110 - sys-libs/readline:0=
111 - data? ( sci-mathematics/pari-data )
112 - doc? ( X? ( x11-misc/xdg-utils ) )
113 - fltk? ( x11-libs/fltk:1= )
114 - gmp? ( dev-libs/gmp:0= )
115 - X? ( x11-libs/libX11:0= )"
116 -RDEPEND="${DEPEND}"
117 -
118 -PATCHES=(
119 - "${FILESDIR}/${PN}"-2.9.4-strip.patch
120 - "${FILESDIR}/${PN}"-2.9.4-ppc.patch
121 - "${FILESDIR}/${PN}"-2.11.2-no-automagic.patch
122 - "${FILESDIR}/${PN}"-2.9.4-fltk-detection.patch
123 - "${FILESDIR}/${PN}"-2.11.2-Makefile-LDFLAGS.patch
124 - "${FILESDIR}/${PN}"-2.11.2-Makefile-docinstall.patch
125 - "${FILESDIR}/${PN}"-2.11.3-incorrect_bnfisunit.patch
126 -)
127 -
128 -src_prepare() {
129 - default
130 -
131 - # move doc dir to a gentoo doc dir and replace acroread by xdg-open
132 - sed -i \
133 - -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \
134 - -e 's:"acroread":"xdg-open":' \
135 - doc/gphelp.in || die "Failed to fix doc dir"
136 -}
137 -
138 -src_configure() {
139 - tc-export CC CXX
140 -
141 - # Workaraound to "asm operand has impossible constraints" as
142 - # suggested in bug #499996.
143 - use x86 && append-cflags $(test-flags-CC -fno-stack-check)
144 -
145 - # need to force optimization here, as it breaks without
146 - if is-flag -O0; then
147 - replace-flags -O0 -O2
148 - elif ! is-flag -O?; then
149 - append-flags -O2
150 - fi
151 -
152 - # sysdatadir installs a pari.cfg stuff which is informative only.
153 - # It is supposed to be for "architecture-dependent" data.
154 - # It needs to be easily discoverable for downstream packages such as gp2c.
155 - ./Configure \
156 - --prefix="${EPREFIX}"/usr \
157 - --datadir="${EPREFIX}/usr/share/${PN}" \
158 - --libdir="${EPREFIX}/usr/$(get_libdir)" \
159 - --sysdatadir="${EPREFIX}"/usr/share/pari \
160 - --mandir="${EPREFIX}"/usr/share/man/man1 \
161 - --with-readline="${EPREFIX}"/usr \
162 - --with-readline-lib="${EPREFIX}/usr/$(get_libdir)" \
163 - --with-ncurses-lib="${EPREFIX}/usr/$(get_libdir)" \
164 - $(use_with fltk) \
165 - $(use_with gmp) \
166 - --without-qt \
167 - $(usex threads "--mt=pthread" "" "" "") \
168 - || die "./Configure failed"
169 -}
170 -
171 -src_compile() {
172 - local mymake=""
173 - use hppa && \
174 - mymake=DLLD\="${EPREFIX}"/usr/bin/gcc\ DLLDFLAGS\=-shared\ -Wl,-soname=\$\(LIBPARI_SONAME\)\ -lm
175 -
176 - emake ${mymake} gp
177 -
178 - if use doc; then
179 - # To prevent sandbox violations by metafont
180 - VARTEXFONTS="${T}/fonts" emake docpdf
181 - fi
182 -}
183 -
184 -src_test() {
185 - # Welcome to the jungle, where the tests fail if you make your
186 - # terminal bigger.
187 - emake COLUMNS=80 test-all
188 -}
189 -
190 -src_install() {
191 - DOCS=( AUTHORS CHANGES* COMPAT NEW README* )
192 - default
193 -
194 - if use doc; then
195 - docompress -x "/usr/share/doc/${PF}"
196 - emake \
197 - DESTDIR="${D}" \
198 - EXDIR="${ED}/usr/share/doc/${PF}/examples" \
199 - DOCDIR="${ED}/usr/share/doc/${PF}" \
200 - install-doc
201 - fi
202 -}