diff options
Diffstat (limited to 'Library/Formula/mutt.rb')
| -rw-r--r-- | Library/Formula/mutt.rb | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/Library/Formula/mutt.rb b/Library/Formula/mutt.rb index f8b256c5f..c56a524d6 100644 --- a/Library/Formula/mutt.rb +++ b/Library/Formula/mutt.rb @@ -4,7 +4,7 @@ class Mutt <Formula url 'ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz' homepage 'http://www.mutt.org/' md5 '027cdd9959203de0c3c64149a7ee351c' - + depends_on 'tokyo-cabinet' def options @@ -15,39 +15,36 @@ class Mutt <Formula end def patches - patches = [] + p = [] + if ARGV.include? '--sidebar-patch' - patches << 'http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt' + p << 'http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt' end + if ARGV.include? '--trash-patch' - patches << 'http://trac.macports.org/export/69644/trunk/dports/mail/mutt-devel/files/patch-1.5.20.bk.trash_folder-purge_message.1' + p << 'http://trac.macports.org/export/69644/trunk/dports/mail/mutt-devel/files/patch-1.5.20.bk.trash_folder-purge_message.1' end - patches + + return p end def install - configure_args = [ - "--prefix=#{prefix}", - "--disable-debug", - "--disable-dependency-tracking", - "--disable-warnings", - "--with-ssl", - "--with-sasl", - "--with-gnutls", - "--with-gss", - "--enable-imap", - "--enable-smtp", - "--enable-pop", - "--enable-hcache", - "--with-tokyocabinet", - - # This is just a trick to keep 'make install' from trying to chgrp - # the mutt_dotlock file (which we can't do if we're running as an - # unpriviledged user) - "--with-homespool=.mbox" - ] - - system "./configure", *configure_args + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--disable-warnings", + "--prefix=#{prefix}", + "--with-ssl", + "--with-sasl", + "--with-gnutls", + "--with-gss", + "--enable-imap", + "--enable-smtp", + "--enable-pop", + "--enable-hcache", + "--with-tokyocabinet", + # This is just a trick to keep 'make install' from trying to chgrp + # the mutt_dotlock file (which we can't do if we're running as an + # unpriviledged user) + "--with-homespool=.mbox" system "make install" end end |
