Skip to content

Commit 3a69bce

Browse files
BrewTestBotdaeho-ro
authored andcommitted
ktoblzcheck 1.59
ktoblzcheck: remove build patch Signed-off-by: Rui Chen <[email protected]>
1 parent f7ca0e4 commit 3a69bce

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Formula/k/ktoblzcheck.rb

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Ktoblzcheck < Formula
22
desc "Library for German banks"
33
homepage "https://ktoblzcheck.sourceforge.net/"
4-
url "https://downloads.sourceforge.net/project/ktoblzcheck/ktoblzcheck-1.58.tar.gz"
5-
sha256 "f598678afa22bf06d8952d31bc7f66faed253e3fa3cf87f4a948ade0bcdb91cd"
4+
url "https://downloads.sourceforge.net/project/ktoblzcheck/ktoblzcheck-1.59.tar.gz"
5+
sha256 "3cd33880d2425e8fa3be9918c85485514f53e04b0b986bcf7bd003fc53071fa7"
66
license "LGPL-2.1-or-later"
77

88
livecheck do
@@ -36,26 +36,40 @@ class Ktoblzcheck < Formula
3636
sha256 "cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050"
3737
end
3838

39+
# Bankdata resource
40+
resource "ktoblzcheck-data" do
41+
url "https://downloads.sourceforge.net/project/ktoblzcheck/ktoblzcheck-data-20250515.tar.gz"
42+
sha256 "307479cd3c487ba6d6c4f5966634a6023c1f29d4386b93a5e96cea7541bebe4c"
43+
end
44+
3945
def python3
4046
"python3.13"
4147
end
4248

4349
def install
4450
ENV.append_path "PYTHONPATH", buildpath/Language::Python.site_packages(python3)
4551
resources.each do |r|
52+
next if r.name == "ktoblzcheck-data"
53+
4654
r.stage do
4755
system python3, "-m", "pip", "install", *std_pip_args(prefix: buildpath, build_isolation: true), "."
4856
end
4957
end
5058

59+
resource("ktoblzcheck-data").stage do
60+
system "cmake", "-S", ".", "-B", "data", *std_cmake_args
61+
system "cmake", "--build", "data"
62+
system "cmake", "--install", "data"
63+
64+
# Move built bankdata to the path of bankdata for `ktoblzcheck`
65+
(buildpath/"src/bankdata").install "data"
66+
end
67+
5168
# Work around to help Python bindings find shared library on macOS.
5269
# OSError: dlopen(ktoblzcheck, 0x0006): tried: 'ktoblzcheck' (no such file), ...
5370
# OSError: dlopen(libktoblzcheck.so.1, 0x0006): tried: 'libktoblzcheck.so.1' (no such file), ...
5471
inreplace "src/python/ktoblzcheck.py", /'libktoblzcheck\.so\.(\d+)'/, "'libktoblzcheck.\\1.dylib'" if OS.mac?
5572

56-
# Fix to changed filename for `NL_BANK_WEBSITE_URL`
57-
inreplace "CMakeLists.txt", "BIC-lijst-NL.xlsx", "BIC-lijst-NL-2.xlsx"
58-
5973
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DCMAKE_INSTALL_RPATH=#{opt_lib}"
6074
system "cmake", "--build", "build"
6175
system "cmake", "--install", "build"

0 commit comments

Comments
 (0)