diff options
| author | Adam Vandenberg | 2013-08-06 22:33:57 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:31 -0700 |
| commit | 670f05df10900aa3346dead3e6dd34275051dd8b (patch) | |
| tree | 641b303a1aa801322fdebe0d576e8a363efc7f7b /Library/Formula | |
| parent | efbbf7fba8efee02c8d1c5c7d24e5f51fe543f69 (diff) | |
| download | homebrew-670f05df10900aa3346dead3e6dd34275051dd8b.tar.bz2 | |
mutt: use resource
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mutt.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Library/Formula/mutt.rb b/Library/Formula/mutt.rb index 2deff159c..383fc7b8e 100644 --- a/Library/Formula/mutt.rb +++ b/Library/Formula/mutt.rb @@ -1,9 +1,5 @@ require 'formula' -class MuttHtmldocs < Formula - head 'http://dev.mutt.org/doc/manual.html', :using => :nounzip -end - class Mutt < Formula homepage 'http://www.mutt.org/' url 'ftp://ftp.mutt.org/mutt/devel/mutt-1.5.21.tar.gz' @@ -19,13 +15,18 @@ class Mutt < Formula option "with-pgp-verbose-mime-patch", "Apply PGP verbose mime patch" option "with-confirm-attachment-patch", "Apply confirm attachment patch" - depends_on 'tokyo-cabinet' - depends_on 's-lang' => :optional if build.head? depends_on :autoconf depends_on :automake end + depends_on 'tokyo-cabinet' + depends_on 's-lang' => :optional + + resource 'html' do + head 'http://dev.mutt.org/doc/manual.html', :using => :nounzip + end if build.head? + def patches urls = [ ['with-sidebar-patch', 'http://lunar-linux.org/~tchan/mutt/patch-1.5.21.sidebar.20130219.txt'], @@ -84,8 +85,6 @@ class Mutt < Formula system "make" system "make", "install" - if build.head? - MuttHtmldocs.new.brew { (share/'doc/mutt').install 'manual.html' } - end + (share/'doc/mutt').install resource('html') if build.head? end end |
