aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ledger.rb
diff options
context:
space:
mode:
authorAndrew Childs2013-01-28 13:23:35 +1300
committerAdam Vandenberg2013-01-29 13:50:55 -0800
commit43560a75d1edd857cbc7dc04f6d704e007f3ecaf (patch)
tree8c103e8128ab42554748147f96c6a775db9fb924 /Library/Formula/ledger.rb
parent4d8b94a95d77986d1364a37e1ed03a8c80981941 (diff)
downloadhomebrew-43560a75d1edd857cbc7dc04f6d704e007f3ecaf.tar.bz2
ledger: ofx support
Closes #17354. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/ledger.rb')
-rw-r--r--Library/Formula/ledger.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/ledger.rb b/Library/Formula/ledger.rb
index 72cf74323..abc611a94 100644
--- a/Library/Formula/ledger.rb
+++ b/Library/Formula/ledger.rb
@@ -18,6 +18,7 @@ class Ledger < Formula
depends_on 'pcre'
depends_on 'expat'
depends_on 'cmake' if build.head?
+ depends_on 'libofx' => :optional unless build.head?
def patches
p = {:p1 => []}
@@ -35,8 +36,14 @@ class Ledger < Formula
system "./acprep", *args
system "cmake", "-D", "CMAKE_INSTALL_PREFIX=#{prefix}", "-P", "build/cmake_install.cmake"
else
+ args = []
+ if build.with? 'libofx'
+ args << "--enable-ofx"
+ # the libofx.h appears to have moved to a subdirectory
+ ENV.append 'CXXFLAGS', "-I#{Formula.factory('libofx').opt_prefix}/include/libofx"
+ end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
+ "--prefix=#{prefix}", *args
system 'make'
ENV.deparallelize
system 'make install'