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:
parent
e2ab21e971
commit
b50e91ca18
1 changed files with 8 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue