2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-04 04:29:53 +00:00
|
|
|
|
|
|
|
class Mutt <Formula
|
2010-07-29 17:28:30 +00:00
|
|
|
url 'ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz'
|
|
|
|
homepage 'http://www.mutt.org/'
|
|
|
|
md5 '027cdd9959203de0c3c64149a7ee351c'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-03 21:57:19 +00:00
|
|
|
depends_on 'tokyo-cabinet'
|
2009-09-04 04:29:53 +00:00
|
|
|
|
2010-01-14 22:36:08 +00:00
|
|
|
def options
|
|
|
|
[
|
2010-03-03 21:57:19 +00:00
|
|
|
['--sidebar-patch', "Apply sidebar (folder list) patch"],
|
2011-01-16 15:01:20 +00:00
|
|
|
['--enable-debug', "Build with debug option enabled"],
|
2010-03-03 21:57:19 +00:00
|
|
|
['--trash-patch', "Apply trash folder patch"]
|
2010-01-14 22:36:08 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def patches
|
2011-01-12 11:06:12 +00:00
|
|
|
# Fix unsubscribe malformed folder
|
|
|
|
# See: http://dev.mutt.org/trac/ticket/3389
|
|
|
|
p = { :p0 => [ 'http://dev.mutt.org/trac/changeset/25e46aad362b?format=diff&new=5914:25e46aad362b' ] }
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-01-14 22:36:08 +00:00
|
|
|
if ARGV.include? '--sidebar-patch'
|
2010-04-07 05:58:35 +00:00
|
|
|
p << 'http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt'
|
2010-01-14 22:36:08 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-03 21:57:19 +00:00
|
|
|
if ARGV.include? '--trash-patch'
|
2010-04-07 05:58:35 +00:00
|
|
|
p << 'http://trac.macports.org/export/69644/trunk/dports/mail/mutt-devel/files/patch-1.5.20.bk.trash_folder-purge_message.1'
|
2010-03-03 21:57:19 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
return p
|
2010-01-14 22:36:08 +00:00
|
|
|
end
|
|
|
|
|
2009-09-04 04:29:53 +00:00
|
|
|
def install
|
2011-01-16 15:01:20 +00:00
|
|
|
if ARGV.include? '--enable-debug'
|
|
|
|
debug = "--enable-debug"
|
|
|
|
else
|
|
|
|
debug = "--disable-debug"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", "#{debug}", "--disable-dependency-tracking",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--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"
|
2009-09-04 04:29:53 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|