aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2011-01-16 15:01:20 +0000
committerMike McQuaid2011-01-16 15:02:14 +0000
commit64d10ab89087721021cd88595e27869687b91fb3 (patch)
tree6700aaec9e0698c61cf6765901465b47987543df /Library/Formula
parent77ffd4a80544591b6671cebb0f0e9432ffffe5cd (diff)
downloadhomebrew-64d10ab89087721021cd88595e27869687b91fb3.tar.bz2
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 #3865.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mutt.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/mutt.rb b/Library/Formula/mutt.rb
index 281400a17..2db3d1d8f 100644
--- a/Library/Formula/mutt.rb
+++ b/Library/Formula/mutt.rb
@@ -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",