Mon Jan 9 13:25:12 2023 UTC ()
mpfr: update to 4.2.0.

Changes from versions 4.1.* to version 4.2.0:
- The "fondue savoyarde" release.
- Binary compatible with MPFR 4.0.* and 4.1.*, though some minor changes in
  the behavior of the formatted output functions may be visible, regarded
  as underspecified behavior or bug fixes (see below).
- New functions mpfr_cosu, mpfr_sinu, mpfr_tanu, mpfr_acosu, mpfr_asinu,
  mpfr_atanu and mpfr_atan2u.
- New functions mpfr_cospi, mpfr_sinpi, mpfr_tanpi, mpfr_acospi, mpfr_asinpi,
  mpfr_atanpi and mpfr_atan2pi.
- New functions mpfr_log2p1, mpfr_log10p1, mpfr_exp2m1, mpfr_exp10m1 and
  mpfr_compound_si.
- New functions mpfr_fmod_ui, mpfr_powr, mpfr_pown, mpfr_pow_uj, mpfr_pow_sj
  and mpfr_rootn_si (mpfr_pown is actually a macro defined as an alias for
  mpfr_pow_sj).
- Bug fixes.
  In particular, for the formatted output functions (mpfr_printf, etc.),
  the case where the precision consists only of a period has been fixed
  to be like ".0" as specified in the ISO C standard, and the manual has
  been corrected and clarified.
  The macros of the custom interface have also been fixed: they now behave
  like functions (except a minor limitation for mpfr_custom_init_set).


(wiz)
diff -r1.46 -r1.47 pkgsrc/math/mpfr/Makefile
diff -r1.7 -r1.8 pkgsrc/math/mpfr/builtin.mk
diff -r1.33 -r1.34 pkgsrc/math/mpfr/distinfo
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-VERSION
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-src_mpfr.h
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-src_version.c
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-tests_tstckintc.c

cvs diff -r1.46 -r1.47 pkgsrc/math/mpfr/Makefile (expand / switch to context diff)
--- pkgsrc/math/mpfr/Makefile 2022/11/27 03:17:13 1.46
+++ pkgsrc/math/mpfr/Makefile 2023/01/09 13:25:11 1.47
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2022/11/27 03:17:13 mef Exp $
+# $NetBSD: Makefile,v 1.47 2023/01/09 13:25:11 wiz Exp $
 
-DISTNAME=	mpfr-4.1.1
-PKGREVISION=	1
+DISTNAME=	mpfr-4.2.0
 CATEGORIES=	math
 MASTER_SITES=	http://www.mpfr.org/${DISTNAME}/
 EXTRACT_SUFX=	.tar.bz2
@@ -14,7 +13,7 @@
 USE_LIBTOOL=		yes
 GNU_CONFIGURE=		yes
 .include "../../mk/bsd.prefs.mk"
-.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*) || !empty(MACHINE_PLATFORM:MDragonFly-[0-5]*-*)
+.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*)
 CONFIGURE_ARGS+=        --disable-float128
 .endif
 TEST_TARGET=		check

cvs diff -r1.7 -r1.8 pkgsrc/math/mpfr/builtin.mk (expand / switch to context diff)
--- pkgsrc/math/mpfr/builtin.mk 2020/09/03 08:58:42 1.7
+++ pkgsrc/math/mpfr/builtin.mk 2023/01/09 13:25:11 1.8
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.7 2020/09/03 08:58:42 prlw1 Exp $
+# $NetBSD: builtin.mk,v 1.8 2023/01/09 13:25:11 wiz Exp $
 
 BUILTIN_PKG:=	mpfr
 
@@ -29,7 +29,7 @@
 ### a package name to represent the built-in package.
 ###
 .if !defined(BUILTIN_PKG.mpfr) && \
-    !empty(IS_BUILTIN.mpfr:M[yY][eE][sS]) && \
+    ${IS_BUILTIN.mpfr:tl} == yes && \
     empty(H_MPFR:M__nonexistent__)
 BUILTIN_VERSION.mpfr!=	${BUILTIN_VERSION_SCRIPT.mpfr} ${H_MPFR}
 BUILTIN_PKG.mpfr=	mpfr-${BUILTIN_VERSION.mpfr}
@@ -45,10 +45,10 @@
 USE_BUILTIN.mpfr=	no
 .  else
 USE_BUILTIN.mpfr=	${IS_BUILTIN.mpfr}
-.    if defined(BUILTIN_PKG.mpfr) && !empty(IS_BUILTIN.mpfr:M[yY][eE][sS])
+.    if defined(BUILTIN_PKG.mpfr) && ${IS_BUILTIN.mpfr:tl} == yes
 USE_BUILTIN.mpfr=	yes
 .      for _dep_ in ${BUILDLINK_API_DEPENDS.mpfr}
-.        if !empty(USE_BUILTIN.mpfr:M[yY][eE][sS])
+.        if ${USE_BUILTIN.mpfr:tl} == yes
 USE_BUILTIN.mpfr!=	\
 	if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mpfr:Q}; then	\
 		${ECHO} yes;						\
@@ -63,8 +63,8 @@
 MAKEVARS+=		USE_BUILTIN.mpfr
 
 CHECK_BUILTIN.mpfr?=	no
-.if !empty(CHECK_BUILTIN.mpfr:M[Nn][Oo])
-.  if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss])
+.if ${CHECK_BUILTIN.mpfr:tl} == no
+.  if ${USE_BUILTIN.mpfr:tl} == yes
 MPFR_INCLUDE=		${H_MPFR:H}
 BUILDLINK_INCDIRS.mpfr=	${MPFR_INCLUDE}
 BUILDLINK_LIBDIRS.mpfr=	lib${LIBABISUFFIX}

cvs diff -r1.33 -r1.34 pkgsrc/math/mpfr/distinfo (expand / switch to context diff)
--- pkgsrc/math/mpfr/distinfo 2022/11/27 03:17:13 1.33
+++ pkgsrc/math/mpfr/distinfo 2023/01/09 13:25:11 1.34
@@ -1,9 +1,5 @@
-$NetBSD: distinfo,v 1.33 2022/11/27 03:17:13 mef Exp $
+$NetBSD: distinfo,v 1.34 2023/01/09 13:25:11 wiz Exp $
 
-BLAKE2s (mpfr-4.1.1.tar.bz2) = 2a859b41cc4482c530b020cfc9fe434db6fe8c6297c8bb104b7ed2c47de71b06
+BLAKE2s (mpfr-4.2.0.tar.bz2) = caeeb2c1c9de21db358bc6f02bb789b935d10ed6b73ab73569e1e3f6666378c5
-SHA512 (mpfr-4.1.1.tar.bz2) = f0efefbfc4dec367cdab6299272062508ec80d53daa779fe05954cd626983277039a10d9d072ae686584f6ce75014ef2136e3f095128fa21fc994f7c6f33d674
+SHA512 (mpfr-4.2.0.tar.bz2) = cb2a9314b94e34a4ea49ce2619802e9420c982e55258a4bc423f802740632646a3d420e7fcf373b19618385b8b2b412abfa127e8f473053863424cac233893c0
-Size (mpfr-4.1.1.tar.bz2) = 1658183 bytes
+Size (mpfr-4.2.0.tar.bz2) = 1695616 bytes
-SHA1 (patch-VERSION) = 06d1fa35bbdeee9e860cfaa66e7e358014e5a05d
-SHA1 (patch-src_mpfr.h) = b8604763eaa2918053b9edceee509f9c7324fb82
-SHA1 (patch-src_version.c) = 8ff9100b82156c6ab23dab3d83c83f52e2eae11e
-SHA1 (patch-tests_tstckintc.c) = c106eaac3c4c69ff02202fecd726c528f8dae772

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-VERSION

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-src_mpfr.h

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-src_version.c

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-tests_tstckintc.c