blob: 0be3d62bfd9e03d527c2ce8b4ff6a70daa4a331c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
require 'formula'
class Mutt <Formula
@url='ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz'
@homepage='http://www.mutt.org/'
@md5='027cdd9959203de0c3c64149a7ee351c'
def options
[
['--sidebar-patch', "Apply sidebar (folder list) patch"]
]
end
def patches
if ARGV.include? '--sidebar-patch'
'http://lunar-linux.org/~tchan/mutt/patch-1.5.20.sidebar.20090619.txt'
end
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",
# 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 "make install"
end
end
|