aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorGuan Yang2012-01-21 13:24:08 -0500
committerAdam Vandenberg2012-01-29 21:49:47 -0800
commit8c0ab9d87f5e089c07ed1a8a282f6b954da41f19 (patch)
treec8c5f135da903af694fea41ccded4477a049749b /Library/Formula
parent57c5beec19b8aedf955c3bcce3c7931ddd7c9adb (diff)
downloadhomebrew-8c0ab9d87f5e089c07ed1a8a282f6b954da41f19.tar.bz2
ledger: option to disable Python support
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ledger.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/ledger.rb b/Library/Formula/ledger.rb
index 13ad3df6e..9e4467493 100644
--- a/Library/Formula/ledger.rb
+++ b/Library/Formula/ledger.rb
@@ -13,13 +13,18 @@ class Ledger < Formula
depends_on 'pcre'
depends_on 'expat'
+ def options
+ [['--no-python', 'Disable Python support']]
+ end
+
def install
unless 'HEAD' == @version
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
else
# gmp installs x86_64 only
inreplace 'acprep', "'-arch', 'i386', ", "" if Hardware.is_64_bit?
- system "./acprep -j#{ENV.make_jobs} opt make -- --prefix=#{prefix}"
+ no_python = ((ARGV.include? '--no-python') ? '--no-python' : '')
+ system "./acprep #{no_python} -j#{ENV.make_jobs} opt make -- --prefix=#{prefix}"
end
system 'make'
ENV.deparallelize