From e83babdfbb5e74e6e259378cf53fc124c3ccbc56 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Wed, 8 Feb 2023 11:02:23 +0000 Subject: [PATCH] ledger: update to 3.3.0 (#15013) --- packages/ledger/build.sh | 5 ++--- packages/ledger/src-report.h.patch | 28 +++++++++++++++------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/packages/ledger/build.sh b/packages/ledger/build.sh index 7d181b593c..f64e39dbba 100644 --- a/packages/ledger/build.sh +++ b/packages/ledger/build.sh @@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.ledger-cli.org TERMUX_PKG_DESCRIPTION="Powerful, double-entry accounting system" TERMUX_PKG_LICENSE="BSD 3-Clause" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=3.2.1 -TERMUX_PKG_REVISION=14 +TERMUX_PKG_VERSION=3.3.0 TERMUX_PKG_SRCURL=https://github.com/ledger/ledger/archive/v${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a +TERMUX_PKG_SHA256=42307121666b5195a122857ec572e554b77ecf6b12c53e716756c9dae20dc7c1 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="boost, libc++, libedit, libmpfr, libgmp, python" TERMUX_PKG_BUILD_DEPENDS="boost-headers, utf8cpp" diff --git a/packages/ledger/src-report.h.patch b/packages/ledger/src-report.h.patch index 0875a81142..aec74614c1 100644 --- a/packages/ledger/src-report.h.patch +++ b/packages/ledger/src-report.h.patch @@ -1,14 +1,16 @@ ---- ./src/report.h~ 2020-05-18 07:30:10.000000000 +0200 -+++ ./src/report.h 2022-10-05 19:35:44.216825319 +0200 -@@ -813,9 +813,8 @@ - CTOR(report_t, pager_) { - if (! std::getenv("PAGER") && isatty(STDOUT_FILENO)) { - bool have_less = false; -- if (exists(path("/opt/local/bin/less")) || -- exists(path("/usr/local/bin/less")) || -- exists(path("/usr/bin/less"))) -+ if (exists(path("@TERMUX_PREFIX@/bin/less")) || -+ exists(path("@TERMUX_PREFIX@/local/bin/less"))) - have_less = true; +diff --git a/src/report.h b/src/report.h +index 6c33889c..6722fbf6 100644 +--- a/src/report.h ++++ b/src/report.h +@@ -814,9 +814,8 @@ public: + if (isatty(STDOUT_FILENO)) { + if (! std::getenv("PAGER")) { + bool have_less = false; +- if (exists(path("/opt/local/bin/less")) || +- exists(path("/usr/local/bin/less")) || +- exists(path("/usr/bin/less"))) ++ if (exists(path("@TERMUX_PREFIX@/bin/less")) || ++ exists(path("@TERMUX_PREFIX@/local/bin/less"))) + have_less = true; - if (have_less) { + if (have_less) {