summaryrefslogtreecommitdiff
path: root/finance/ledger
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2022-05-30 08:57:10 +0300
committerDima Panov <fluffy@FreeBSD.org>2022-05-30 08:57:10 +0300
commit361902032407c73252eed5b44c18d5c527910966 (patch)
tree3a529028a89c1f4eb6e799ae7f93ffe8fff3e886 /finance/ledger
parentdevel/R-cran-future: Update to 1.26.1 (diff)
finance/ledger: Fix build with boost 1.79.0 (+)
PR: 264330
Diffstat (limited to 'finance/ledger')
-rw-r--r--finance/ledger/Makefile3
-rw-r--r--finance/ledger/files/patch-system.hh.in11
2 files changed, 12 insertions, 2 deletions
diff --git a/finance/ledger/Makefile b/finance/ledger/Makefile
index 6a6c16e33217..433bd84cb9fa 100644
--- a/finance/ledger/Makefile
+++ b/finance/ledger/Makefile
@@ -2,7 +2,7 @@
PORTNAME= ledger
PORTVERSION= 3.2.1
-PORTREVISION= 1
+PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= finance
@@ -13,7 +13,6 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: ibledger.so.3: undefined reference to boost::match_results
-BROKEN= error: no template named 'scoped_ptr'
BUILD_DEPENDS= ${LOCALBASE}/include/utf8cpp/utf8.h:devel/utf8cpp
LIB_DEPENDS= libgmp.so:math/gmp \
diff --git a/finance/ledger/files/patch-system.hh.in b/finance/ledger/files/patch-system.hh.in
new file mode 100644
index 000000000000..00d27252f9e6
--- /dev/null
+++ b/finance/ledger/files/patch-system.hh.in
@@ -0,0 +1,11 @@
+diff -ruN ledger-3.2.1/src/system.hh.in ledger-3.2.1-patched/src/system.hh.in
+--- src/system.hh.in.orig 2020-05-18 00:30:10.000000000 -0500
++++ src/system.hh.in 2022-05-29 08:49:10.857528000 -0500
+@@ -153,6 +153,7 @@
+ #include <boost/function.hpp>
+
+ #include <boost/intrusive_ptr.hpp>
++#include <boost/smart_ptr/scoped_ptr.hpp>
+
+ #include <boost/iostreams/stream.hpp>
+ #include <boost/iostreams/write.hpp>