svn commit: r564081 - in head/math: . mpdecimal
Steve Wills
swills at FreeBSD.org
Fri Feb 5 03:27:39 UTC 2021
Author: swills
Date: Fri Feb 5 03:27:37 2021
New Revision: 564081
URL: https://svnweb.freebsd.org/changeset/ports/564081
Log:
math/mpdecimal: create port
libmpdec is a complete C implementation of the General Decimal Arithmetic
Specification. The specification, written by Mike Cowlishaw from IBM,
defines a general purpose arbitrary precision data type together with
rigorously specified functions and rounding behavior. As described in the
scope section of the specification, libmpdec will - with minor restrictions -
also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic,
provided that the appropriate context parameters are set.
libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic
Specification. libmpdec++ is mostly a header library around libmpdec. The
library frees users from manual memory management and has an easy API with
inline operators. libmpdec++ has a thread local context for inline operators
and other functions that use the implicit context.
WWW: https://www.bytereef.org/mpdecimal/index.html
PR: 253084
Submitted by: Stefan Krah <skrah at bytereef.org>
Added:
head/math/mpdecimal/
head/math/mpdecimal/Makefile (contents, props changed)
head/math/mpdecimal/distinfo (contents, props changed)
head/math/mpdecimal/pkg-descr (contents, props changed)
head/math/mpdecimal/pkg-plist (contents, props changed)
Modified:
head/math/Makefile (contents, props changed)
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Fri Feb 5 03:22:32 2021 (r564080)
+++ head/math/Makefile Fri Feb 5 03:27:37 2021 (r564081)
@@ -420,6 +420,7 @@
SUBDIR += moab
SUBDIR += moo
SUBDIR += mpc
+ SUBDIR += mpdecimal
SUBDIR += mpexpr
SUBDIR += mpfi
SUBDIR += mpfr
Added: head/math/mpdecimal/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/mpdecimal/Makefile Fri Feb 5 03:27:37 2021 (r564081)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME= mpdecimal
+DISTVERSION= 2.5.1
+CATEGORIES= math
+MASTER_SITES= https://www.bytereef.org/software/mpdecimal/releases/
+
+MAINTAINER= skrah at bytereef.org
+COMMENT= C/C++ arbitrary precision decimal floating point libraries
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+USES= gmake
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+ALL_TARGET= default
+TEST_TARGET= check_local
+
+PORTDOCS= libmpdec++/* libmpdec/*
+
+OPTIONS_DEFINE= DOCS
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec.so.${DISTVERSION}
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec++.so.${DISTVERSION}
+
+.include <bsd.port.mk>
Added: head/math/mpdecimal/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/mpdecimal/distinfo Fri Feb 5 03:27:37 2021 (r564081)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1611939573
+SHA256 (mpdecimal-2.5.1.tar.gz) = 9f9cd4c041f99b5c49ffb7b59d9f12d95b683d88585608aa56a6307667b2b21f
+SIZE (mpdecimal-2.5.1.tar.gz) = 2584021
Added: head/math/mpdecimal/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/mpdecimal/pkg-descr Fri Feb 5 03:27:37 2021 (r564081)
@@ -0,0 +1,16 @@
+libmpdec is a complete C implementation of the General Decimal Arithmetic
+Specification. The specification, written by Mike Cowlishaw from IBM,
+defines a general purpose arbitrary precision data type together with
+rigorously specified functions and rounding behavior. As described in the
+scope section of the specification, libmpdec will - with minor restrictions -
+also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic,
+provided that the appropriate context parameters are set.
+
+libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic
+Specification. libmpdec++ is mostly a header library around libmpdec. The
+library frees users from manual memory management and has an easy API with
+inline operators. libmpdec++ has a thread local context for inline operators
+and other functions that use the implicit context.
+
+
+WWW: https://www.bytereef.org/mpdecimal/index.html
Added: head/math/mpdecimal/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/mpdecimal/pkg-plist Fri Feb 5 03:27:37 2021 (r564081)
@@ -0,0 +1,10 @@
+include/decimal.hh
+include/mpdecimal.h
+lib/libmpdec++.a
+lib/libmpdec++.so
+lib/libmpdec++.so.3
+lib/libmpdec++.so.2.5.1
+lib/libmpdec.a
+lib/libmpdec.so
+lib/libmpdec.so.3
+lib/libmpdec.so.2.5.1
More information about the svn-ports-all
mailing list