pkgsrc-Changes archive

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

CVS commit: pkgsrc/finance



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Mon Mar 30 16:44:12 UTC 2020

Modified Files:
        pkgsrc/finance: Makefile
Added Files:
        pkgsrc/finance/hs-Decimal: DESCR Makefile buildlink3.mk distinfo

Log Message:
hs-Decimal: Import version 0.5.1


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 pkgsrc/finance/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/finance/hs-Decimal/DESCR \
    pkgsrc/finance/hs-Decimal/Makefile \
    pkgsrc/finance/hs-Decimal/buildlink3.mk \
    pkgsrc/finance/hs-Decimal/distinfo

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

Modified files:

Index: pkgsrc/finance/Makefile
diff -u pkgsrc/finance/Makefile:1.72 pkgsrc/finance/Makefile:1.73
--- pkgsrc/finance/Makefile:1.72        Mon Mar 23 02:29:49 2020
+++ pkgsrc/finance/Makefile     Mon Mar 30 16:44:12 2020
@@ -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+=      gkrellm-stock
 SUBDIR+=       gnucash
 SUBDIR+=       gnucash-docs
 SUBDIR+=       homebank
+SUBDIR+=       hs-Decimal
 SUBDIR+=       ledger
 SUBDIR+=       ledger2beancount
 SUBDIR+=       libofx

Added files:

Index: pkgsrc/finance/hs-Decimal/DESCR
diff -u /dev/null pkgsrc/finance/hs-Decimal/DESCR:1.1
--- /dev/null   Mon Mar 30 16:44:12 2020
+++ pkgsrc/finance/hs-Decimal/DESCR     Mon Mar 30 16:44:12 2020
@@ -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.
Index: pkgsrc/finance/hs-Decimal/Makefile
diff -u /dev/null pkgsrc/finance/hs-Decimal/Makefile:1.1
--- /dev/null   Mon Mar 30 16:44:12 2020
+++ pkgsrc/finance/hs-Decimal/Makefile  Mon Mar 30 16:44:12 2020
@@ -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"
Index: pkgsrc/finance/hs-Decimal/buildlink3.mk
diff -u /dev/null pkgsrc/finance/hs-Decimal/buildlink3.mk:1.1
--- /dev/null   Mon Mar 30 16:44:12 2020
+++ pkgsrc/finance/hs-Decimal/buildlink3.mk     Mon Mar 30 16:44:12 2020
@@ -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
Index: pkgsrc/finance/hs-Decimal/distinfo
diff -u /dev/null pkgsrc/finance/hs-Decimal/distinfo:1.1
--- /dev/null   Mon Mar 30 16:44:12 2020
+++ pkgsrc/finance/hs-Decimal/distinfo  Mon Mar 30 16:44:12 2020
@@ -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