ledger: option to disable Python support

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Guan Yang 2012-01-21 13:24:08 -05:00 committed by Adam Vandenberg
parent 22d76b72d2
commit df94059995

View file

@ -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