homebrew-core/Formula/libofx.rb

35 lines
1.2 KiB
Ruby

class Libofx < Formula
desc "Library to support OFX command responses"
homepage "https://libofx.sourceforge.io"
url "https://downloads.sourceforge.net/project/libofx/libofx/libofx-0.10.2.tar.gz"
sha256 "7164fbe6c570867296f38f46f9def62ea993e46f2a67a9af1771d8edb877eb18"
license "GPL-2.0-or-later"
livecheck do
url :stable
regex(%r{url=.*?/libofx[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 arm64_big_sur: "5f99ba4a0ff227ff1ab95201f5064e334612001af2dd1d9bd2d178d018142759"
sha256 big_sur: "ff79aca1e58097d1eda8e2bd0b67d76e897a4146b1be0355adb38528911ec526"
sha256 catalina: "0c663487948a3090f30bb2f9d034132c9c5ff7c034efc703c49746d573e22d45"
sha256 mojave: "5a8264996840f6844933633f245463f7d6c7a5c625d6688a89083a393d04f650"
end
depends_on "open-sp"
def install
opensp = Formula["open-sp"]
system "./configure", "--disable-dependency-tracking",
"--with-opensp-includes=#{opensp.opt_include}/OpenSP",
"--with-opensp-libs=#{opensp.opt_lib}",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_equal "ofxdump #{version}", shell_output("#{bin}/ofxdump -V").chomp
end
end