aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAlex Dunn2015-04-06 11:18:30 -0700
committerMike McQuaid2015-04-07 08:34:03 +0100
commit722219055f019dac2ad4074c092f081474a15d85 (patch)
tree9ef6a6696c2fbf8b397d1427f11686d9b040cb76 /Library/Formula
parent5cee11f8abcc3bfb92c6823e9d4ab2848745b59f (diff)
downloadhomebrew-722219055f019dac2ad4074c092f081474a15d85.tar.bz2
mutt: https, test, passes audit
Closes #38415. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mutt.rb32
1 files changed, 17 insertions, 15 deletions
diff --git a/Library/Formula/mutt.rb b/Library/Formula/mutt.rb
index 78e2ba14d..4e555005f 100644
--- a/Library/Formula/mutt.rb
+++ b/Library/Formula/mutt.rb
@@ -1,16 +1,14 @@
-require "formula"
-
-# Note: Mutt has a large number of non-upstream patches available for it,
-# some of which conflict with each other. These patches are also not kept
-# up-to-date when new versions of mutt (occasionally) come out.
-# To reduce Homebrew's maintainence burden, new patches are not being
-# accepted for this formula. Mutt power-users are encouraged to copy the
-# formula and modify it locally, adding needed patches.
+# Note: Mutt has a large number of non-upstream patches available for
+# it, some of which conflict with each other. These patches are also
+# not kept up-to-date when new versions of mutt (occasionally) come
+# out. To reduce Homebrew's maintenance burden, new patches are not
+# being accepted for this formula. Mutt power-users are encouraged to
+# copy the formula and modify it locally, adding needed patches.
class Mutt < Formula
homepage "http://www.mutt.org/"
- url "ftp://ftp.mutt.org/mutt/mutt-1.5.23.tar.gz"
- mirror "http://fossies.org/linux/misc/mutt-1.5.23.tar.gz"
- sha1 "8ac821d8b1e25504a31bf5fda9c08d93a4acc862"
+ url "https://mirrors.kernel.org/debian/pool/main/m/mutt/mutt_1.5.23.orig.tar.gz"
+ mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/m/mutt/mutt_1.5.23.orig.tar.gz"
+ sha256 "3af0701e57b9e1880ed3a0dee34498a228939e854a16cdccd24e5e502626fd37"
revision 2
bottle do
@@ -77,7 +75,7 @@ class Mutt < Formula
args = ["--disable-dependency-tracking",
"--disable-warnings",
"--prefix=#{prefix}",
- "--with-ssl=#{Formula['openssl'].opt_prefix}",
+ "--with-ssl=#{Formula["openssl"].opt_prefix}",
"--with-sasl",
"--with-gss",
"--enable-imap",
@@ -85,9 +83,9 @@ class Mutt < Formula
"--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)
+ # 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 unprivileged user)
"--with-homespool=.mbox"]
args << "--with-slang" if build.with? "s-lang"
args << "--enable-gpgme" if build.with? "gpgme"
@@ -104,4 +102,8 @@ class Mutt < Formula
doc.install resource("html") if build.head?
end
+
+ test do
+ system bin/"mutt", "-D"
+ end
end