Tue May 19 14:44:04 2020 UTC ()
mpfi: Import mpfr-1.5.4 as math/mpfr

mpfr is a multiprecision floating-point interval arithmetic library.

Derived from wip/mpfi.


(riastradh)
diff -r1.459 -r1.460 pkgsrc/math/Makefile
diff -r0 -r1.1 pkgsrc/math/mpfi/DESCR
diff -r0 -r1.1 pkgsrc/math/mpfi/Makefile
diff -r0 -r1.1 pkgsrc/math/mpfi/PLIST
diff -r0 -r1.1 pkgsrc/math/mpfi/buildlink3.mk
diff -r0 -r1.1 pkgsrc/math/mpfi/distinfo
diff -r0 -r1.1 pkgsrc/math/mpfi/patches/patch-tests_Makefile.am

cvs diff -r1.459 -r1.460 pkgsrc/math/Makefile (expand / switch to unified diff)

--- pkgsrc/math/Makefile 2020/04/27 16:52:55 1.459
+++ pkgsrc/math/Makefile 2020/05/19 14:44:04 1.460
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.459 2020/04/27 16:52:55 adam Exp $ 1# $NetBSD: Makefile,v 1.460 2020/05/19 14:44:04 riastradh Exp $
2 2
3COMMENT= Mathematics 3COMMENT= Mathematics
4 4
5SUBDIR+= R 5SUBDIR+= R
6SUBDIR+= R-CGIwithR 6SUBDIR+= R-CGIwithR
7SUBDIR+= R-DAAG 7SUBDIR+= R-DAAG
8SUBDIR+= R-DBI 8SUBDIR+= R-DBI
9SUBDIR+= R-DEoptimR 9SUBDIR+= R-DEoptimR
10SUBDIR+= R-FNN 10SUBDIR+= R-FNN
11SUBDIR+= R-Formula 11SUBDIR+= R-Formula
12SUBDIR+= R-GRASS 12SUBDIR+= R-GRASS
13SUBDIR+= R-ISLR 13SUBDIR+= R-ISLR
14SUBDIR+= R-ISwR 14SUBDIR+= R-ISwR
@@ -219,26 +219,27 @@ SUBDIR+= libshorttext @@ -219,26 +219,27 @@ SUBDIR+= libshorttext
219SUBDIR+= libsvm 219SUBDIR+= libsvm
220SUBDIR+= linpack 220SUBDIR+= linpack
221SUBDIR+= lp_solve 221SUBDIR+= lp_solve
222SUBDIR+= ltm 222SUBDIR+= ltm
223SUBDIR+= mapm 223SUBDIR+= mapm
224SUBDIR+= mathomatic 224SUBDIR+= mathomatic
225SUBDIR+= maxima 225SUBDIR+= maxima
226SUBDIR+= mcsim 226SUBDIR+= mcsim
227SUBDIR+= meschach 227SUBDIR+= meschach
228SUBDIR+= metis 228SUBDIR+= metis
229SUBDIR+= minisat 229SUBDIR+= minisat
230SUBDIR+= minpack 230SUBDIR+= minpack
231SUBDIR+= mpcomplex 231SUBDIR+= mpcomplex
 232SUBDIR+= mpfi
232SUBDIR+= mpfr 233SUBDIR+= mpfr
233SUBDIR+= mprime-bin 234SUBDIR+= mprime-bin
234SUBDIR+= mtl 235SUBDIR+= mtl
235SUBDIR+= muparser 236SUBDIR+= muparser
236SUBDIR+= newmat 237SUBDIR+= newmat
237SUBDIR+= nickle 238SUBDIR+= nickle
238SUBDIR+= nlopt 239SUBDIR+= nlopt
239SUBDIR+= ntl 240SUBDIR+= ntl
240SUBDIR+= ocaml-num 241SUBDIR+= ocaml-num
241SUBDIR+= ocaml-zarith 242SUBDIR+= ocaml-zarith
242SUBDIR+= octave 243SUBDIR+= octave
243SUBDIR+= odepack 244SUBDIR+= odepack
244SUBDIR+= openaxiom 245SUBDIR+= openaxiom

File Added: pkgsrc/math/mpfi/DESCR
MPFI (Multiple Precision Floating-Point Interval Library) is a library
for arbitrary precision interval arithmetic with intervals represented
using MPFR reliable floating-point numbers. It is based on the GNU MP
library and on the MPFR library. The purpose of an arbitrary precision
interval arithmetic is on the one hand to get guaranteed results,
thanks to interval computation, and on the other hand to obtain
accurate results, thanks to multiple precision arithmetic. The MPFI
library is built upon MPFR to benefit from the correct roundings
provided by MPFR, it portability, and its compliance with the IEEE 754
standard for floating-point arithmetic.

File Added: pkgsrc/math/mpfi/Makefile
# $NetBSD: Makefile,v 1.1 2020/05/19 14:44:04 riastradh Exp $

DISTNAME=	mpfi-1.5.4
CATEGORIES=	math
MASTER_SITES=	https://gforge.inria.fr/frs/download.php/file/38111/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://gforge.inria.fr/projects/mpfi/
COMMENT=	Multiprecision interval arithmetic library
LICENSE=	gnu-lgpl-v2

USE_TOOLS+=	autoconf
USE_TOOLS+=	automake
USE_TOOLS+=	autoreconf
GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
INFO_FILES=	yes

CONFIGURE_ARGS+=	--infodir=${PREFIX}/${PKGINFODIR}
INSTALLATION_DIRS+=	${PKGINFODIR}

pre-configure:
	cd ${WRKSRC} && ./autogen.sh

TEST_TARGET=	check

.include "../../math/mpfr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/math/mpfi/PLIST
@comment $NetBSD: PLIST,v 1.1 2020/05/19 14:44:04 riastradh Exp $
include/mpfi.h
include/mpfi_io.h
info/mpfi.info
lib/libmpfi.la

File Added: pkgsrc/math/mpfi/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1 2020/05/19 14:44:04 riastradh Exp $

BUILDLINK_TREE+=	mpfi

.if !defined(MPFI_BUILDLINK3_MK)
MPFI_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.mpfi+=	mpfi>=1.5.4
BUILDLINK_ABI_DEPENDS.mpfi+=	mpfi>=1.5.4
BUILDLINK_PKGSRCDIR.mpfi?=	../../math/mpfi

.include "../../math/mpfr/buildlink3.mk"
.endif # MPFI_BUILDLINK3_MK

BUILDLINK_TREE+=	-mpfi

File Added: pkgsrc/math/mpfi/distinfo
$NetBSD: distinfo,v 1.1 2020/05/19 14:44:04 riastradh Exp $

SHA1 (mpfi-1.5.4.tgz) = 06c7dc6f13e67ab199fefcfdc15328ea9fc82dcb
RMD160 (mpfi-1.5.4.tgz) = a03c5ac685f844badf95d7b006ca7ede8b7e2759
SHA512 (mpfi-1.5.4.tgz) = 72ba7d8c950f4d4e2c7a3da8570cdcec08f75b73580cdf64c4cc3b24f8add23c46ccf78a6de2158e81bd77e6efabceebbae418988d536e7484356b8102e10ce1
Size (mpfi-1.5.4.tgz) = 261696 bytes
SHA1 (patch-tests_Makefile.am) = d0c41610b684c8d6e1862baed7157e40f551c469

File Added: pkgsrc/math/mpfi/patches/patch-tests_Makefile.am
$NetBSD: patch-tests_Makefile.am,v 1.1 2020/05/19 14:44:04 riastradh Exp $

Disable tests that are missing from the upstream distfile or fail to build.

--- tests/Makefile.am.orig	2019-08-01 20:15:53.000000000 +0000
+++ tests/Makefile.am
@@ -3,7 +3,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src
 
 check_LTLIBRARIES = libmpfi-tests.la
 libmpfi_tests_la_SOURCES = mpfi-tests.h read_data.c random.c	\
-    type_i.c type_ii.c type_iii.c type_iiii.c type_iu.c type_is.c		\
+    type_i.c type_ii.c type_iii.c type_iu.c type_is.c		\
     type_id.c type_if.c type_il.c type_iz.c type_iq.c type_ir.c type_iiu.c		\
     type_iis.c type_iid.c type_iiz.c type_iiq.c type_iir.c	\
     type_iui.c type_isi.c type_idi.c type_izi.c type_iqi.c	\
@@ -40,7 +40,7 @@ check_PROGRAMS = tabs tacos tacosh tadd 
     tcmp_fr tcmp_q tcmp_si tcmp_ui tcmp_z tconst_catalan	\
     tconst_euler tconst_log2 tconst_pi tcos tcosh tcot tcoth	\
     tcsc tcsch td_div td_sub tdiam tdiam_abs tdiam_rel tdiv	\
-    tdiv_2exp tdiv_2si tdiv_2ui tdiv_d tdiv_ext tdiv_fr tdiv_q	\
+    tdiv_2exp tdiv_2si tdiv_2ui tdiv_d tdiv_fr tdiv_q	\
     tdiv_si tdiv_ui tdiv_z terror texp texp2 texpm1 tfr_div	\
     tfr_sub tget_d tget_endpoints tget_fr thas_zero thypot	\
     tincrease tinf_p tinit tinits tinit_set tintersect tinterv_d	\
@@ -52,7 +52,7 @@ check_PROGRAMS = tabs tacos tacosh tadd 
     tis_zero tlog tlog10 tlog1p tlog2 tmag tmid tmig tmul	\
     tmul_2exp tmul_2si tmul_2ui tmul_d tmul_fr tmul_q		\
     tmul_si tmul_ui tmul_z tnan_p tneg tput_d tput_fr tput_q	\
-    tput_si tput_ui tput_z tq_div tq_sub trec_sqrt tround_prec	\
+    tput_si tput_ui tput_z tq_div tq_sub tround_prec	\
     tsec tsech tset tset_d tset_flt tset_fr tset_ld tset_q	\
     tset_si tset_str tset_ui tset_z tsi_div tsi_sub tsin tsinh	\
     tsqr tsqrt							\