pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

New package, mpdecimal.



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By:	bsiegert
Date:		Fri Jan 21 17:57:47 2022 +0100
Changeset:	862c483ab461cdfc93d0550b7279210e3b1005a5

Modified Files:
	Makefile
Added Files:
	mpdecimal/DESCR
	mpdecimal/Makefile
	mpdecimal/PLIST
	mpdecimal/TODO
	mpdecimal/distinfo

Log Message:
New package, mpdecimal.

From Stefan Krah in PR pkg/56019.

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=862c483ab461cdfc93d0550b7279210e3b1005a5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile           |  1 +
 mpdecimal/DESCR    | 13 +++++++++++
 mpdecimal/Makefile | 22 ++++++++++++++++++
 mpdecimal/PLIST    | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mpdecimal/TODO     |  2 ++
 mpdecimal/distinfo |  5 ++++
 6 files changed, 110 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 503164f0ab..9eafeae0cc 100644
--- a/Makefile
+++ b/Makefile
@@ -2457,6 +2457,7 @@ SUBDIR+=	mp3chop
 SUBDIR+=	mpb
 SUBDIR+=	mpb-openmpi
 SUBDIR+=	mpc-el
+SUBDIR+=	mpdecimal
 SUBDIR+=	mpg123-jack
 SUBDIR+=	mpg123-svn
 SUBDIR+=	mpgedit
diff --git a/mpdecimal/DESCR b/mpdecimal/DESCR
new file mode 100644
index 0000000000..2fc79e3087
--- /dev/null
+++ b/mpdecimal/DESCR
@@ -0,0 +1,13 @@
+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.
diff --git a/mpdecimal/Makefile b/mpdecimal/Makefile
new file mode 100644
index 0000000000..8e7a545473
--- /dev/null
+++ b/mpdecimal/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+DISTNAME=	mpdecimal-2.5.1
+CATEGORIES=	math
+MASTER_SITES=	https://www.bytereef.org/software/mpdecimal/releases/
+
+MAINTAINER=	skrah%bytereef.org@localhost
+HOMEPAGE=	https://www.bytereef.org/mpdecimal/
+COMMENT=	C/C++ arbitrary precision decimal floating point libraries
+LICENSE=	2-clause-bsd
+
+GNU_CONFIGURE=	yes
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	gmake
+BUILD_TARGET=	default
+TEST_TARGET=	check_local
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+=	CC=gcc CXX=g++
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mpdecimal/PLIST b/mpdecimal/PLIST
new file mode 100644
index 0000000000..c836db76e1
--- /dev/null
+++ b/mpdecimal/PLIST
@@ -0,0 +1,67 @@
+@comment $NetBSD$
+include/decimal.hh
+include/mpdecimal.h
+lib/libmpdec++.a
+lib/libmpdec++.so
+lib/libmpdec++.so.2.5.1
+lib/libmpdec++.so.3
+lib/libmpdec.a
+lib/libmpdec.so
+lib/libmpdec.so.2.5.1
+lib/libmpdec.so.3
+share/doc/mpdecimal/libmpdec++/README.txt
+share/doc/mpdecimal/libmpdec++/_static/basic.css
+share/doc/mpdecimal/libmpdec++/_static/classic.css
+share/doc/mpdecimal/libmpdec++/_static/default.css
+share/doc/mpdecimal/libmpdec++/_static/doctools.js
+share/doc/mpdecimal/libmpdec++/_static/documentation_options.js
+share/doc/mpdecimal/libmpdec++/_static/file.png
+share/doc/mpdecimal/libmpdec++/_static/jquery-3.4.1.js
+share/doc/mpdecimal/libmpdec++/_static/jquery.js
+share/doc/mpdecimal/libmpdec++/_static/language_data.js
+share/doc/mpdecimal/libmpdec++/_static/minus.png
+share/doc/mpdecimal/libmpdec++/_static/mpdecimal-doc.css
+share/doc/mpdecimal/libmpdec++/_static/plus.png
+share/doc/mpdecimal/libmpdec++/_static/pygments.css
+share/doc/mpdecimal/libmpdec++/_static/searchtools.js
+share/doc/mpdecimal/libmpdec++/_static/sidebar.js
+share/doc/mpdecimal/libmpdec++/_static/underscore-1.3.1.js
+share/doc/mpdecimal/libmpdec++/_static/underscore.js
+share/doc/mpdecimal/libmpdec++/constants.html
+share/doc/mpdecimal/libmpdec++/context.html
+share/doc/mpdecimal/libmpdec++/decimal.html
+share/doc/mpdecimal/libmpdec++/exceptions.html
+share/doc/mpdecimal/libmpdec++/index.html
+share/doc/mpdecimal/libmpdec++/objects.inv
+share/doc/mpdecimal/libmpdec++/search.html
+share/doc/mpdecimal/libmpdec++/searchindex.js
+share/doc/mpdecimal/libmpdec/README.txt
+share/doc/mpdecimal/libmpdec/_static/basic.css
+share/doc/mpdecimal/libmpdec/_static/classic.css
+share/doc/mpdecimal/libmpdec/_static/default.css
+share/doc/mpdecimal/libmpdec/_static/doctools.js
+share/doc/mpdecimal/libmpdec/_static/documentation_options.js
+share/doc/mpdecimal/libmpdec/_static/file.png
+share/doc/mpdecimal/libmpdec/_static/jquery-3.4.1.js
+share/doc/mpdecimal/libmpdec/_static/jquery.js
+share/doc/mpdecimal/libmpdec/_static/language_data.js
+share/doc/mpdecimal/libmpdec/_static/minus.png
+share/doc/mpdecimal/libmpdec/_static/mpdecimal-doc.css
+share/doc/mpdecimal/libmpdec/_static/plus.png
+share/doc/mpdecimal/libmpdec/_static/pygments.css
+share/doc/mpdecimal/libmpdec/_static/searchtools.js
+share/doc/mpdecimal/libmpdec/_static/sidebar.js
+share/doc/mpdecimal/libmpdec/_static/underscore-1.3.1.js
+share/doc/mpdecimal/libmpdec/_static/underscore.js
+share/doc/mpdecimal/libmpdec/arithmetic.html
+share/doc/mpdecimal/libmpdec/assign-convert.html
+share/doc/mpdecimal/libmpdec/attributes.html
+share/doc/mpdecimal/libmpdec/context.html
+share/doc/mpdecimal/libmpdec/decimals.html
+share/doc/mpdecimal/libmpdec/functions.html
+share/doc/mpdecimal/libmpdec/index.html
+share/doc/mpdecimal/libmpdec/memory.html
+share/doc/mpdecimal/libmpdec/objects.inv
+share/doc/mpdecimal/libmpdec/search.html
+share/doc/mpdecimal/libmpdec/searchindex.js
+share/doc/mpdecimal/libmpdec/various.html
diff --git a/mpdecimal/TODO b/mpdecimal/TODO
new file mode 100644
index 0000000000..4265c6f8d7
--- /dev/null
+++ b/mpdecimal/TODO
@@ -0,0 +1,2 @@
+=> Checking for missing run-time search paths in mpdecimal-2.5.1
+ERROR: lib/libmpdec++.so.2.5.1: missing library: libmpdec.so.3
diff --git a/mpdecimal/distinfo b/mpdecimal/distinfo
new file mode 100644
index 0000000000..77460ab9d2
--- /dev/null
+++ b/mpdecimal/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (mpdecimal-2.5.1.tar.gz) = 823e2701ce0bc19550c7f58819fd9b067fa9154fd0f83c3518c3b8a38f7f27e2
+SHA512 (mpdecimal-2.5.1.tar.gz) = 710cb5cb71dbcf3e170ca15869c148df0547b848400c6b6dd70c67d9961dbe1190af8fb4d1623bfb0ca2afe44f369a42e311ab5225ed89d4031cb49a3bd70f30
+Size (mpdecimal-2.5.1.tar.gz) = 2584021 bytes


Home | Main Index | Thread Index | Old Index