ledger: rebuild

* ledger: migrate to python@3.11
* ledger: patch compatibility for Python 3.10 and later

Closes #119018.

Co-authored-by: Michael Cho <cho-m@tuta.io>
Signed-off-by: Michael Cho <20700669+cho-m@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
ryenus 2022-12-26 14:52:28 +08:00 committed by BrewTestBot
parent 70df2a9f08
commit c2adda0ecc
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 13 additions and 4 deletions

View File

@ -1,12 +1,21 @@
class Ledger < Formula
desc "Command-line, double-entry accounting tool"
homepage "https://ledger-cli.org/"
url "https://github.com/ledger/ledger/archive/v3.2.1.tar.gz"
sha256 "92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a"
license "BSD-3-Clause"
revision 10
head "https://github.com/ledger/ledger.git", branch: "master"
stable do
url "https://github.com/ledger/ledger/archive/v3.2.1.tar.gz"
sha256 "92bf09bc385b171987f456fe3ee9fa998ed5e40b97b3acdd562b663aa364384a"
# Add compatibility for Python 3.10 and later. Remove in the next release
patch do
url "https://github.com/ledger/ledger/commit/c66ca93b2e9d8db82d196f144ba60482fb92d716.patch?full_index=1"
sha256 "eaa8ec87f6abe2dc6a5c8530cc49856872037f1463ab2e98f037e2b263841478"
end
end
livecheck do
url :stable
regex(/^v?(\d+(?:\.\d+)+)$/i)
@ -27,7 +36,7 @@ class Ledger < Formula
depends_on "boost"
depends_on "gmp"
depends_on "mpfr"
depends_on "python@3.10"
depends_on "python@3.11"
uses_from_macos "libedit"
@ -45,7 +54,7 @@ class Ledger < Formula
def install
ENV.cxx11
ENV.prepend_path "PATH", Formula["python@3.10"].opt_libexec/"bin"
ENV.prepend_path "PATH", Formula["python@3.11"].opt_libexec/"bin"
args = %W[
--jobs=#{ENV.make_jobs}