diff options
| author | Jack Nagel | 2014-06-05 16:36:23 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-05 17:28:59 -0500 |
| commit | 7782e10f777bfa56b00bdae324e294fbf500ae79 (patch) | |
| tree | 6d3c30111153129afb777110287cac5a47ff70d3 | |
| parent | a1a4432bf667d5f7a2c348d6110c0e6da827ec85 (diff) | |
| download | homebrew-7782e10f777bfa56b00bdae324e294fbf500ae79.tar.bz2 | |
ledger: clean up args
- remove ineffective inreplace
- clean up args array
- specify boost location
| -rw-r--r-- | Library/Formula/ledger.rb | 13 |
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' |
