Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mpfr/
Date: Fri, 01 Feb 2019 23:52:21
Message-Id: 1549065106.42bfc1363ec91a8b5a0b600858c9fa5febbc6170.blueness@gentoo
1 commit: 42bfc1363ec91a8b5a0b600858c9fa5febbc6170
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 1 23:51:46 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 1 23:51:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42bfc136
7
8 dev-libs/mpfr: version bump to 4.0.2
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-libs/mpfr/Manifest | 1 +
14 dev-libs/mpfr/mpfr-4.0.2.ebuild | 60 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/dev-libs/mpfr/Manifest b/dev-libs/mpfr/Manifest
18 index 8561fac5041..cee8cb9e963 100644
19 --- a/dev-libs/mpfr/Manifest
20 +++ b/dev-libs/mpfr/Manifest
21 @@ -8,3 +8,4 @@ DIST mpfr-3.1.5.tar.xz 1126668 BLAKE2B f902925036a4310e7b10461438bae5d5770b95ca6
22 DIST mpfr-3.1.6.tar.xz 1133672 BLAKE2B ab8b87be9d29e9ae5807976f72d65e16cd3e5b4c2ffc4e5bd7829e664250b1969a1ec3928b3519cd75365692e23eadfd413a8116f8c77d6cd66183020b72b656 SHA512 746ee74d5026f267f74ab352d850ed30ff627d530aa840c71b24793e44875f8503946bd7399905dea2b2dd5744326254d7889337fe94cfe58d03c4066e9d8054
23 DIST mpfr-4.0.0.tar.xz 1406244 BLAKE2B 2d1e356ac1f7119aa8896c438e7e30c4b316780d76fa2690e50482005e9ff5d6b5cd368d4c9a524df66ea3e7f2942c627329fa15be83402209c6e249cd1abd28 SHA512 9c9c4535f33fffd2126d1c290e5eeda7cd2804219244643f09c9a2d2acfa3d410d2cb1e4a7bb77cd86cffc2fac59c7f5d32c9910317cac37dbca474ab6d63808
24 DIST mpfr-4.0.1.tar.xz 1412692 BLAKE2B 3e8d5cf558071571c21417088e74b8cb94a2e179667af41f734a68c7bd89d4beff245b9344c4c37d2f6558036a1a8c9ad3ea5ec8fbde16d2c7ebbf37a22cf424 SHA512 137ad68bc1e33a155edc1247fcdba27f999cf48ed526773136584090ddf2cfdfc9ea79fbf74ea1943b835b4b1ff29b05087114738c6ad3b485848540f30cac4f
25 +DIST mpfr-4.0.2.tar.xz 1441996 BLAKE2B 4c1a15208c2dc3dcc1424974de506198e9cc479c70255149876c7f541133499ada5c89f07393b120b7079e6bbaf8ea03e5e496e1350b295e687392a6e0341c1c SHA512 d583555d08863bf36c89b289ae26bae353d9a31f08ee3894520992d2c26e5683c4c9c193d7ad139632f71c0a476d85ea76182702a98bf08dde7b6f65a54f8b88
26
27 diff --git a/dev-libs/mpfr/mpfr-4.0.2.ebuild b/dev-libs/mpfr/mpfr-4.0.2.ebuild
28 new file mode 100644
29 index 00000000000..02d1920bfc5
30 --- /dev/null
31 +++ b/dev-libs/mpfr/mpfr-4.0.2.ebuild
32 @@ -0,0 +1,60 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +# NOTE: we cannot depend on autotools here starting with gcc-4.3.x
39 +inherit libtool multilib-minimal preserve-libs
40 +
41 +MY_PV=${PV/_p*}
42 +MY_P=${PN}-${MY_PV}
43 +PLEVEL=${PV/*p}
44 +DESCRIPTION="library for multiple-precision floating-point computations with exact rounding"
45 +HOMEPAGE="https://www.mpfr.org/"
46 +SRC_URI="https://www.mpfr.org/mpfr-${MY_PV}/${MY_P}.tar.xz"
47 +
48 +LICENSE="LGPL-2.1"
49 +SLOT="0/6" # libmpfr.so version
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE="static-libs"
52 +
53 +RDEPEND=">=dev-libs/gmp-5.0.0[${MULTILIB_USEDEP},static-libs?]"
54 +DEPEND="${RDEPEND}"
55 +
56 +S=${WORKDIR}/${MY_P}
57 +
58 +HTML_DOCS=( doc/FAQ.html )
59 +
60 +src_prepare() {
61 + if [[ ${PLEVEL} != ${PV} ]] ; then
62 + local i
63 + for (( i = 1; i <= PLEVEL; ++i )) ; do
64 + eapply "${FILESDIR}"/${MY_PV}/patch$(printf '%02d' ${i})
65 + done
66 + fi
67 + eapply_user
68 + find . -type f -exec touch -r configure {} +
69 + elibtoolize
70 +}
71 +
72 +multilib_src_configure() {
73 + # Make sure mpfr doesn't go probing toolchains it shouldn't #476336#19
74 + ECONF_SOURCE=${S} \
75 + user_redefine_cc=yes \
76 + econf \
77 + --docdir="\$(datarootdir)/doc/${PF}" \
78 + $(use_enable static-libs static)
79 +}
80 +
81 +multilib_src_install_all() {
82 + rm "${ED}"/usr/share/doc/"${P}"/COPYING*
83 + use static-libs || find "${ED}"/usr -name '*.la' -delete
84 +}
85 +
86 +pkg_preinst() {
87 + preserve_old_lib /usr/$(get_libdir)/libmpfr$(get_libname 4)
88 +}
89 +
90 +pkg_postinst() {
91 + preserve_old_lib_notify /usr/$(get_libdir)/libmpfr$(get_libname 4)
92 +}