mutt: clean up patch system

master
Adam Vandenberg 2011-07-31 14:58:26 -07:00
parent d41ae11a4c
commit b7897ed905
1 changed files with 10 additions and 16 deletions

View File

@ -20,24 +20,18 @@ class Mutt < Formula
end
def patches
urls = [
['--sidebar-patch', 'https://raw.github.com/nedos/mutt-sidebar-patch/master/mutt-sidebar.patch'],
['--trash-patch', 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features/trash-folder'],
['--ignore-thread-patch', 'http://ben.at.tanjero.com/patches/ignore-thread-1.5.21.patch'],
['--pgp-verbose-mime-patch',
'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features-old/patch-1.5.4.vk.pgp_verbose_mime'],
]
p = []
if ARGV.include? '--sidebar-patch'
p << 'https://raw.github.com/nedos/mutt-sidebar-patch/master/mutt-sidebar.patch'
urls.each do |u|
p << u[1] if ARGV.include? u[0]
end
if ARGV.include? '--trash-patch'
p << 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features/trash-folder'
end
if ARGV.include? '--ignore-thread-patch'
p << 'http://ben.at.tanjero.com/patches/ignore-thread-1.5.21.patch'
end
if ARGV.include? '--pgp-verbose-mime-patch'
p << 'http://patch-tracker.debian.org/patch/series/dl/mutt/1.5.21-5/features-old/patch-1.5.4.vk.pgp_verbose_mime'
end
return p
end