diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-22 00:31:30 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-22 00:31:30 +0000 |
commit | 6fe1dafaa446d9bc41dea28a43551fffa73f6b87 (patch) | |
tree | c6ef70a96add765cc1bfc88ac4d1ece5595cc9bf /dev-libs/mpfr | |
parent | ae832415103492f73a8351ed7a91cb596392d779 (diff) |
gentoo auto-resync : 22:03:2025 - 00:31:29
Diffstat (limited to 'dev-libs/mpfr')
-rw-r--r-- | dev-libs/mpfr/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/mpfr/mpfr-4.2.2.ebuild | 98 |
2 files changed, 101 insertions, 0 deletions
diff --git a/dev-libs/mpfr/Manifest b/dev-libs/mpfr/Manifest index 541b0b5ff289..847844cf32bb 100644 --- a/dev-libs/mpfr/Manifest +++ b/dev-libs/mpfr/Manifest @@ -1,4 +1,7 @@ DIST mpfr-4.2.1.tar.xz 1493608 BLAKE2B ad69f53bc910294647523e7613b18a683f1d0f3dd994168ab2a46b66d0371ffa9b8e7cb59495f898470aea69d343e83fc722f11babe4af7b3a12665a1e65860c SHA512 bc68c0d755d5446403644833ecbb07e37360beca45f474297b5d5c40926df1efc3e2067eecffdf253f946288bcca39ca89b0613f545d46a9e767d1d4cf358475 DIST mpfr-4.2.1.tar.xz.asc 228 BLAKE2B a50ccf4136c3b460b15540364a49dec05da266a77bce6220832262581fa57cc1e70b7739ea4fdf2e8ad4fd3318151b8c420b09597942493d95e6276f380debfd SHA512 2f409f2a93726fba086882de3ad26d0bcb5d78afc687e44550bf55a98b940ff0d355a655aa18da78bfa2581ef37d72cb630d7642de7ec70590ec80044b3dbe38 +DIST mpfr-4.2.2.tar.xz 1505596 BLAKE2B 6bbf5658e70fbb673a3b65246a6bac708d1571aa6943c6742efd92f468ac71e6f0fe351b757f7133440ea312d9a5fc3549acd89d54f4d975c58bdc204d7b21ec SHA512 eb9e7f51b5385fb349cc4fba3a45ffdf0dd53be6dfc74932dc01258158a10514667960c530c47dd9dfc5aa18be2bd94859d80499844c5713710581e6ac6259a9 +DIST mpfr-4.2.2.tar.xz.asc 228 BLAKE2B 9e43ca847d140f78d658b108a699eeb34817c65f60e513a5540450444ae87fc4a087e71c4590b246db6fad253f1c3593c54935200ef22125ac7d514e590dc158 SHA512 ca6ff27d4ac3ac66735cd0b61e1e958217a2d7a4b30abccfda5e49c228bf594a722878992a1816a8f2531c3420aab6f8cdd3d60fd36a66765e9070e901ceac9d EBUILD mpfr-4.2.1.ebuild 3141 BLAKE2B 9522fa7b06d670abf56c4d0646b0ed26a31d3266380af37b01abd7da33c40edec13e31b18dfb795146bd086cd8a42dd0981cf2fe78fb73e1cd23371004863a78 SHA512 6150a360be902ad744db9b91c59d9981adfd1022a62940b24f7d3386faecb6aa9e50924a19e15ea67f5f008d5e790ca800c4cf47a34755d629d13b5f4ac24ed8 +EBUILD mpfr-4.2.2.ebuild 3149 BLAKE2B 8867624ba2443bbed798fe32bdd7fe1b365de3a52a8371fc8a245b3d3df781c51dca101b818564ea785531de1dc6bd66a3acfa569afa473233b56e78123a0e58 SHA512 ac6a2fb929b6e73823444e7230bf2e625d797039abdc3ac794b5d6805632b624896eabebfccb4a1215d6b5d96968e115f74de9598b35e09b57031ffcc5bb54a8 MISC metadata.xml 344 BLAKE2B b7a0bcfbcf945ce2b6d58a9a2078c823c12de5ef8261ec009612b58a833deecb7caaf864f0b55e0c46aac004c58feb7a1f88f6d78b584c2e25c403cfb1de96a0 SHA512 8b8b5ae00a4f9ba76c193c5d84f27cce973963f4db109219394efccba3a8e8bebb7f241658a0b682331e34c66ee99332f871d826abf6ec5a4ced4f3dce381fe9 diff --git a/dev-libs/mpfr/mpfr-4.2.2.ebuild b/dev-libs/mpfr/mpfr-4.2.2.ebuild new file mode 100644 index 000000000000..517dda5ddc4e --- /dev/null +++ b/dev-libs/mpfr/mpfr-4.2.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/vincentlefevre.asc +inherit multilib-minimal verify-sig + +# Upstream distribute patches before a new release is made +# See https://www.mpfr.org/mpfr-current/#bugs for the latest version (and patches) + +# Check whether any patches touch e.g. manuals! +# https://archives.gentoo.org/gentoo-releng-autobuilds/message/c2dd39fc4ebc849db6bb0f551739e2ed +MY_PV=${PV%%_p*} +MY_PATCH=$(ver_cut 5-) +MY_PATCHES=() +MY_P=${PN}-${MY_PV/_/-} + +DESCRIPTION="Library for multiple-precision floating-point computations with exact rounding" +HOMEPAGE="https://www.mpfr.org/ https://gitlab.inria.fr/mpfr" +SRC_URI="https://www.mpfr.org/${PN}-$(ver_cut 1-3)/${MY_P}.tar.xz" +SRC_URI+=" verify-sig? ( https://www.mpfr.org/${PN}-$(ver_cut 1-3)/${MY_P}.tar.xz.asc )" + +if [[ ${PV} == *_p* ]] ; then + # If this is a patch release, we have to download each of the patches: + # -_pN = N patches + # - patch file names are like: patch01, patch02, ..., patch10, patch12, .. + # + # => name the ebuild _pN where N is the number of patches on the 'bugs' page. + patch_url_base="https://www.mpfr.org/${MY_P}" + my_patch_index= + + for ((my_patch_index=1; my_patch_index <= MY_PATCH ; my_patch_index++)) ; do + printf -v mangled_patch_ver "patch%02d" "${my_patch_index}" + + SRC_URI+=" ${patch_url_base}/${mangled_patch_ver} -> ${MY_P}-${mangled_patch_ver}.patch" + + MY_PATCHES+=( "${DISTDIR}"/${MY_P}-${mangled_patch_ver}.patch ) + done + + unset patch_url_base my_patch_index mangled_patch_ver +fi + +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-3+" +# This is a critical package; if SONAME changes, bump subslot but also add +# preserve-libs.eclass usage to pkg_*inst! See e.g. the readline ebuild. +SLOT="0/6" # libmpfr.so version +if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +fi +IUSE="static-libs" + +RDEPEND=">=dev-libs/gmp-5.0.0:=[${MULTILIB_USEDEP},static-libs?]" +DEPEND="${RDEPEND}" +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-vincentlefevre )" + +PATCHES=( + # Apply the upstream patches released out-of-band; generated above + "${MY_PATCHES[@]}" + + # Additional patches +) + +HTML_DOCS=( doc/FAQ.html ) + +src_unpack() { + use verify-sig && verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc} + + # Avoid src_unpack noise from patches + unpack ${MY_P}.tar.xz +} + +src_prepare() { + default + + # 4.1.0_p13's patch10 patches a .texi file *and* the corresponding + # info file. We need to make sure the info file is newer, so the + # build doesn't try to run makeinfo. Won't be needed on next release. + #touch "${S}/doc/mpfr.info" || die +} + +multilib_src_configure() { + # bug #476336#19 + # Make sure mpfr doesn't go probing toolchains it shouldn't + ECONF_SOURCE="${S}" \ + user_redefine_cc=yes \ + econf $(use_enable static-libs static) +} + +multilib_src_install_all() { + rm "${ED}"/usr/share/doc/${PF}/COPYING* || die + + if ! use static-libs ; then + find "${ED}"/usr -name '*.la' -delete || die + fi +} |