From 162945d2a91899b637bbb9e163b406350de12906 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 30 Oct 2021 19:43:03 +0100 Subject: gentoo resync : 30.10.2021 --- dev-libs/mpfr/mpfr-4.1.0_p13.ebuild | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 dev-libs/mpfr/mpfr-4.1.0_p13.ebuild (limited to 'dev-libs/mpfr/mpfr-4.1.0_p13.ebuild') diff --git a/dev-libs/mpfr/mpfr-4.1.0_p13.ebuild b/dev-libs/mpfr/mpfr-4.1.0_p13.ebuild new file mode 100644 index 000000000000..228e9e9a8584 --- /dev/null +++ b/dev-libs/mpfr/mpfr-4.1.0_p13.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal + +# Upstream distribute patches before a new release is made +# See https://www.mpfr.org/mpfr-current/#bugs for the latest version (and patches) +MY_PV=$(ver_cut 1-3) +MY_PATCH=$(ver_cut 5-) +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Library for multiple-precision floating-point computations with exact rounding" +HOMEPAGE="https://www.mpfr.org/" +SRC_URI="https://www.mpfr.org/${MY_P}/${MY_P}.tar.xz" +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. + my_patch_index=1 + while [[ ${my_patch_index} -lt ${MY_PATCH} ]] ; do + SRC_URI+=" " + SRC_URI+=$(printf "https://www.mpfr.org/${MY_P}/patch%02d -> ${MY_P}-patch%02d.patch " ${my_patch_index} ${my_patch_index}) + my_patch_index=$((my_patch_index+1)) + done + unset my_patch_index +fi +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1" +# 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 +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="static-libs" + +RDEPEND=">=dev-libs/gmp-5.0.0:=[${MULTILIB_USEDEP},static-libs?]" +DEPEND="${RDEPEND}" + +PATCHES=() + +if [[ ${PV} == *_p* ]] ; then + # Apply the upstream patches released out of band + PATCHES+=( "${DISTDIR}"/ ) +fi + +HTML_DOCS=( doc/FAQ.html ) + +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/"${P}"/COPYING* + + if ! use static-libs ; then + find "${ED}"/usr -name '*.la' -delete || die + fi +} -- cgit v1.2.3