diff options
author | riastradh <riastradh@pkgsrc.org> | 2017-02-18 05:48:51 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2017-02-18 05:48:51 +0000 |
commit | 952edd0fefe62826f54ce9ffe2a9dd33f177716b (patch) | |
tree | 6ee82f40746d704e83fea9006acb9ecbfdc117f9 /finance | |
parent | 84e96c7ae4c371d06165d3221fd697f2a8fe05ee (diff) | |
download | pkgsrc-952edd0fefe62826f54ce9ffe2a9dd33f177716b.tar.gz |
Import ledger 3.1.1 from wip, with some tweaks as 3.1.1nb1.
- Fill text in DESCR.
- Use lang/python/tool.mk explicitly.
- Add options.mk for python option. (Other extensions TBD.)
- Patch a misuse of editline.
Diffstat (limited to 'finance')
-rw-r--r-- | finance/Makefile | 3 | ||||
-rw-r--r-- | finance/ledger/DESCR | 12 | ||||
-rw-r--r-- | finance/ledger/Makefile | 36 | ||||
-rw-r--r-- | finance/ledger/PLIST | 66 | ||||
-rw-r--r-- | finance/ledger/TODO | 1 | ||||
-rw-r--r-- | finance/ledger/distinfo | 7 | ||||
-rw-r--r-- | finance/ledger/options.mk | 14 | ||||
-rw-r--r-- | finance/ledger/patches/patch-src_system.hh.in | 18 |
8 files changed, 156 insertions, 1 deletions
diff --git a/finance/Makefile b/finance/Makefile index aee6c647136..a512dadecc6 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2016/12/08 02:56:11 jnemeth Exp $ +# $NetBSD: Makefile,v 1.44 2017/02/18 05:48:51 riastradh Exp $ # COMMENT= Monetary, financial and related applications @@ -7,6 +7,7 @@ SUBDIR+= gkrellm-stock SUBDIR+= gnucash SUBDIR+= gnucash-docs SUBDIR+= kmymoney2 +SUBDIR+= ledger SUBDIR+= libofx SUBDIR+= magento SUBDIR+= moneyguru diff --git a/finance/ledger/DESCR b/finance/ledger/DESCR new file mode 100644 index 00000000000..f6277096ea2 --- /dev/null +++ b/finance/ledger/DESCR @@ -0,0 +1,12 @@ +Ledger is a powerful, double-entry accounting system that is accessed +from the UNIX command-line. This may put off some users, since there is +no flashy UI, but for those who want unparalleled reporting access to +their data there are few alternatives. + +Ledger uses text files for input. It reads the files and generates +reports; there is no other database or stored state. To use Ledger, you +create a file of your account names and transactions, run from the +command line with some options to specify input and requested reports, +and get output. The output is generally plain text, though you could +generate a graph or html instead. Ledger is simple in concept, +surprisingly rich in ability, and easy to use. diff --git a/finance/ledger/Makefile b/finance/ledger/Makefile new file mode 100644 index 00000000000..901b796c7a9 --- /dev/null +++ b/finance/ledger/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2017/02/18 05:48:51 riastradh Exp $ + +GITHUB_PROJECT= ledger +VERSION= 3.1.1 +PKGREVISION= 1 +DISTNAME= ledger-${VERSION} +CATEGORIES= finance +MASTER_SITES= ${MASTER_SITE_GITHUB:=ledger/} +GITHUB_TAG= v${VERSION} + +MAINTAINER= base@atomicules.co.uk +HOMEPAGE= http://ledger-cli.org/ +COMMENT= Double-entry accounting system for command-line +LICENSE= modified-bsd + +USE_CMAKE= YES +USE_LANGUAGES= c++ c +GCC_REQD+= 4.8 + +.include "options.mk" + +REPLACE_INTERPRETER+= python +REPLACE.python.old= /usr/bin/env python +REPLACE.python.new= ${PYTHONBIN} +REPLACE_FILES.python+= contrib/getquote-uk.py acprep python/demo.py +REPLACE_FILES.python+= test/DocTests.py test/LedgerHarness.py +REPLACE_FILES.python+= test/convert.py test/RegressTests.py test/convert.py +REPLACE_FILES.python+= tools/genuuid + +.include "../../devel/boost-headers/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" +.include "../../devel/editline/buildlink3.mk" +.include "../../devel/gmp/buildlink3.mk" +.include "../../lang/python/tool.mk" +.include "../../math/mpfr/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/finance/ledger/PLIST b/finance/ledger/PLIST new file mode 100644 index 00000000000..690c859d95e --- /dev/null +++ b/finance/ledger/PLIST @@ -0,0 +1,66 @@ +@comment $NetBSD: PLIST,v 1.1 2017/02/18 05:48:51 riastradh Exp $ +bin/ledger +include/ledger/account.h +include/ledger/amount.h +include/ledger/annotate.h +include/ledger/balance.h +include/ledger/chain.h +include/ledger/commodity.h +include/ledger/compare.h +include/ledger/context.h +include/ledger/convert.h +include/ledger/csv.h +include/ledger/draft.h +include/ledger/emacs.h +include/ledger/error.h +include/ledger/expr.h +include/ledger/exprbase.h +include/ledger/filters.h +include/ledger/flags.h +include/ledger/format.h +include/ledger/generate.h +include/ledger/global.h +include/ledger/history.h +include/ledger/item.h +include/ledger/iterators.h +include/ledger/journal.h +include/ledger/lookup.h +include/ledger/mask.h +include/ledger/op.h +include/ledger/option.h +include/ledger/org.h +include/ledger/output.h +include/ledger/parser.h +include/ledger/pool.h +include/ledger/post.h +include/ledger/precmd.h +include/ledger/predicate.h +include/ledger/print.h +include/ledger/pstream.h +include/ledger/ptree.h +include/ledger/pyfstream.h +include/ledger/pyinterp.h +include/ledger/pyutils.h +include/ledger/query.h +include/ledger/quotes.h +include/ledger/report.h +include/ledger/scope.h +include/ledger/select.h +include/ledger/session.h +include/ledger/stats.h +include/ledger/stream.h +include/ledger/strptime.h +include/ledger/system.hh +include/ledger/temps.h +include/ledger/timelog.h +include/ledger/times.h +include/ledger/token.h +include/ledger/unistring.h +include/ledger/utils.h +include/ledger/value.h +include/ledger/views.h +include/ledger/xact.h +lib/libledger.so +lib/libledger.so.3 +${PLIST.python}${PYSITELIB}/ledger.so +man/man1/ledger.1 diff --git a/finance/ledger/TODO b/finance/ledger/TODO new file mode 100644 index 00000000000..178b67467cb --- /dev/null +++ b/finance/ledger/TODO @@ -0,0 +1 @@ +- Add remaining options. diff --git a/finance/ledger/distinfo b/finance/ledger/distinfo new file mode 100644 index 00000000000..1f5deebc901 --- /dev/null +++ b/finance/ledger/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2017/02/18 05:48:51 riastradh Exp $ + +SHA1 (ledger-3.1.1.tar.gz) = 77ad24ce4947e2f130e58d8e8bc4c5b6920a0222 +RMD160 (ledger-3.1.1.tar.gz) = 07645c8d798e386eb4ed0a5a9e3dcf6fe0a184f8 +SHA512 (ledger-3.1.1.tar.gz) = 3f81b98a414cdfc0e272de4e958770149fb1acc8bda880d270e1459ce35294a220c52820bb9af49a751ac3a80b878f81fc7799ba41e0a1be43eba72081351bf5 +Size (ledger-3.1.1.tar.gz) = 842364 bytes +SHA1 (patch-src_system.hh.in) = c9f5830aaf77681d93eedb78d06fa91f47a7b478 diff --git a/finance/ledger/options.mk b/finance/ledger/options.mk new file mode 100644 index 00000000000..1c9d7091504 --- /dev/null +++ b/finance/ledger/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2017/02/18 05:48:51 riastradh Exp $ + +PKG_SUPPORTED_OPTIONS+= python +PKG_OPTIONS_VAR= PKG_OPTIONS.ledger +PLIST_VARS+= python + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mpython) +CMAKE_ARGS+= -DUSE_PYTHON:BOOL=TRUE +PLIST.python= yes +PLIST_SUBST+= PYSITELIB=${PYSITELIB:Q} +.include "../../devel/py-boost/buildlink3.mk" +.endif diff --git a/finance/ledger/patches/patch-src_system.hh.in b/finance/ledger/patches/patch-src_system.hh.in new file mode 100644 index 00000000000..aec1b615cd6 --- /dev/null +++ b/finance/ledger/patches/patch-src_system.hh.in @@ -0,0 +1,18 @@ +$NetBSD: patch-src_system.hh.in,v 1.1 2017/02/18 05:48:52 riastradh Exp $ + +Canonicalize pkgsrc readline.h filename. This is seen both by +consumers of devel/readline and by consumers of devel/editline, via +buildlink3 magic. The only reason editline/readline.h may exist is to +allow both devel/readline and devel/editline to coexist. + +--- src/system.hh.in.orig 2016-01-11 15:59:38.000000000 +0000 ++++ src/system.hh.in +@@ -168,7 +168,7 @@ typedef std::ostream::pos_type ostream_p + #include "utf8.h" + + #if HAVE_EDIT +-#include <editline/readline.h> ++#include <readline/readline.h> + #endif + + #include <boost/algorithm/string.hpp> |