|
1 | 1 | class Ledger < Formula |
2 | 2 | desc "Command-line, double-entry accounting tool" |
3 | 3 | homepage "https://ledger-cli.org/" |
| 4 | + url "https://github.com/ledger/ledger/archive/refs/tags/v3.4.0.tar.gz" |
| 5 | + sha256 "1d60b5c78631bbea49bf8201234c15ff9c7e9f2df18d97d27080c8922eae3e13" |
4 | 6 | license "BSD-3-Clause" |
5 | | - revision 10 |
6 | 7 | head "https://github.com/ledger/ledger.git", branch: "master" |
7 | 8 |
|
8 | | - stable do |
9 | | - url "https://github.com/ledger/ledger/archive/refs/tags/v3.3.2.tar.gz" |
10 | | - sha256 "555296ee1e870ff04e2356676977dcf55ebab5ad79126667bc56464cb1142035" |
11 | | - |
12 | | - # Support building with mandoc |
13 | | - # Remove with v3.4.x |
14 | | - patch do |
15 | | - url "https://github.com/ledger/ledger/commit/f40cee6c3af4c9cec05adf520fc7077a45060434.patch?full_index=1" |
16 | | - sha256 "d5be89dbadff7e564a750c10cdb04b83e875452071a2115dd70aae6e7a8ee76c" |
17 | | - end |
18 | | - patch do |
19 | | - url "https://github.com/ledger/ledger/commit/14b90d8d952b40e0a474223e7f74a1e6505d5450.patch?full_index=1" |
20 | | - sha256 "d250557e385163e3ad3002117ebe985af040d915aab49ae1ea342db82398aeda" |
21 | | - end |
22 | | - |
23 | | - # Backport fix to build with `boost` 1.85.0 |
24 | | - patch do |
25 | | - url "https://github.com/ledger/ledger/commit/46207852174feb5c76c7ab894bc13b4f388bf501.patch?full_index=1" |
26 | | - sha256 "8aaf8daf4748f359946c64488c96345f4a4bdf928f6ec7a1003610174428599f" |
27 | | - end |
28 | | - |
29 | | - # Backport fixes to build with `boost` 1.86.0 |
30 | | - # Ref: https://github.com/ledger/ledger/pull/2381 |
31 | | - patch do |
32 | | - url "https://github.com/ledger/ledger/commit/ad93c185644cfcb14fe4a673e74a0cb5c954a4b4.patch?full_index=1" |
33 | | - sha256 "3d2db6b116cd7e8a1051ac7f92853f72c145ff0487f2f4e12e650ee7ec9e67b0" |
34 | | - end |
35 | | - patch do |
36 | | - url "https://github.com/ledger/ledger/commit/4f4cc1688a8e8a7c03f18603cc5a4159d9c89ca3.patch?full_index=1" |
37 | | - sha256 "938d62974ee507b851239b6525c98c8cb1c81e24e8ae2939d4675d97a8ec8f67" |
38 | | - end |
39 | | - patch do |
40 | | - url "https://github.com/ledger/ledger/commit/5320c9f719a309ddacdbe77181cabeb351949013.patch?full_index=1" |
41 | | - sha256 "9794113b28eabdcfc8b900eafc8dc2c0698409c0b3d856083ed5e38818289ba1" |
42 | | - end |
43 | | - |
44 | | - # CMakeLists.txt update for use of `CMAKE_CXX_STANDARD` |
45 | | - # It is set to 17 but we have to use 14 for compatibility issue with other sources |
46 | | - patch do |
47 | | - url "https://github.com/ledger/ledger/commit/8e64a1cf7009bbe7b89dc8bcb7abd00e39815b0b.patch?full_index=1" |
48 | | - sha256 "116cc2c4d716df516c2ad89241bc9fed6943013aacdfcd03757745202416bc72" |
49 | | - end |
50 | | - patch do |
51 | | - url "https://github.com/ledger/ledger/commit/19b0553dfbcd65c3c601b89e7020bff8013cb461.patch?full_index=1" |
52 | | - sha256 "9f70e40ca3eec216959a02e7f4ea626d265957443c2ec5d5219977ed2e525332" |
53 | | - end |
54 | | - end |
55 | | - |
56 | 9 | livecheck do |
57 | 10 | url :stable |
58 | 11 | regex(/^v?(\d+(?:\.\d+)+)$/i) |
59 | 12 | end |
60 | 13 |
|
61 | | - no_autobump! because: :requires_manual_review |
62 | | - |
63 | 14 | bottle do |
64 | 15 | rebuild 1 |
65 | 16 | sha256 cellar: :any, arm64_tahoe: "7afc1dd1857bd994826c06d94c004b114ef6ec065bcd4c35c98a75de1ca5c286" |
@@ -87,18 +38,6 @@ class Ledger < Formula |
87 | 38 | end |
88 | 39 |
|
89 | 40 | def install |
90 | | - if build.stable? |
91 | | - inreplace "CMakeLists.txt" do |s| |
92 | | - # Workaround until next release as commit doesn't apply |
93 | | - # https://github.com/ledger/ledger/commit/956d8ea37247b34a5300c9d55abc7c75324fff33 |
94 | | - s.gsub! "cmake_minimum_required(VERSION 3.0)", "cmake_minimum_required(VERSION 3.5)" |
95 | | - |
96 | | - # Workaround to build with Boost 1.89.0 until release with fix |
97 | | - # PR for HEAD: https://github.com/ledger/ledger/pull/2430 |
98 | | - s.gsub! "REQUIRED date_time filesystem system ", "REQUIRED date_time filesystem " |
99 | | - end |
100 | | - end |
101 | | - |
102 | 41 | ENV.prepend_path "PATH", Formula["[email protected]"].opt_libexec/ "bin" |
103 | 42 |
|
104 | 43 | args = %W[ |
|
0 commit comments