Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/riscv:master commit in: dev-libs/gmp/files/, dev-libs/mpc/, dev-libs/mpfr/, dev-libs/gmp/
Date: Fri, 11 Sep 2020 16:15:04
Message-Id: 1599840875.6202d03054621513617ea4e63485b2995e388d16.dilfridge@gentoo
1 commit: 6202d03054621513617ea4e63485b2995e388d16
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 16:14:35 2020 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 16:14:35 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=6202d030
7
8 dev-libs/*: remove copies
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 dev-libs/gmp/Manifest | 2 -
13 .../gmp/files/gmp-6.1.0-noexecstack-detect.patch | 23 -----
14 dev-libs/gmp/files/gmp-6.1.2-gcc-apple-4.0.1.patch | 21 -----
15 dev-libs/gmp/gmp-6.2.0-r1.ebuild | 105 ---------------------
16 dev-libs/gmp/metadata.xml | 15 ---
17 dev-libs/mpc/Manifest | 2 -
18 dev-libs/mpc/metadata.xml | 8 --
19 dev-libs/mpc/mpc-1.1.0-r1.ebuild | 28 ------
20 dev-libs/mpc/mpc-1.2.0.ebuild | 28 ------
21 dev-libs/mpfr/Manifest | 2 -
22 dev-libs/mpfr/metadata.xml | 8 --
23 dev-libs/mpfr/mpfr-4.0.2.ebuild | 58 ------------
24 dev-libs/mpfr/mpfr-4.1.0.ebuild | 32 -------
25 13 files changed, 332 deletions(-)
26
27 diff --git a/dev-libs/gmp/Manifest b/dev-libs/gmp/Manifest
28 deleted file mode 100644
29 index eb46a81..0000000
30 --- a/dev-libs/gmp/Manifest
31 +++ /dev/null
32 @@ -1,2 +0,0 @@
33 -DIST gmp-6.2.0.tar.xz 2012444 BLAKE2B 928141cf7b0b70f78b66e7bc52aecd39a5fc30e8865b6de6effb5b061ade05a5a51b4680ef2f36ea0d682b319d54ceb1c6c8ef93bde6c2eef2e8b826a34602c3 SHA512 a066f0456f0314a1359f553c49fc2587e484ff8ac390ff88537266a146ea373f97a1c0ba24608bf6756f4eab11c9056f103c8deb99e5b57741b4f7f0ec44b90c
34 -DIST gmp-man-6.2.0.pdf 828998 BLAKE2B 0bf56bf0a6f1aac0e1fb9a5a37552f846a2d4a01bfd3f5b5c531d42a9afc48c19552e08971785805f59e3f2a5fd89e3f986f841dca2e340813596cfd76574e61 SHA512 25d129efedd329cd2d4535557c6912191f587bfd8ef028618b4ca6199ec7bf7a9ae862e7f5e5b5448c86888452a39fc7bf95cf9c18311858dd1aa9ae1c716239
35
36 diff --git a/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch b/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch
37 deleted file mode 100644
38 index 558ba60..0000000
39 --- a/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch
40 +++ /dev/null
41 @@ -1,23 +0,0 @@
42 -gmp's -Wa,--noexecstack check is based on glibc's, so backport a change
43 -that went into it there:
44 -https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=215a87451d1fd623fd2699fa57f16f8ab6f6a2f3
45 -https://sourceware.org/bugzilla/show_bug.cgi?id=6428
46 -
47 -this is to workaround broken clang assembler that fails w/CFLAGS=-g:
48 -http://crbug.com/585930
49 -https://llvm.org/bugs/show_bug.cgi?id=11740
50 -
51 -patch has been sent upstream too:
52 -https://gmplib.org/list-archives/gmp-bugs/2016-February/003916.html
53 -
54 ---- a/configure
55 -+++ b/configure
56 -@@ -11339,7 +11339,7 @@ EOF
57 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58 - test $ac_status = 0; }; } \
59 - && grep .note.GNU-stack conftest.s >/dev/null \
60 -- && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
61 -+ && { ac_try='${CC} $ASMFLAGS -Wa,--noexecstack
62 - -c -o conftest.o conftest.s >/dev/null'
63 - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
64 - (eval $ac_try) 2>&5
65
66 diff --git a/dev-libs/gmp/files/gmp-6.1.2-gcc-apple-4.0.1.patch b/dev-libs/gmp/files/gmp-6.1.2-gcc-apple-4.0.1.patch
67 deleted file mode 100644
68 index 8960464..0000000
69 --- a/dev-libs/gmp/files/gmp-6.1.2-gcc-apple-4.0.1.patch
70 +++ /dev/null
71 @@ -1,21 +0,0 @@
72 ---- gmp-6.0.0/gmp-h.in.orig 2015-01-16 22:25:51.000000000 +0100
73 -+++ gmp-6.0.0/gmp-h.in 2015-01-16 22:26:40.000000000 +0100
74 -@@ -360,14 +360,14 @@
75 - GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
76 - inline semantics, unless -fgnu89-inline is used. */
77 - #ifdef __GNUC__
78 --#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \
79 -- || (defined __GNUC_GNU_INLINE__ && defined __cplusplus)
80 -+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
81 - #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__))
82 --#else
83 -+#define __GMP_INLINE_PROTOTYPES 1
84 -+#elif !(defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && __STDC_VERSION__ >= 199901L)
85 - #define __GMP_EXTERN_INLINE extern __inline__
86 --#endif
87 - #define __GMP_INLINE_PROTOTYPES 1
88 - #endif
89 -+#endif
90 -
91 - /* DEC C (eg. version 5.9) supports "static __inline foo()", even in -std1
92 - strict ANSI mode. Inlining is done even when not optimizing (ie. -O0
93
94 diff --git a/dev-libs/gmp/gmp-6.2.0-r1.ebuild b/dev-libs/gmp/gmp-6.2.0-r1.ebuild
95 deleted file mode 100644
96 index 4417fec..0000000
97 --- a/dev-libs/gmp/gmp-6.2.0-r1.ebuild
98 +++ /dev/null
99 @@ -1,105 +0,0 @@
100 -# Copyright 1999-2020 Gentoo Authors
101 -# Distributed under the terms of the GNU General Public License v2
102 -
103 -EAPI=7
104 -
105 -inherit flag-o-matic eutils libtool multilib-minimal toolchain-funcs
106 -
107 -MY_PV=${PV/_p*}
108 -MY_PV=${MY_PV/_/-}
109 -MY_P=${PN}-${MY_PV}
110 -PLEVEL=${PV/*p}
111 -DESCRIPTION="Library for arbitrary-precision arithmetic on different type of numbers"
112 -HOMEPAGE="https://gmplib.org/"
113 -SRC_URI="ftp://ftp.gmplib.org/pub/${MY_P}/${MY_P}.tar.xz
114 - mirror://gnu/${PN}/${MY_P}.tar.xz
115 - doc? ( https://gmplib.org/${PN}-man-${MY_PV}.pdf )"
116 -
117 -LICENSE="|| ( LGPL-3+ GPL-2+ )"
118 -# The subslot reflects the C & C++ SONAMEs.
119 -SLOT="0/10.4"
120 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
121 -IUSE="+asm doc +cxx pic static-libs"
122 -
123 -BDEPEND="sys-devel/m4
124 - app-arch/xz-utils"
125 -
126 -S=${WORKDIR}/${MY_P%a}
127 -
128 -DOCS=( AUTHORS ChangeLog NEWS README doc/configuration doc/isa_abi_headache )
129 -HTML_DOCS=( doc )
130 -MULTILIB_WRAPPED_HEADERS=( /usr/include/gmp.h )
131 -
132 -PATCHES=(
133 - "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch
134 -)
135 -
136 -src_prepare() {
137 - default
138 -
139 - # note: we cannot run autotools here as gcc depends on this package
140 - elibtoolize
141 -
142 - # https://bugs.gentoo.org/536894
143 - if [[ ${CHOST} == *-darwin* ]] ; then
144 - eapply "${FILESDIR}"/${PN}-6.1.2-gcc-apple-4.0.1.patch
145 - fi
146 -
147 - # GMP uses the "ABI" env var during configure as does Gentoo (econf).
148 - # So, to avoid patching the source constantly, wrap things up.
149 - mv configure configure.wrapped || die
150 - cat <<-\EOF > configure
151 - #!/usr/bin/env sh
152 - exec env ABI="${GMPABI}" "$0.wrapped" "$@"
153 - EOF
154 - # Patches to original configure might have lost the +x bit.
155 - chmod a+rx configure{,.wrapped} || die
156 -}
157 -
158 -multilib_src_configure() {
159 - # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
160 - # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)
161 - if [[ ${CHOST} == hppa2.0-* ]] ; then
162 - GMPABI="1.0"
163 - fi
164 -
165 - # ABI mappings (needs all architectures supported)
166 - case ${ABI} in
167 - 32|x86) GMPABI=32;;
168 - 64|amd64|n64) GMPABI=64;;
169 - [onx]32) GMPABI=${ABI};;
170 - esac
171 - export GMPABI
172 -
173 - #367719
174 - if [[ ${CHOST} == *-mint* ]]; then
175 - filter-flags -O?
176 - fi
177 -
178 - # --with-pic forces static libraries to be built as PIC
179 - # and without TEXTRELs. musl does not support TEXTRELs: bug #707332
180 - tc-export CC
181 - ECONF_SOURCE="${S}" econf \
182 - CC_FOR_BUILD="$(tc-getBUILD_CC)" \
183 - --localstatedir="${EPREFIX}"/var/state/gmp \
184 - --enable-shared \
185 - $(use_enable asm assembly) \
186 - $(use_enable cxx) \
187 - $(use pic && echo --with-pic) \
188 - $(use_enable static-libs static)
189 -}
190 -
191 -multilib_src_install() {
192 - emake DESTDIR="${D}" install
193 -
194 - # should be a standalone lib
195 - rm -f "${ED}"/usr/$(get_libdir)/libgmp.la
196 - # this requires libgmp
197 - local la="${ED}/usr/$(get_libdir)/libgmpxx.la"
198 - use static-libs || rm -f "${la}"
199 -}
200 -
201 -multilib_src_install_all() {
202 - einstalldocs
203 - use doc && cp "${DISTDIR}"/gmp-man-${MY_PV}.pdf "${ED}"/usr/share/doc/${PF}/
204 -}
205
206 diff --git a/dev-libs/gmp/metadata.xml b/dev-libs/gmp/metadata.xml
207 deleted file mode 100644
208 index 2b4236a..0000000
209 --- a/dev-libs/gmp/metadata.xml
210 +++ /dev/null
211 @@ -1,15 +0,0 @@
212 -<?xml version="1.0" encoding="UTF-8"?>
213 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
214 -<pkgmetadata>
215 -<maintainer type="project">
216 - <email>toolchain@g.o</email>
217 - <name>Gentoo Toolchain Project</name>
218 -</maintainer>
219 -<use>
220 - <flag name="asm">Enable use of hand optimized assembly routines (faster execution)</flag>
221 - <flag name="pic">Force static libraries to be built as PIC to avoid TEXTRELs.</flag>
222 -</use>
223 -<upstream>
224 - <remote-id type="cpe">cpe:/a:gmplib:gmp</remote-id>
225 -</upstream>
226 -</pkgmetadata>
227
228 diff --git a/dev-libs/mpc/Manifest b/dev-libs/mpc/Manifest
229 deleted file mode 100644
230 index 070ae4a..0000000
231 --- a/dev-libs/mpc/Manifest
232 +++ /dev/null
233 @@ -1,2 +0,0 @@
234 -DIST mpc-1.1.0.tar.gz 701263 BLAKE2B afd9fefe687b7cd3c3a483e183f366348e34f58f5d713e2f6b38da16e2e382248b446d9da01ea89fe7202b795b08929b7c42c89c2c1e9a57482faf01ee697beb SHA512 72d657958b07c7812dc9c7cbae093118ce0e454c68a585bfb0e2fa559f1bf7c5f49b93906f580ab3f1073e5b595d23c6494d4d76b765d16dde857a18dd239628
235 -DIST mpc-1.2.0.tar.gz 840711 BLAKE2B 3609d299623a722ca90d4b04ff64becaaa399a5fa40fbc43a1d027692d8fbe6f4ebd24a3c8ea963963977952d130cd3993887da7b0b0c1613a27a24dd37e5831 SHA512 84fa3338f51d369111456a63ad040256a1beb70699e21e2a932c779aa1c3bd08b201412c1659ecbb58403ea0548faacc35996d94f88f0639549269b7563c61b7
236
237 diff --git a/dev-libs/mpc/metadata.xml b/dev-libs/mpc/metadata.xml
238 deleted file mode 100644
239 index 67bd6a9..0000000
240 --- a/dev-libs/mpc/metadata.xml
241 +++ /dev/null
242 @@ -1,8 +0,0 @@
243 -<?xml version="1.0" encoding="UTF-8"?>
244 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
245 -<pkgmetadata>
246 - <maintainer type="project">
247 - <email>toolchain@g.o</email>
248 - <name>Gentoo Toolchain Project</name>
249 - </maintainer>
250 -</pkgmetadata>
251
252 diff --git a/dev-libs/mpc/mpc-1.1.0-r1.ebuild b/dev-libs/mpc/mpc-1.1.0-r1.ebuild
253 deleted file mode 100644
254 index ccf53fd..0000000
255 --- a/dev-libs/mpc/mpc-1.1.0-r1.ebuild
256 +++ /dev/null
257 @@ -1,28 +0,0 @@
258 -# Copyright 1999-2020 Gentoo Authors
259 -# Distributed under the terms of the GNU General Public License v2
260 -
261 -EAPI=6
262 -
263 -inherit multilib-minimal
264 -
265 -DESCRIPTION="A library for multiprecision complex arithmetic with exact rounding"
266 -HOMEPAGE="http://mpc.multiprecision.org/"
267 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
268 -
269 -LICENSE="LGPL-2.1"
270 -SLOT="0/3"
271 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
272 -IUSE="static-libs"
273 -
274 -DEPEND=">=dev-libs/gmp-5.0.0:0=[${MULTILIB_USEDEP},static-libs?]
275 - >=dev-libs/mpfr-3.0.0:0=[${MULTILIB_USEDEP},static-libs?]"
276 -RDEPEND="${DEPEND}"
277 -
278 -multilib_src_configure() {
279 - ECONF_SOURCE=${S} econf $(use_enable static-libs static)
280 -}
281 -
282 -multilib_src_install_all() {
283 - einstalldocs
284 - find "${D}" -name '*.la' -delete || die
285 -}
286
287 diff --git a/dev-libs/mpc/mpc-1.2.0.ebuild b/dev-libs/mpc/mpc-1.2.0.ebuild
288 deleted file mode 100644
289 index 1bdc785..0000000
290 --- a/dev-libs/mpc/mpc-1.2.0.ebuild
291 +++ /dev/null
292 @@ -1,28 +0,0 @@
293 -# Copyright 1999-2020 Gentoo Authors
294 -# Distributed under the terms of the GNU General Public License v2
295 -
296 -EAPI=7
297 -
298 -inherit multilib-minimal
299 -
300 -DESCRIPTION="A library for multiprecision complex arithmetic with exact rounding"
301 -HOMEPAGE="http://mpc.multiprecision.org/"
302 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
303 -
304 -LICENSE="LGPL-2.1"
305 -SLOT="0/3" # libmpc.so.3
306 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
307 -IUSE="static-libs"
308 -
309 -DEPEND=">=dev-libs/gmp-5.0.0:0=[${MULTILIB_USEDEP},static-libs?]
310 - >=dev-libs/mpfr-4.1.0:0=[${MULTILIB_USEDEP},static-libs?]"
311 -RDEPEND="${DEPEND}"
312 -
313 -multilib_src_configure() {
314 - ECONF_SOURCE=${S} econf $(use_enable static-libs static)
315 -}
316 -
317 -multilib_src_install_all() {
318 - einstalldocs
319 - find "${D}" -name '*.la' -delete || die
320 -}
321
322 diff --git a/dev-libs/mpfr/Manifest b/dev-libs/mpfr/Manifest
323 deleted file mode 100644
324 index de6556d..0000000
325 --- a/dev-libs/mpfr/Manifest
326 +++ /dev/null
327 @@ -1,2 +0,0 @@
328 -DIST mpfr-4.0.2.tar.xz 1441996 BLAKE2B 4c1a15208c2dc3dcc1424974de506198e9cc479c70255149876c7f541133499ada5c89f07393b120b7079e6bbaf8ea03e5e496e1350b295e687392a6e0341c1c SHA512 d583555d08863bf36c89b289ae26bae353d9a31f08ee3894520992d2c26e5683c4c9c193d7ad139632f71c0a476d85ea76182702a98bf08dde7b6f65a54f8b88
329 -DIST mpfr-4.1.0.tar.xz 1525476 BLAKE2B 41d1be0c4b557760f12a4525ad3a84b6e2cd6f0927c935fcfba577ac0490e582d1ae4b581dce58e21e705cf9d7c88373054d7fb7a94bb32c69b339f99a25dc68 SHA512 1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273
330
331 diff --git a/dev-libs/mpfr/metadata.xml b/dev-libs/mpfr/metadata.xml
332 deleted file mode 100644
333 index e396f37..0000000
334 --- a/dev-libs/mpfr/metadata.xml
335 +++ /dev/null
336 @@ -1,8 +0,0 @@
337 -<?xml version="1.0" encoding="UTF-8"?>
338 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
339 -<pkgmetadata>
340 -<maintainer type="project">
341 - <email>toolchain@g.o</email>
342 - <name>Gentoo Toolchain Project</name>
343 -</maintainer>
344 -</pkgmetadata>
345
346 diff --git a/dev-libs/mpfr/mpfr-4.0.2.ebuild b/dev-libs/mpfr/mpfr-4.0.2.ebuild
347 deleted file mode 100644
348 index b5731b6..0000000
349 --- a/dev-libs/mpfr/mpfr-4.0.2.ebuild
350 +++ /dev/null
351 @@ -1,58 +0,0 @@
352 -# Copyright 1999-2020 Gentoo Authors
353 -# Distributed under the terms of the GNU General Public License v2
354 -
355 -EAPI=6
356 -
357 -# NOTE: we cannot depend on autotools here starting with gcc-4.3.x
358 -inherit libtool multilib-minimal preserve-libs
359 -
360 -MY_PV=${PV/_p*}
361 -MY_P=${PN}-${MY_PV}
362 -PLEVEL=${PV/*p}
363 -DESCRIPTION="library for multiple-precision floating-point computations with exact rounding"
364 -HOMEPAGE="https://www.mpfr.org/"
365 -SRC_URI="https://www.mpfr.org/mpfr-${MY_PV}/${MY_P}.tar.xz"
366 -
367 -LICENSE="LGPL-2.1"
368 -SLOT="0/6" # libmpfr.so version
369 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
370 -IUSE="static-libs"
371 -
372 -RDEPEND=">=dev-libs/gmp-5.0.0[${MULTILIB_USEDEP},static-libs?]"
373 -DEPEND="${RDEPEND}"
374 -
375 -S=${WORKDIR}/${MY_P}
376 -
377 -HTML_DOCS=( doc/FAQ.html )
378 -
379 -src_prepare() {
380 - if [[ ${PLEVEL} != ${PV} ]] ; then
381 - local i
382 - for (( i = 1; i <= PLEVEL; ++i )) ; do
383 - eapply "${FILESDIR}"/${MY_PV}/patch$(printf '%02d' ${i})
384 - done
385 - fi
386 - eapply_user
387 - find . -type f -exec touch -r configure {} +
388 - elibtoolize
389 -}
390 -
391 -multilib_src_configure() {
392 - # Make sure mpfr doesn't go probing toolchains it shouldn't #476336#19
393 - ECONF_SOURCE=${S} \
394 - user_redefine_cc=yes \
395 - econf $(use_enable static-libs static)
396 -}
397 -
398 -multilib_src_install_all() {
399 - rm "${ED}"/usr/share/doc/"${P}"/COPYING*
400 - use static-libs || find "${ED}"/usr -name '*.la' -delete
401 -}
402 -
403 -pkg_preinst() {
404 - preserve_old_lib /usr/$(get_libdir)/libmpfr$(get_libname 4)
405 -}
406 -
407 -pkg_postinst() {
408 - preserve_old_lib_notify /usr/$(get_libdir)/libmpfr$(get_libname 4)
409 -}
410
411 diff --git a/dev-libs/mpfr/mpfr-4.1.0.ebuild b/dev-libs/mpfr/mpfr-4.1.0.ebuild
412 deleted file mode 100644
413 index bb16255..0000000
414 --- a/dev-libs/mpfr/mpfr-4.1.0.ebuild
415 +++ /dev/null
416 @@ -1,32 +0,0 @@
417 -# Copyright 1999-2020 Gentoo Authors
418 -# Distributed under the terms of the GNU General Public License v2
419 -
420 -EAPI=7
421 -
422 -inherit multilib-minimal
423 -
424 -DESCRIPTION="library for multiple-precision floating-point computations with exact rounding"
425 -HOMEPAGE="https://www.mpfr.org/"
426 -SRC_URI="https://www.mpfr.org/mpfr-${PV}/${P}.tar.xz"
427 -
428 -LICENSE="LGPL-2.1"
429 -SLOT="0/6" # libmpfr.so version
430 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv s390 sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
431 -IUSE="static-libs"
432 -
433 -RDEPEND=">=dev-libs/gmp-5.0.0[${MULTILIB_USEDEP},static-libs?]"
434 -DEPEND="${RDEPEND}"
435 -
436 -HTML_DOCS=( doc/FAQ.html )
437 -
438 -multilib_src_configure() {
439 - # Make sure mpfr doesn't go probing toolchains it shouldn't #476336#19
440 - ECONF_SOURCE=${S} \
441 - user_redefine_cc=yes \
442 - econf $(use_enable static-libs static)
443 -}
444 -
445 -multilib_src_install_all() {
446 - rm "${ED}"/usr/share/doc/"${P}"/COPYING*
447 - use static-libs || find "${ED}"/usr -name '*.la' -delete
448 -}