aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-03-16 23:30:50 -0500
committerJack Nagel2014-03-16 23:54:23 -0500
commitf4dcc5e30f33cff27f23d2562ec77406f65ad9a7 (patch)
tree2bbacaac6d202c97e85fc862406059b7a8d6d843 /Library/Formula
parente47401b6a8f2cc0b652d9c77e1dfab8d68a566f1 (diff)
downloadhomebrew-f4dcc5e30f33cff27f23d2562ec77406f65ad9a7.tar.bz2
sdl: use checksummed patches
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sdl.rb19
1 files changed, 11 insertions, 8 deletions
diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb
index a88ccae21..7d75d0b5b 100644
--- a/Library/Formula/sdl.rb
+++ b/Library/Formula/sdl.rb
@@ -30,16 +30,19 @@ class Sdl < Formula
depends_on :libtool
end
- def patches
- p = []
- # Fix for a bug preventing SDL from building at all on OSX 10.9 Mavericks
- # Related ticket: https://bugzilla.libsdl.org/show_bug.cgi?id=2085
- p << "http://bugzilla-attachments.libsdl.org/attachment.cgi?id=1320" if MacOS.version >= :mavericks
- # Fix build against recent libX11; requires regenerating configure script
- p << "http://hg.libsdl.org/SDL/raw-rev/91ad7b43317a" if build.with? 'x11-driver'
- p
+ # Fix for a bug preventing SDL from building at all on OSX 10.9 Mavericks
+ # Related ticket: https://bugzilla.libsdl.org/show_bug.cgi?id=2085
+ patch do
+ url "http://bugzilla-attachments.libsdl.org/attachment.cgi?id=1320"
+ sha1 "3137feb503a89a8d606405373905b92dcf7e293b"
end
+ # Fix build against recent libX11; requires regenerating configure script
+ patch do
+ url "http://hg.libsdl.org/SDL/raw-rev/91ad7b43317a"
+ sha1 "1b35949d9ac360a7e39aac76d1f0a6ad5381b0f4"
+ end if build.with? "x11-driver"
+
def install
# we have to do this because most build scripts assume that all sdl modules
# are installed to the same prefix. Consequently SDL stuff cannot be