2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-04 04:29:53 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mutt < Formula
|
2010-07-29 17:28:30 +00:00
|
|
|
homepage 'http://www.mutt.org/'
|
2014-03-19 16:13:18 +00:00
|
|
|
url 'ftp://ftp.mutt.org/mutt/mutt-1.5.23.tar.gz'
|
2014-03-27 17:29:59 +00:00
|
|
|
mirror 'http://fossies.org/linux/misc/mutt-1.5.23.tar.gz'
|
2014-03-19 16:13:18 +00:00
|
|
|
sha1 '8ac821d8b1e25504a31bf5fda9c08d93a4acc862'
|
2014-04-09 10:25:57 +00:00
|
|
|
revision 1
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2014-03-19 16:28:53 +00:00
|
|
|
bottle do
|
2014-04-09 11:00:24 +00:00
|
|
|
sha1 "0b5b7346ec5450821d9416151426917aba099c5e" => :mavericks
|
|
|
|
sha1 "13e20a8a78933a64ba857ad3734ac45d421bd7e2" => :mountain_lion
|
|
|
|
sha1 "2772138cb1e6b63d0e0095790261fa6c2bad1068" => :lion
|
2014-03-19 16:28:53 +00:00
|
|
|
end
|
|
|
|
|
2013-09-18 03:06:45 +00:00
|
|
|
head do
|
2013-11-04 16:28:44 +00:00
|
|
|
url 'http://dev.mutt.org/hg/mutt#default', :using => :hg
|
2013-09-18 03:06:45 +00:00
|
|
|
|
|
|
|
resource 'html' do
|
|
|
|
url 'http://dev.mutt.org/doc/manual.html', :using => :nounzip
|
|
|
|
end
|
2013-09-22 01:47:31 +00:00
|
|
|
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
2013-09-18 03:06:45 +00:00
|
|
|
end
|
2013-06-26 19:10:46 +00:00
|
|
|
|
2013-12-24 10:37:00 +00:00
|
|
|
unless Tab.for_name('signing-party').used_options.include? 'with-rename-pgpring'
|
2013-12-24 09:38:59 +00:00
|
|
|
conflicts_with 'signing-party',
|
|
|
|
:because => 'mutt installs a private copy of pgpring'
|
|
|
|
end
|
2013-11-06 15:28:15 +00:00
|
|
|
|
2013-11-07 14:28:42 +00:00
|
|
|
conflicts_with 'tin',
|
|
|
|
:because => 'both install mmdf.5 and mbox.5 man pages'
|
|
|
|
|
2013-01-19 03:05:25 +00:00
|
|
|
option "with-debug", "Build with debug option enabled"
|
|
|
|
option "with-trash-patch", "Apply trash folder patch"
|
2013-12-08 22:12:51 +00:00
|
|
|
option "with-s-lang", "Build against slang instead of ncurses"
|
2013-01-19 03:05:25 +00:00
|
|
|
option "with-ignore-thread-patch", "Apply ignore-thread patch"
|
|
|
|
option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch"
|
2013-06-28 23:01:01 +00:00
|
|
|
option "with-confirm-attachment-patch", "Apply confirm attachment patch"
|
2010-01-14 22:36:08 +00:00
|
|
|
|
2014-03-17 18:35:41 +00:00
|
|
|
depends_on 'openssl'
|
2013-08-07 05:33:57 +00:00
|
|
|
depends_on 'tokyo-cabinet'
|
|
|
|
depends_on 's-lang' => :optional
|
2013-12-24 22:46:10 +00:00
|
|
|
depends_on 'gpgme' => :optional
|
2013-08-07 05:33:57 +00:00
|
|
|
|
2014-03-21 15:19:55 +00:00
|
|
|
patch do
|
|
|
|
url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder"
|
|
|
|
sha1 "6c8ce66021d89a063e67975a3730215c20cf2859"
|
|
|
|
end if build.with? "trash-patch"
|
2011-07-10 19:08:39 +00:00
|
|
|
|
2014-03-21 15:19:55 +00:00
|
|
|
# original source for this went missing, patch sourced from Arch at
|
|
|
|
# https://aur.archlinux.org/packages/mutt-ignore-thread/
|
|
|
|
patch do
|
|
|
|
url "https://gist.github.com/mistydemeo/5522742/raw/1439cc157ab673dc8061784829eea267cd736624/ignore-thread-1.5.21.patch"
|
|
|
|
sha1 "dbcf5de46a559bca425028a18da0a63d34f722d3"
|
|
|
|
end if build.with? "ignore-thread-patch"
|
2013-01-19 03:05:25 +00:00
|
|
|
|
2014-03-21 15:19:55 +00:00
|
|
|
patch do
|
|
|
|
url "http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features-old/patch-1.5.4.vk.pgp_verbose_mime"
|
|
|
|
sha1 "a436f967aa46663cfc9b8933a6499ca165ec0a21"
|
|
|
|
end if build.with? "pgp-verbose-mime-patch"
|
|
|
|
|
|
|
|
patch do
|
|
|
|
url "https://gist.github.com/tlvince/5741641/raw/c926ca307dc97727c2bd88a84dcb0d7ac3bb4bf5/mutt-attach.patch"
|
|
|
|
sha1 "94da52d50508d8951aa78ca4b073023414866be1"
|
|
|
|
end if build.with? "confirm-attachment-patch"
|
2010-01-14 22:36:08 +00:00
|
|
|
|
2009-09-04 04:29:53 +00:00
|
|
|
def install
|
2011-01-17 01:37:37 +00:00
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--disable-warnings",
|
|
|
|
"--prefix=#{prefix}",
|
2014-03-17 18:35:41 +00:00
|
|
|
"--with-ssl=#{Formula['openssl'].opt_prefix}",
|
2011-01-17 01:37:37 +00:00
|
|
|
"--with-sasl",
|
|
|
|
"--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)
|
2011-06-13 22:18:46 +00:00
|
|
|
"--with-homespool=.mbox"]
|
2013-07-02 01:34:38 +00:00
|
|
|
args << "--with-slang" if build.with? 's-lang'
|
2013-12-24 22:46:10 +00:00
|
|
|
args << "--enable-gpgme" if build.with? 'gpgme'
|
2011-01-17 01:37:37 +00:00
|
|
|
|
2013-06-26 19:10:46 +00:00
|
|
|
if build.with? 'debug'
|
2011-01-17 01:37:37 +00:00
|
|
|
args << "--enable-debug"
|
2011-01-16 15:01:20 +00:00
|
|
|
else
|
2011-01-17 01:37:37 +00:00
|
|
|
args << "--disable-debug"
|
2011-01-16 15:01:20 +00:00
|
|
|
end
|
|
|
|
|
2013-06-26 19:10:46 +00:00
|
|
|
if build.head?
|
|
|
|
system "./prepare", *args
|
|
|
|
else
|
|
|
|
system "./configure", *args
|
|
|
|
end
|
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
|
2013-08-07 05:33:57 +00:00
|
|
|
(share/'doc/mutt').install resource('html') if build.head?
|
2009-09-04 04:29:53 +00:00
|
|
|
end
|
|
|
|
end
|