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"],
|
|
|
|
['--trash-patch', "Apply trash folder patch"]
|
2010-01-14 22:36:08 +00:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
def patches
|
2010-04-07 05:58:35 +00:00
|
|
|
p = []
|
|
|
|
|
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
|
2010-04-07 05:58:35 +00:00
|
|
|
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"
|
2009-09-04 04:29:53 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|