38 lines
1.3 KiB
Ruby
38 lines
1.3 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.3.tar.gz"
|
|
sha256 "7b5f21989afdd9cf63ab4a2df4ca398782f24fda2e2411f88188e00ab49e3069"
|
|
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: "2bba6b3d799e65cac444879650535b7f683836f5b23c6e5467f5797ff788b460"
|
|
sha256 big_sur: "3cc86d7824a38ab40a26dc862b9edd8aa927615d98787509a8ce0e53a4970e90"
|
|
sha256 catalina: "0c13380f3316db596f2bc7da653b66cce4da67a57143152582f2915bc75ffd9e"
|
|
sha256 mojave: "0c964ef5cb85a5783e5e717e2a74a69d446191237ae7da74a3104eb03c77bb66"
|
|
sha256 x86_64_linux: "0539cc89e0874fe414f30db5b87edf7cfdc2d899694b8546f4312068ba408273"
|
|
end
|
|
|
|
depends_on "open-sp"
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
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
|