aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-21 10:19:55 -0500
committerJack Nagel2014-03-21 10:19:55 -0500
commit3b7472456e83cd726cc7147274468fa545b4ee21 (patch)
tree1fc198789d86ff783e498eb008d1b0d5ea4f9113 /Library/Formula
parent49e7dff6080fb9fb311c6b7d76abc710d63a2cce (diff)
downloadhomebrew-3b7472456e83cd726cc7147274468fa545b4ee21.tar.bz2
mutt: use checksummed patches
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mutt.rb39
1 files changed, 21 insertions, 18 deletions
diff --git a/Library/Formula/mutt.rb b/Library/Formula/mutt.rb
index ad8c9816c..b61b96275 100644
--- a/Library/Formula/mutt.rb
+++ b/Library/Formula/mutt.rb
@@ -43,24 +43,27 @@ class Mutt < Formula
depends_on 's-lang' => :optional
depends_on 'gpgme' => :optional
- def patches
- urls = [
- ['with-trash-patch', 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-6.2+deb7u1/features/trash-folder'],
- # original source for this went missing, patch sourced from Arch at
- # https://aur.archlinux.org/packages/mutt-ignore-thread/
- ['with-ignore-thread-patch', 'https://gist.github.com/mistydemeo/5522742/raw/1439cc157ab673dc8061784829eea267cd736624/ignore-thread-1.5.21.patch'],
- ['with-pgp-verbose-mime-patch',
- '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'],
- ['with-confirm-attachment-patch', 'https://gist.github.com/tlvince/5741641/raw/c926ca307dc97727c2bd88a84dcb0d7ac3bb4bf5/mutt-attach.patch'],
- ]
-
- p = []
- urls.each do |u|
- p << u[1] if build.include? u[0]
- end
-
- return p
- end
+ 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"
+
+ # 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"
+
+ 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"
def install
args = ["--disable-dependency-tracking",