From 8466da76fe16a5d680624cb09e0af437b9691deb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 16 Mar 2014 21:35:21 -0500 Subject: moc: use checksummed patches --- Library/Formula/moc.rb | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'Library') diff --git a/Library/Formula/moc.rb b/Library/Formula/moc.rb index 3611cbc6c..a295a1459 100644 --- a/Library/Formula/moc.rb +++ b/Library/Formula/moc.rb @@ -2,8 +2,18 @@ require 'formula' class Moc < Formula homepage 'http://moc.daper.net' - url 'http://ftp.daper.net/pub/soft/moc/unstable/moc-2.5.0-beta1.tar.bz2' - sha1 '4030a1fa5c7cfef06909c54d8c7a1fbb93f23caa' + + stable do + url "http://ftp.daper.net/pub/soft/moc/unstable/moc-2.5.0-beta1.tar.bz2" + sha1 "4030a1fa5c7cfef06909c54d8c7a1fbb93f23caa" + + # Patches up to r2544 (HEAD at 2013-08-13) + patch :p0 do + url "https://gist.github.com/toroidal-code/6310844/raw/23c460144b64040eb6c3117693fd7e129a462b26/ffmpeg-patch.diff" + sha1 "55d64d17b320b391a5c11f502417fa8353498b37" + end + end + head 'svn://daper.net/moc/trunk' option 'with-ncurses', 'Build with wide character support.' @@ -27,13 +37,6 @@ class Moc < Formula depends_on 'libmagic' => :optional depends_on 'homebrew/dupes/ncurses' => :optional - def patches - unless build.head? - # Patches up to r2544 (HEAD at 2013-08-13) - { :p0 => 'https://gist.github.com/toroidal-code/6310844/raw/23c460144b64040eb6c3117693fd7e129a462b26/ffmpeg-patch.diff' } - end - end - def install system "autoreconf", "-i" # required to fix ffmpeg issues (updated ffmpeg.m4) system "./configure", "--disable-debug", "--prefix=#{prefix}" -- cgit v1.2.3