Add --enable-debug option to mutt.

This is useful if you want to build a mutt which can write
~/.muttdebug[0-9] log files to see what is going on behind
the scenes.

Closes Homebrew/homebrew#3865.
This commit is contained in:
Mike McQuaid 2011-01-16 15:01:20 +00:00
parent e2ab21e971
commit b50e91ca18

View file

@ -10,6 +10,7 @@ class Mutt <Formula
def options
[
['--sidebar-patch', "Apply sidebar (folder list) patch"],
['--enable-debug', "Build with debug option enabled"],
['--trash-patch', "Apply trash folder patch"]
]
end
@ -31,7 +32,13 @@ class Mutt <Formula
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
if ARGV.include? '--enable-debug'
debug = "--enable-debug"
else
debug = "--disable-debug"
end
system "./configure", "#{debug}", "--disable-dependency-tracking",
"--disable-warnings",
"--prefix=#{prefix}",
"--with-ssl",