summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-02-17 11:55:03 +0000
committerwiz <wiz@pkgsrc.org>2019-02-17 11:55:03 +0000
commit3d547303e52feeeb35a8b13d6b1b385f854f3929 (patch)
treeb22d5cbac7700c084cab3dc44b72374c18896df6 /finance
parentbe83a2fdc637d545f7597b214e05310903a28cb7 (diff)
downloadpkgsrc-3d547303e52feeeb35a8b13d6b1b385f854f3929.tar.gz
ledger: update to 3.1.2.
* 3.1.2 (2019-02-05) - Increase maximum length for regex from 255 to 4095 (bug #981) - Initialize periods from from/since clause rather than earliest transaction date (bug #1159) - Check balance assertions against the amount after the posting (bug #1147) - Allow balance assertions with multiple posts to same account (bug #1187) - Fix period duration of "every X days" and similar statements (bug #370) - Make option --force-color not require --color anymore (bug #1109) - Add quoted_rfc4180 to allow CVS output with RFC 4180 compliant quoting. - Add support for --prepend-format in accounts command - Fix handling of edge cases in trim function (bug #520) - Fix auto xact posts not getting applied to account total during journal parse (bug #552) - Transfer null_post flags to generated postings - Fix segfault when using --market with --group-by - Use amount_width variable for budget report - Keep pending items in budgets until the last day they apply - Fix bug where .total used in value expressions breaks totals - Make automated transactions work with assertions (bug #1127) - Improve parsing of date tokens (bug #1626) - Don't attempt to invert a value if it's already zero (bug #1703) - Do not parse user-specified init-file twice - Fix parsing issue of effective dates (bug #1722, TALOS-2017-0303, CVE-2017-2807) - Fix use-after-free issue with deferred postings (bug #1723, TALOS-2017-0304, CVE-2017-2808) - Fix possible stack overflow in option parsing routine (bug #1222, CVE-2017-12481) - Fix possible stack overflow in date parsing routine (bug #1224, CVE-2017-12482) - Fix use-after-free when using --gain (bug #541) - Python: Removed double quotes from Unicode values. - Python: Ensure that parse errors produce useful RuntimeErrors - Python: Expose journal expand_aliases - Python: Expose journal_t::register_account - Improve bash completion - Emacs Lisp files have been moved to https://github.com/ledger/ledger-mode - Fix build under MSYS (32-bit). - Fix build under Cygwin. - Various documentation improvements
Diffstat (limited to 'finance')
-rw-r--r--finance/ledger/Makefile7
-rw-r--r--finance/ledger/PLIST3
-rw-r--r--finance/ledger/distinfo15
-rw-r--r--finance/ledger/patches/patch-CMakeLists.txt15
-rw-r--r--finance/ledger/patches/patch-src_item.h16
-rw-r--r--finance/ledger/patches/patch-src_main.cc (renamed from finance/ledger/patches/patch-src_system.hh.in)14
-rw-r--r--finance/ledger/patches/patch-src_utils.h15
7 files changed, 18 insertions, 67 deletions
diff --git a/finance/ledger/Makefile b/finance/ledger/Makefile
index 92d9180b4bf..fe7f12741c8 100644
--- a/finance/ledger/Makefile
+++ b/finance/ledger/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2018/12/13 19:51:51 adam Exp $
+# $NetBSD: Makefile,v 1.11 2019/02/17 11:55:03 wiz Exp $
-DISTNAME= ledger-3.1.1
-PKGREVISION= 9
+DISTNAME= ledger-3.1.2
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_GITHUB:=ledger/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -15,6 +14,8 @@ USE_CMAKE= yes
USE_LANGUAGES= c++ c
GCC_REQD+= 4.8
+CMAKE_ARGS+= -DUSE_PYTHON27_COMPONENT=ON
+
.include "options.mk"
REPLACE_INTERPRETER+= python
diff --git a/finance/ledger/PLIST b/finance/ledger/PLIST
index 690c859d95e..7669fa93b77 100644
--- a/finance/ledger/PLIST
+++ b/finance/ledger/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/02/18 05:48:51 riastradh Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/02/17 11:55:03 wiz Exp $
bin/ledger
include/ledger/account.h
include/ledger/amount.h
@@ -49,7 +49,6 @@ 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
diff --git a/finance/ledger/distinfo b/finance/ledger/distinfo
index b9a80ec0c96..7547fb6c22e 100644
--- a/finance/ledger/distinfo
+++ b/finance/ledger/distinfo
@@ -1,10 +1,7 @@
-$NetBSD: distinfo,v 1.4 2018/08/20 20:45:25 wiz Exp $
+$NetBSD: distinfo,v 1.5 2019/02/17 11:55:03 wiz 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-CMakeLists.txt) = 14160d9d0fad56665fe7c6ffd5fec89541d62fb2
-SHA1 (patch-src_item.h) = 994e1e87fdf7510bcac364fb554d2ec012ba84d3
-SHA1 (patch-src_system.hh.in) = c9f5830aaf77681d93eedb78d06fa91f47a7b478
-SHA1 (patch-src_utils.h) = 0dcff070c9088e9e6bea7cc41cdec3701eae3ac9
+SHA1 (ledger-3.1.2.tar.gz) = fd4b6db8cc4b611a7b1d246e9d88a40dda9ace0b
+RMD160 (ledger-3.1.2.tar.gz) = af1d9114953f46abd1ec702169a102f0815fac0d
+SHA512 (ledger-3.1.2.tar.gz) = 445d9a9c70aa3e59718f8fb75e4110c73f2f476436149fdd456b5fe7b9cee9333c09647080049989599dfac491e5bdd0d143717e58e15989db0fcaad4e5a958d
+Size (ledger-3.1.2.tar.gz) = 801112 bytes
+SHA1 (patch-src_main.cc) = d887e39e2a68fe594c93819e95eed9a4f469844d
diff --git a/finance/ledger/patches/patch-CMakeLists.txt b/finance/ledger/patches/patch-CMakeLists.txt
deleted file mode 100644
index 98a903b7d93..00000000000
--- a/finance/ledger/patches/patch-CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2018/05/20 08:38:47 wiz Exp $
-
-pkgsrc library is versioned, adapt check.
-
---- CMakeLists.txt.orig 2016-01-11 15:59:38.000000000 +0000
-+++ CMakeLists.txt
-@@ -68,7 +68,7 @@ if (USE_PYTHON)
-
- find_package(PythonLibs)
- if (PYTHONLIBS_FOUND)
-- set(BOOST_PYTHON python)
-+ set(BOOST_PYTHON python27)
- set(HAVE_BOOST_PYTHON 1)
- include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS})
- else()
diff --git a/finance/ledger/patches/patch-src_item.h b/finance/ledger/patches/patch-src_item.h
deleted file mode 100644
index f1a3099f058..00000000000
--- a/finance/ledger/patches/patch-src_item.h
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-src_item.h,v 1.1 2018/03/14 13:59:52 wiz Exp $
-
-Fix build with boost-1.61+ and gcc-6.
-https://github.com/ledger/ledger/commit/258cab91ab702e82d477b41bb1c6a026c848bda5
-
---- src/item.h.orig 2016-01-11 15:59:38.000000000 +0000
-+++ src/item.h
-@@ -92,7 +92,7 @@ public:
-
- typedef std::pair<optional<value_t>, bool> tag_data_t;
- typedef std::map<string, tag_data_t,
-- function<bool(string, string)> > string_map;
-+ std::function<bool(string, string)> > string_map;
-
- state_t _state;
- optional<date_t> _date;
diff --git a/finance/ledger/patches/patch-src_system.hh.in b/finance/ledger/patches/patch-src_main.cc
index aec1b615cd6..4135cf22ce4 100644
--- a/finance/ledger/patches/patch-src_system.hh.in
+++ b/finance/ledger/patches/patch-src_main.cc
@@ -1,18 +1,18 @@
-$NetBSD: patch-src_system.hh.in,v 1.1 2017/02/18 05:48:52 riastradh Exp $
+$NetBSD: patch-src_main.cc,v 1.1 2019/02/17 11:55:03 wiz 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"
+--- src/main.cc.orig 2019-02-05 13:30:45.000000000 +0000
++++ src/main.cc
+@@ -36,7 +36,7 @@
+ #include "session.h"
- #if HAVE_EDIT
+ #ifdef HAVE_EDIT
-#include <editline/readline.h>
+#include <readline/readline.h>
#endif
- #include <boost/algorithm/string.hpp>
+ using namespace ledger;
diff --git a/finance/ledger/patches/patch-src_utils.h b/finance/ledger/patches/patch-src_utils.h
deleted file mode 100644
index f44809bc59c..00000000000
--- a/finance/ledger/patches/patch-src_utils.h
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_utils.h,v 1.1 2018/08/20 20:45:26 wiz Exp $
-
-Fix build with boost-1.68+.
-
---- src/utils.h.orig 2016-01-11 15:59:38.000000000 +0000
-+++ src/utils.h
-@@ -44,7 +44,7 @@
- #ifndef _UTILS_H
- #define _UTILS_H
-
--#include <boost/uuid/sha1.hpp>
-+#include <boost/uuid/detail/sha1.hpp>
-
- /**
- * @name Default values