pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Import ledger 3.1.1 from wip, with some tweaks as 3.1....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b2f73d18692
branches:  trunk
changeset: 358675:2b2f73d18692
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Sat Feb 18 05:48:51 2017 +0000

description:
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:

 doc/CHANGES-2017                              |   3 +-
 finance/Makefile                              |   3 +-
 finance/ledger/DESCR                          |  12 ++++
 finance/ledger/Makefile                       |  36 ++++++++++++++
 finance/ledger/PLIST                          |  66 +++++++++++++++++++++++++++
 finance/ledger/TODO                           |   1 +
 finance/ledger/distinfo                       |   7 ++
 finance/ledger/options.mk                     |  14 +++++
 finance/ledger/patches/patch-src_system.hh.in |  18 +++++++
 9 files changed, 158 insertions(+), 2 deletions(-)

diffs (213 lines):

diff -r be61f7a88e52 -r 2b2f73d18692 doc/CHANGES-2017
--- a/doc/CHANGES-2017  Sat Feb 18 05:45:46 2017 +0000
+++ b/doc/CHANGES-2017  Sat Feb 18 05:48:51 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2017,v 1.769 2017/02/17 21:29:13 jmmv Exp $
+$NetBSD: CHANGES-2017,v 1.770 2017/02/18 05:48:51 riastradh Exp $
 
 Changes to the packages collection and infrastructure in 2017:
 
@@ -967,3 +967,4 @@
        Added sysutils/sandboxctl version 1.0 [jmmv 2017-02-17]
        Added pkgtools/pkg_comp version 2.0 [jmmv 2017-02-17]
        Added pkgtools/pkg_comp-cron version 1.0 [jmmv 2017-02-17]
+       Added finance/ledger version 3.1.1nb1 [riastradh 2017-02-18]
diff -r be61f7a88e52 -r 2b2f73d18692 finance/Makefile
--- a/finance/Makefile  Sat Feb 18 05:45:46 2017 +0000
+++ b/finance/Makefile  Sat Feb 18 05:48:51 2017 +0000
@@ -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+=       gnucash
 SUBDIR+=       gnucash-docs
 SUBDIR+=       kmymoney2
+SUBDIR+=       ledger
 SUBDIR+=       libofx
 SUBDIR+=       magento
 SUBDIR+=       moneyguru
diff -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/DESCR      Sat Feb 18 05:48:51 2017 +0000
@@ -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 -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/Makefile   Sat Feb 18 05:48:51 2017 +0000
@@ -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@localhost
+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 -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/PLIST      Sat Feb 18 05:48:51 2017 +0000
@@ -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 -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/TODO
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/TODO       Sat Feb 18 05:48:51 2017 +0000
@@ -0,0 +1,1 @@
+- Add remaining options.
diff -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/distinfo   Sat Feb 18 05:48:51 2017 +0000
@@ -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 -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/options.mk Sat Feb 18 05:48:51 2017 +0000
@@ -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 -r be61f7a88e52 -r 2b2f73d18692 finance/ledger/patches/patch-src_system.hh.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/ledger/patches/patch-src_system.hh.in     Sat Feb 18 05:48:51 2017 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index