pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/finance/ledger
Module Name: pkgsrc
Committed By: wiz
Date: Sun Jun 28 16:29:16 UTC 2026
Modified Files:
pkgsrc/finance/ledger: Makefile PLIST distinfo
pkgsrc/finance/ledger/patches: patch-src_CMakeLists.txt
patch-src_main.cc
Removed Files:
pkgsrc/finance/ledger/patches: patch-CMakeLists.txt patch-src_amount.cc
patch-src_expr.cc patch-src_filters.cc patch-src_format.cc
patch-src_item.cc patch-src_lookup.cc patch-src_option.cc
patch-src_pool.cc patch-src_report.cc patch-src_strptime.cc
patch-src_system.hh.in patch-src_textual.cc patch-src_times.cc
patch-src_utils.cc patch-src_utils.h patch-src_xact.cc
Log Message:
ledger: update to 3.4.1.
Based on wip/ledger by atomicules with some fixes.
3.4.1
Fix version number in binary
Assets 2
Source code (zip)
Oct 26, 2025
Source code (tar.gz)
Oct 26, 2025
1 person reacted
3.4.0
Oct 22, 2025
@jwiegley jwiegley
v3.4.0
ddb7c89
3.4.0
Critical Bug Fixes
Fix segfault in metadata validation (issue #1800)
Fix divide by zero (bugs #777 and #2207)
Fix use-after-free with regex_match()
Fix bucket transactions ignored with reg --related (bug #2220)
Restore expr context after calc (bugs #2330 and #2343)
Date and Year Handling
Fix leap year dates with apply year directive (bug #2468)
Fix xact command to properly respect last year directive (bug #2413)
Fix timelog balance assertions with value conversion
New Features
Add support for hash chaining with --hashes option for transaction integrity verification
Add commodity swaps feature over a base commodity
Add --align-intervals option for reporting
Add --lisp-date-format option for lisp output (bug #1206)
Add yday shortcut for "yesterday"
File Handling
Skip files with invalid UTF-8 names in include directive (bug #2421)
Allow automatic transactions to create accounts with --pedantic (bug #2417)
Make pricedb output deterministic (bug #1783)
Python Support
Update required Python version to 3.10 (minimum 3.9)
Fix Python 3.12 deprecation warnings
Add Python bindings for commodity value_t and roundto function
Remove Python 2 support from tests
Build System Updates
Update to C++17 standard
Update to Boost 1.86.0 (minimum 1.72.0)
Update required CMake to 3.16.2
Add support for Ubuntu 24.04 Noble
Add build support for readline
Display Improvements
Display parent accounts with one child if they contain posts
Align amounts even when account names are long
Fix percentile balance report of time commodity
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/finance/ledger/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/finance/ledger/PLIST
cvs rdiff -u -r1.15 -r1.16 pkgsrc/finance/ledger/distinfo
cvs rdiff -u -r1.3 -r0 pkgsrc/finance/ledger/patches/patch-CMakeLists.txt \
pkgsrc/finance/ledger/patches/patch-src_system.hh.in \
pkgsrc/finance/ledger/patches/patch-src_utils.h
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/finance/ledger/patches/patch-src_CMakeLists.txt
cvs rdiff -u -r1.1 -r0 pkgsrc/finance/ledger/patches/patch-src_amount.cc \
pkgsrc/finance/ledger/patches/patch-src_expr.cc \
pkgsrc/finance/ledger/patches/patch-src_filters.cc \
pkgsrc/finance/ledger/patches/patch-src_format.cc \
pkgsrc/finance/ledger/patches/patch-src_item.cc \
pkgsrc/finance/ledger/patches/patch-src_lookup.cc \
pkgsrc/finance/ledger/patches/patch-src_option.cc \
pkgsrc/finance/ledger/patches/patch-src_pool.cc \
pkgsrc/finance/ledger/patches/patch-src_report.cc \
pkgsrc/finance/ledger/patches/patch-src_strptime.cc \
pkgsrc/finance/ledger/patches/patch-src_textual.cc \
pkgsrc/finance/ledger/patches/patch-src_times.cc \
pkgsrc/finance/ledger/patches/patch-src_utils.cc \
pkgsrc/finance/ledger/patches/patch-src_xact.cc
cvs rdiff -u -r1.2 -r1.3 pkgsrc/finance/ledger/patches/patch-src_main.cc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/finance/ledger/Makefile
diff -u pkgsrc/finance/ledger/Makefile:1.45 pkgsrc/finance/ledger/Makefile:1.46
--- pkgsrc/finance/ledger/Makefile:1.45 Sun Jun 28 15:41:18 2026
+++ pkgsrc/finance/ledger/Makefile Sun Jun 28 16:29:14 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2026/06/28 15:41:18 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2026/06/28 16:29:14 wiz Exp $
-DISTNAME= ledger-3.3.2
-PKGREVISION= 10
+DISTNAME= ledger-3.4.1
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_GITHUB:=ledger/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -13,25 +12,24 @@ LICENSE= modified-bsd
CONFLICTS+= ledger32>=0
-USE_CXX_FEATURES= c++11
+USE_CXX_FEATURES+= c++17
USE_LANGUAGES= c c++
+USE_TOOLS+= perl:run
+
TEST_TARGET= check
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC:Q}/${CMAKE_BUILD_DIR:Q}
TEST_ENV+= DYLD_LIBRARY_PATH=${WRKSRC:Q}/${CMAKE_BUILD_DIR:Q}
-BROKEN= "does not support Python > 3.11 but py-numpy does not support < 3.12"
-
-# https://github.com/ledger/ledger/issues/2332
-PYTHON_VERSIONS_ACCEPTED= 311 # PyUnicode_GET_SIZE
-
CMAKE_CONFIGURE_ARGS+= -DPython_EXECUTABLE:STRING=${TOOL_PYTHONBIN:Q}
-CMAKE_CONFIGURE_ARGS+= -DCMAKE_POLICY_VERSION_MINIMUM=3.5
.include "options.mk"
-REPLACE_PYTHON+= contrib/getquote-uk.py
REPLACE_PYTHON+= acprep
+REPLACE_PYTHON+= contrib/getquote-uk.py
+REPLACE_PYTHON+= contrib/ledger-du
+REPLACE_PYTHON+= contrib/non-profit-audit-reports/csv2ods.py
+REPLACE_PYTHON+= contrib/non-profit-audit-reports/readcsv.py
REPLACE_PYTHON+= python/demo.py
REPLACE_PYTHON+= test/DocTests.py
REPLACE_PYTHON+= test/LedgerHarness.py
@@ -39,6 +37,12 @@ REPLACE_PYTHON+= test/RegressTests.py
REPLACE_PYTHON+= test/convert.py
REPLACE_PYTHON+= tools/genuuid
+REPLACE_PERL+= contrib/getquote.pl
+REPLACE_PERL+= contrib/non-profit-audit-reports/*.plx
+REPLACE_PERL+= contrib/raw/GenerateLatexExpeneseReport.pl
+
+REPLACE_SH+= contrib/repl.sh
+
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/cmake/build.mk"
Index: pkgsrc/finance/ledger/PLIST
diff -u pkgsrc/finance/ledger/PLIST:1.4 pkgsrc/finance/ledger/PLIST:1.5
--- pkgsrc/finance/ledger/PLIST:1.4 Thu Apr 27 13:16:35 2023
+++ pkgsrc/finance/ledger/PLIST Sun Jun 28 16:29:14 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2023/04/27 13:16:35 yhardy Exp $
+@comment $NetBSD: PLIST,v 1.5 2026/06/28 16:29:14 wiz Exp $
bin/ledger
include/ledger/account.h
include/ledger/amount.h
@@ -25,6 +25,7 @@ include/ledger/history.h
include/ledger/item.h
include/ledger/iterators.h
include/ledger/journal.h
+include/ledger/ledger.hh
include/ledger/lookup.h
include/ledger/mask.h
include/ledger/op.h
@@ -56,9 +57,60 @@ 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
+share/contrib/README
+share/contrib/bal
+share/contrib/bal-huquq
+share/contrib/compilation-ledger.el
+share/contrib/entry
+share/contrib/getquote-uk.py
+share/contrib/getquote.pl
+share/contrib/html/README
+share/contrib/html/ledger.xsl
+share/contrib/iso4127-commodities/iso4217ledger.sh
+share/contrib/iso4127-commodities/iso4217ledger.xsl
+share/contrib/ledger-completion.bash
+share/contrib/ledger-du
+share/contrib/non-profit-audit-reports/GPLv3
+share/contrib/non-profit-audit-reports/LICENSE
+share/contrib/non-profit-audit-reports/README
+share/contrib/non-profit-audit-reports/bank-reconcilation.plx
+share/contrib/non-profit-audit-reports/cash-receipts-and-disbursments-journals.plx
+share/contrib/non-profit-audit-reports/csv2ods.py
+share/contrib/non-profit-audit-reports/demo.sh
+share/contrib/non-profit-audit-reports/fund-report.plx
+share/contrib/non-profit-audit-reports/general-ledger-report.plx
+share/contrib/non-profit-audit-reports/ooolib2/__init__.py
+share/contrib/non-profit-audit-reports/readcsv.py
+share/contrib/non-profit-audit-reports/summary-reports.plx
+share/contrib/non-profit-audit-reports/tests/Financial/BankStuff/bank-statement.pdf
+share/contrib/non-profit-audit-reports/tests/Financial/Invoices/Invoice20110510.pdf
+share/contrib/non-profit-audit-reports/tests/Financial/Invoices/Invoice20110510.txt
+share/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/AprilHostingReceipt.pdf
+share/contrib/non-profit-audit-reports/tests/Projects/Blah/Expenses/hosting/april-invoice.pdf
+share/contrib/non-profit-audit-reports/tests/Projects/Foo/Expenses/hosting/AprilHostingReceipt.pdf
+share/contrib/non-profit-audit-reports/tests/Projects/Foo/Expenses/hosting/AprilHostingReceipt.txt
+share/contrib/non-profit-audit-reports/tests/Projects/Foo/Invoices/Invoice20100101.pdf
+share/contrib/non-profit-audit-reports/tests/Projects/Foo/earmark-record.txt
+share/contrib/non-profit-audit-reports/tests/non-profit-test-data.ledger
+share/contrib/non-profit-audit-reports/tests/non-profit-test-data_MANIFEST
+share/contrib/non-profit-audit-reports/tests/non-profit-test-data_chart-of-accounts.csv
+share/contrib/non-profit-audit-reports/tests/non-profit-test-data_general-ledger.ods
+share/contrib/non-profit-audit-reports/unpaid-accruals-report.plx
+share/contrib/raw/GenerateLatexExpeneseReport.pl
+share/contrib/raw/MetadataExample.dat
+share/contrib/raw/README
+share/contrib/raw/VerifyImages.sh
+share/contrib/raw/dotemacs.el
+share/contrib/raw/ledger-matching.el
+share/contrib/raw/ledger-shell-environment-functions
+share/contrib/repl.sh
+share/contrib/report
+share/contrib/tc
+share/contrib/ti
+share/contrib/to
+share/contrib/trend
Index: pkgsrc/finance/ledger/distinfo
diff -u pkgsrc/finance/ledger/distinfo:1.15 pkgsrc/finance/ledger/distinfo:1.16
--- pkgsrc/finance/ledger/distinfo:1.15 Fri Oct 17 08:50:14 2025
+++ pkgsrc/finance/ledger/distinfo Sun Jun 28 16:29:14 2026
@@ -1,24 +1,7 @@
-$NetBSD: distinfo,v 1.15 2025/10/17 08:50:14 wiz Exp $
+$NetBSD: distinfo,v 1.16 2026/06/28 16:29:14 wiz Exp $
-BLAKE2s (ledger-3.3.2.tar.gz) = 9204b163d03fe6d2d286614a47d65317d33c8d1bca885d7f3c9447f334b57d7c
-SHA512 (ledger-3.3.2.tar.gz) = d5d7058f0e9a02ad1d46e6780675d446070824b321f0f4c1ea6ac0c3dd4f11f259113bc36cbc796e4bb6d0a7898d6a68a25cce639e27a2b2434eec11a612ecb0
-Size (ledger-3.3.2.tar.gz) = 825274 bytes
-SHA1 (patch-CMakeLists.txt) = 9fea4c8b09c9b5325bc6d5a8134a9a4fb19055f1
-SHA1 (patch-src_CMakeLists.txt) = 8d6a16523554c98c8559702db681af6fb4f413aa
-SHA1 (patch-src_amount.cc) = 245d2dfe0182ca431188c324531ac1204be902be
-SHA1 (patch-src_expr.cc) = e707cbcba58a31534072ed490c9ba95f8dc4005d
-SHA1 (patch-src_filters.cc) = be5a1f382006ae014cea0c028d774f68d4e58ca8
-SHA1 (patch-src_format.cc) = c7fe4821bc86a9126978235fa44859f84ea92989
-SHA1 (patch-src_item.cc) = 5e97a09824a04092161d8a0ca956a43ef084a03d
-SHA1 (patch-src_lookup.cc) = 0140f88386a6a9bbfa82e48fca4f3555f40a03aa
-SHA1 (patch-src_main.cc) = 7e21f5d903e3148c184f7473d003eb2dc27581c5
-SHA1 (patch-src_option.cc) = e2fced2a03927b91afbc3b3e390b5e1d9ea09a6e
-SHA1 (patch-src_pool.cc) = 69198d4961646171b85b73fbfa6920cfe4a5ac5c
-SHA1 (patch-src_report.cc) = b17a06c54dd7c3b20e8219add23cf2b26095f6d7
-SHA1 (patch-src_strptime.cc) = 730ba4f65e10721ecf4a9135f3fe65d669f6cf47
-SHA1 (patch-src_system.hh.in) = 2993ef00740cbaa0ba60792e421a33642b8bba6e
-SHA1 (patch-src_textual.cc) = 698581b6193b39449f84ff27bc695a9b14c877c9
-SHA1 (patch-src_times.cc) = 544235432f6811f1a5c73ee72b3011709b606f17
-SHA1 (patch-src_utils.cc) = 06d8c17822a945a9d08c1122fb05f0568fdcf493
-SHA1 (patch-src_utils.h) = b050118f37e8fe2c030fdd1dd8affcbdc08626c5
-SHA1 (patch-src_xact.cc) = 89befd42102146e7a46f92ce458a7f1bc321ce55
+BLAKE2s (ledger-3.4.1.tar.gz) = d3ba730742acb2a7fae6b48b562a47763513ed357ab452c2c2eb83c73b3c6d0e
+SHA512 (ledger-3.4.1.tar.gz) = e6e3565e422d720d6d35cae17f334e9f66a969be96a8e6e99afcae31d25f34bfce6d55c516267d1d1d459f00b492cc606d7cd8493f9c5e8520cb460d45ac9fab
+Size (ledger-3.4.1.tar.gz) = 817104 bytes
+SHA1 (patch-src_CMakeLists.txt) = 4c04bec2c9ca15c329982355cc206f7a2eaa2c12
+SHA1 (patch-src_main.cc) = f6d1d06d0ea015e654b4c7002393dbcd035240ff
Index: pkgsrc/finance/ledger/patches/patch-src_CMakeLists.txt
diff -u pkgsrc/finance/ledger/patches/patch-src_CMakeLists.txt:1.1 pkgsrc/finance/ledger/patches/patch-src_CMakeLists.txt:1.2
--- pkgsrc/finance/ledger/patches/patch-src_CMakeLists.txt:1.1 Mon Jun 15 16:54:38 2020
+++ pkgsrc/finance/ledger/patches/patch-src_CMakeLists.txt Sun Jun 28 16:29:15 2026
@@ -1,16 +1,16 @@
-$NetBSD: patch-src_CMakeLists.txt,v 1.1 2020/06/15 16:54:38 adam Exp $
+$NetBSD: patch-src_CMakeLists.txt,v 1.2 2026/06/28 16:29:15 wiz Exp $
Fix problem with install_name.
---- src/CMakeLists.txt.orig 2020-05-18 05:30:10.000000000 +0000
+--- src/CMakeLists.txt.orig 2025-12-07 21:56:45.707667635 +0000
+++ src/CMakeLists.txt
-@@ -277,8 +277,7 @@ if (BUILD_LIBRARY)
+@@ -194,8 +194,8 @@ if(BUILD_LIBRARY)
add_library(libledger SHARED ${LEDGER_SOURCES})
add_ledger_library_dependencies(libledger)
set_target_properties(libledger PROPERTIES
- PREFIX ""
-- INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
+ INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
+ OUTPUT_NAME "ledger"
VERSION ${Ledger_VERSION_MAJOR}
SOVERSION ${Ledger_VERSION_MAJOR})
-
+ set_source_files_properties(
Index: pkgsrc/finance/ledger/patches/patch-src_main.cc
diff -u pkgsrc/finance/ledger/patches/patch-src_main.cc:1.2 pkgsrc/finance/ledger/patches/patch-src_main.cc:1.3
--- pkgsrc/finance/ledger/patches/patch-src_main.cc:1.2 Thu Apr 27 13:16:35 2023
+++ pkgsrc/finance/ledger/patches/patch-src_main.cc Sun Jun 28 16:29:15 2026
@@ -1,18 +1,18 @@
-$NetBSD: patch-src_main.cc,v 1.2 2023/04/27 13:16:35 yhardy Exp $
+$NetBSD: patch-src_main.cc,v 1.3 2026/06/28 16:29:15 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/main.cc.orig 2023-03-03 10:49:39.000000000 +0000
+--- src/main.cc.orig 2025-12-07 21:59:44.630131187 +0000
+++ src/main.cc
@@ -40,7 +40,7 @@
#endif
- #ifdef HAVE_EDIT
+ #if HAVE_EDIT
-#include <editline/readline.h>
+#include <readline/readline.h>
- #endif
-
- using namespace ledger;
+ #elif HAVE_READLINE
+ #include <readline/readline.h>
+ #include <readline/history.h>
Home |
Main Index |
Thread Index |
Old Index