summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2020-03-30 16:52:48 +0000
committerriastradh <riastradh@pkgsrc.org>2020-03-30 16:52:48 +0000
commit3563284654d1705371d29b409d167722342ae3bd (patch)
tree96199afc7b37647c6b1911eb570ba83f4b4e2716
parent776bb98b4b2f16b4d31496e3f93a14e4c8e767cc (diff)
downloadpkgsrc-3563284654d1705371d29b409d167722342ae3bd.tar.gz
hledger: Import version 1.17.1.1
XXX Requires setting LANG=C.UTF-8 during hledger build stage.
-rw-r--r--finance/Makefile4
-rw-r--r--finance/hledger-lib/DESCR16
-rw-r--r--finance/hledger-lib/Makefile42
-rw-r--r--finance/hledger-lib/buildlink3.mk13
-rw-r--r--finance/hledger/DESCR18
-rw-r--r--finance/hledger/Makefile24
-rw-r--r--finance/hledger/common.mk17
-rw-r--r--finance/hledger/distinfo6
8 files changed, 139 insertions, 1 deletions
diff --git a/finance/Makefile b/finance/Makefile
index 2288f8dfcd9..7a25d79e120 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2020/03/30 16:44:12 riastradh Exp $
+# $NetBSD: Makefile,v 1.74 2020/03/30 16:52:48 riastradh Exp $
#
COMMENT= Monetary, financial and related applications
@@ -17,6 +17,8 @@ SUBDIR+= cpuminer
SUBDIR+= gkrellm-stock
SUBDIR+= gnucash
SUBDIR+= gnucash-docs
+SUBDIR+= hledger
+SUBDIR+= hledger-lib
SUBDIR+= homebank
SUBDIR+= hs-Decimal
SUBDIR+= ledger
diff --git a/finance/hledger-lib/DESCR b/finance/hledger-lib/DESCR
new file mode 100644
index 00000000000..16d5cb8437d
--- /dev/null
+++ b/finance/hledger-lib/DESCR
@@ -0,0 +1,16 @@
+This is a reusable library containing hledger's core functionality.
+
+hledger is a computer program for easily tracking money, time, or
+other commodities, on unix, mac and windows (and web-capable mobile
+devices, to some extent).
+
+It is first a command-line tool, but there are also terminal and web
+interfaces, and a Haskell library
+(http://hackage.haskell.org/package/hledger-lib) for building your own
+programs and scripts (hledger is written in Haskell). hledger was
+inspired by and is largely compatible with Ledger. hledger is free
+software available under the GNU General Public License v3+.
+
+hledger aims to help both computer experts and regular folks to gain
+clarity and control in their finances and time management, but
+currently it is a bit more suited to techies.
diff --git a/finance/hledger-lib/Makefile b/finance/hledger-lib/Makefile
new file mode 100644
index 00000000000..4dccc3208b9
--- /dev/null
+++ b/finance/hledger-lib/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2020/03/30 16:52:48 riastradh Exp $
+
+.include "../../finance/hledger/common.mk"
+
+HASKELL_PKG_NAME= hledger-lib
+CATEGORIES= finance
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/simonmichael/hledger/
+COMMENT= Plain-text accounting tool
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES= # none
+
+.include "../../converters/hs-aeson/buildlink3.mk"
+.include "../../devel/hs-ansi-terminal/buildlink3.mk"
+.include "../../devel/hs-base-compat-batteries/buildlink3.mk"
+.include "../../devel/hs-call-stack/buildlink3.mk"
+.include "../../devel/hs-cmdargs/buildlink3.mk"
+.include "../../devel/hs-fgl/buildlink3.mk"
+.include "../../devel/hs-file-embed/buildlink3.mk"
+.include "../../devel/hs-hashtables/buildlink3.mk"
+.include "../../devel/hs-parser-combinators/buildlink3.mk"
+.include "../../devel/hs-pretty-show/buildlink3.mk"
+.include "../../devel/hs-safe/buildlink3.mk"
+.include "../../devel/hs-split/buildlink3.mk"
+.include "../../devel/hs-tabular/buildlink3.mk"
+.include "../../devel/hs-tasty-hunit/buildlink3.mk"
+.include "../../devel/hs-tasty/buildlink3.mk"
+.include "../../devel/hs-timeit/buildlink3.mk"
+.include "../../devel/hs-uglymemo/buildlink3.mk"
+.include "../../finance/hs-Decimal/buildlink3.mk"
+.include "../../misc/hs-extra/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../textproc/hs-Glob/buildlink3.mk"
+.include "../../textproc/hs-blaze-markup/buildlink3.mk"
+.include "../../textproc/hs-cassava-megaparsec/buildlink3.mk"
+.include "../../textproc/hs-cassava/buildlink3.mk"
+.include "../../textproc/hs-megaparsec/buildlink3.mk"
+.include "../../textproc/hs-regex-tdfa/buildlink3.mk"
+.include "../../time/hs-old-time/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/finance/hledger-lib/buildlink3.mk b/finance/hledger-lib/buildlink3.mk
new file mode 100644
index 00000000000..1d89f32b0dc
--- /dev/null
+++ b/finance/hledger-lib/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/03/30 16:52:48 riastradh Exp $
+
+BUILDLINK_TREE+= hledger-lib
+
+.if !defined(HLEDGER_LIB_BUILDLINK3_MK)
+HLEDGER_LIB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hledger-lib+= hledger-lib>=1.17.1.1
+BUILDLINK_ABI_DEPENDS.hledger-lib+= hledger-lib>=1.17.1.1
+BUILDLINK_PKGSRCDIR.hledger-lib?= ../../finance/hledger-lib
+.endif # HLEDGER_LIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hledger-lib
diff --git a/finance/hledger/DESCR b/finance/hledger/DESCR
new file mode 100644
index 00000000000..c76a6b8d141
--- /dev/null
+++ b/finance/hledger/DESCR
@@ -0,0 +1,18 @@
+This is hledger's command-line interface. Its basic function is to
+read a plain text file describing financial transactions and produce
+useful reports.
+
+hledger is a computer program for easily tracking money, time, or
+other commodities, on unix, mac and windows (and web-capable mobile
+devices, to some extent).
+
+It is first a command-line tool, but there are also terminal and web
+interfaces, and a Haskell library
+(http://hackage.haskell.org/package/hledger-lib) for building your own
+programs and scripts (hledger is written in Haskell). hledger was
+inspired by and is largely compatible with Ledger. hledger is free
+software available under the GNU General Public License v3+.
+
+hledger aims to help both computer experts and regular folks to gain
+clarity and control in their finances and time management, but
+currently it is a bit more suited to techies.
diff --git a/finance/hledger/Makefile b/finance/hledger/Makefile
new file mode 100644
index 00000000000..b74ef226070
--- /dev/null
+++ b/finance/hledger/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2020/03/30 16:52:48 riastradh Exp $
+
+.include "../../finance/hledger/common.mk"
+
+HASKELL_PKG_NAME= hledger
+CATEGORIES= finance
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/simonmichael/hledger/
+COMMENT= Plain-text accounting tool
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES= # none
+
+.include "../../devel/hs-utility-ht/buildlink3.mk"
+.include "../../devel/hs-wizards/buildlink3.mk"
+.include "../../finance/hledger-lib/buildlink3.mk"
+.include "../../math/hs-math-functions/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../sysutils/hs-temporary/buildlink3.mk"
+.include "../../textproc/hs-Diff/buildlink3.mk"
+.include "../../textproc/hs-lucid/buildlink3.mk"
+.include "../../textproc/hs-shakespeare/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/finance/hledger/common.mk b/finance/hledger/common.mk
new file mode 100644
index 00000000000..95ab4dcd12b
--- /dev/null
+++ b/finance/hledger/common.mk
@@ -0,0 +1,17 @@
+# $NetBSD: common.mk,v 1.1 2020/03/30 16:52:48 riastradh Exp $
+
+# used by finance/hledger
+# used by finance/hledger-lib
+# to be used by finance/hledger-ui
+# to be used by finance/hledger-web
+
+HLEDGER_VERSION= 1.17.1.1
+DISTNAME= hledger-${HLEDGER_VERSION}
+PKGNAME= ${HASKELL_PKG_NAME}-${HLEDGER_VERSION}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=simonmichael/}
+GITHUB_PROJECT= hledger
+GITHUB_TAG= ${DISTNAME}
+
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME}/${HASKELL_PKG_NAME}
+
+DISTINFO_FILE= ../../finance/hledger/distinfo
diff --git a/finance/hledger/distinfo b/finance/hledger/distinfo
new file mode 100644
index 00000000000..89ab2305488
--- /dev/null
+++ b/finance/hledger/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/03/30 16:52:48 riastradh Exp $
+
+SHA1 (hledger-1.17.1.1.tar.gz) = c293bf7ef81d3423c13a2c8598d665d6214d5154
+RMD160 (hledger-1.17.1.1.tar.gz) = 6dbd8f4c43cc897830413acd9a7894d96683018d
+SHA512 (hledger-1.17.1.1.tar.gz) = 3d1d34a307ca4687c7740a591047c7e4cda2b8e779e675696cc8cdca3cb669f71f4e15a3c30cbef9ec0784d853b2103f14797e84ea7f2c3002134ab9c50bb3e5
+Size (hledger-1.17.1.1.tar.gz) = 1796221 bytes