homebank: add optional OFX filetype support.

Closes Homebrew/homebrew#23239.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
orbital-fox 2013-10-13 10:45:41 +03:00 committed by Mike McQuaid
parent 0f3a692376
commit 6ae3030ae1

View file

@ -12,10 +12,14 @@ class Homebank < Formula
depends_on 'hicolor-icon-theme'
depends_on :freetype
depends_on :fontconfig
depends_on 'libofx' => :optional
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}"]
args << "--with-ofx" if build.with? 'libofx'
system "./configure", *args
system "chmod +x ./install-sh"
system "make install"
end