aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-06-05 16:36:23 -0500
committerJack Nagel2014-06-05 17:28:59 -0500
commit7782e10f777bfa56b00bdae324e294fbf500ae79 (patch)
tree6d3c30111153129afb777110287cac5a47ff70d3
parenta1a4432bf667d5f7a2c348d6110c0e6da827ec85 (diff)
downloadhomebrew-7782e10f777bfa56b00bdae324e294fbf500ae79.tar.bz2
ledger: clean up args
- remove ineffective inreplace - clean up args array - specify boost location
-rw-r--r--Library/Formula/ledger.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/ledger.rb b/Library/Formula/ledger.rb
index 52ad2b0ab..7043ba2a6 100644
--- a/Library/Formula/ledger.rb
+++ b/Library/Formula/ledger.rb
@@ -29,9 +29,14 @@ class Ledger < Formula
def install
(buildpath/'lib/utfcpp').install resource('utfcpp')
- # Support homebrew not at /usr/local. Also support Xcode-only setups:
- inreplace 'acprep', 'search_prefixes = [', "search_prefixes = ['#{HOMEBREW_PREFIX}','#{MacOS.sdk_path}/usr',"
- args = [((build.include? 'debug') ? 'debug' : 'opt'), "make", "install", "-N", "-j#{ENV.make_jobs}", "--output=build"]
+ flavor = build.include?("debug") ? "debug" : "opt"
+
+ args = %W[
+ --prefix=#{prefix}
+ #{flavor} make install -N -j#{ENV.make_jobs}
+ --output=build
+ --boost=#{Formula["boost"].opt_prefix}
+ ]
if build.with? 'python'
# Per #25118, CMake does a poor job of detecting a brewed Python.
@@ -45,7 +50,7 @@ class Ledger < Formula
args << "-DPYTHON_INCLUDE_DIR='#{python_prefix}/Headers'"
end
- system "./acprep", "--prefix=#{prefix}", *args
+ system "./acprep", *args
(share+'ledger/examples').install Dir['test/input/*.dat']
(share+'ledger').install 'contrib'
if build.with? 'python'