pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/finance hs-Decimal: Import version 0.5.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc532b027010
branches: trunk
changeset: 414607:cc532b027010
user: riastradh <riastradh%pkgsrc.org@localhost>
date: Mon Mar 30 16:44:12 2020 +0000
description:
hs-Decimal: Import version 0.5.1
diffstat:
finance/Makefile | 3 ++-
finance/hs-Decimal/DESCR | 19 +++++++++++++++++++
finance/hs-Decimal/Makefile | 15 +++++++++++++++
finance/hs-Decimal/buildlink3.mk | 13 +++++++++++++
finance/hs-Decimal/distinfo | 6 ++++++
5 files changed, 55 insertions(+), 1 deletions(-)
diffs (86 lines):
diff -r b37052eaec3e -r cc532b027010 finance/Makefile
--- a/finance/Makefile Mon Mar 30 16:43:35 2020 +0000
+++ b/finance/Makefile Mon Mar 30 16:44:12 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2020/03/23 02:29:49 riastradh Exp $
+# $NetBSD: Makefile,v 1.73 2020/03/30 16:44:12 riastradh Exp $
#
COMMENT= Monetary, financial and related applications
@@ -18,6 +18,7 @@
SUBDIR+= gnucash
SUBDIR+= gnucash-docs
SUBDIR+= homebank
+SUBDIR+= hs-Decimal
SUBDIR+= ledger
SUBDIR+= ledger2beancount
SUBDIR+= libofx
diff -r b37052eaec3e -r cc532b027010 finance/hs-Decimal/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/hs-Decimal/DESCR Mon Mar 30 16:44:12 2020 +0000
@@ -0,0 +1,19 @@
+Haskell-Decimal
+===============
+
+Fixed-precision decimal numbers, where the precision is carried with
+the numbers at run-time.
+
+The `Decimal` type is mainly intended for doing financial arithmetic
+where the number of decimal places may not be known at compile time
+(e.g. for a program that handles both Yen and Dollars) and the
+application must not drop pennies on the floor. For instance if you
+have to divide $10 between three people then one of them has to get
+$3.34.
+
+The number of decimal places in a value is represented as a Word8,
+allowing for up to 255 decimal places. Functions preserve precision.
+Addition and subtraction operators return a result with the precision
+of the most precise argument, so 2.3 + 5.678 = 7.978. Multiplication
+and division use whatever precision is necessary up to 255 decimal
+places.
diff -r b37052eaec3e -r cc532b027010 finance/hs-Decimal/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/hs-Decimal/Makefile Mon Mar 30 16:44:12 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2020/03/30 16:44:12 riastradh Exp $
+
+DISTNAME= Decimal-0.5.1
+CATEGORIES= finance
+MASTER_SITES= ${MASTER_SITE_HASKELL_HACKAGE:=Decimal-${PKGVERSION_NOREV}/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/PaulJohnson/Haskell-Decimal
+COMMENT= Decimal arithmetic for financial applications
+LICENSE= modified-bsd
+
+USE_LANGUAGES= # none
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b37052eaec3e -r cc532b027010 finance/hs-Decimal/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/hs-Decimal/buildlink3.mk Mon Mar 30 16:44:12 2020 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/03/30 16:44:12 riastradh Exp $
+
+BUILDLINK_TREE+= hs-Decimal
+
+.if !defined(HS_DECIMAL_BUILDLINK3_MK)
+HS_DECIMAL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-Decimal+= hs-Decimal>=0.5.1
+BUILDLINK_ABI_DEPENDS.hs-Decimal+= hs-Decimal>=0.5.1
+BUILDLINK_PKGSRCDIR.hs-Decimal?= ../../finance/hs-Decimal
+.endif # HS_DECIMAL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-Decimal
diff -r b37052eaec3e -r cc532b027010 finance/hs-Decimal/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/hs-Decimal/distinfo Mon Mar 30 16:44:12 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/03/30 16:44:12 riastradh Exp $
+
+SHA1 (Decimal-0.5.1.tar.gz) = 9d744d8edf29bb4e453ec10d025278b1c8b32273
+RMD160 (Decimal-0.5.1.tar.gz) = ee2b2c1ce4b5dde1d8af70824b41601886983fbd
+SHA512 (Decimal-0.5.1.tar.gz) = 9ca3d6f1de96ef4eb6e5e2e3bd7002019ea41e7d404ad9f566926b84ed1ff4aa4a57aa071ef82f00764008469476b5ca196d7c43553885732663f7608c2995fb
+Size (Decimal-0.5.1.tar.gz) = 9553 bytes
Home |
Main Index |
Thread Index |
Old Index