From 4223ecba9624669f10efdb0902b598bc83cf6a94 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 13 Jun 2011 13:36:29 -0700 Subject: emacs: apply patch for building with Xcode 4 --- Library/Formula/emacs.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index c421ff844..7be2a5656 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -20,9 +20,21 @@ class Emacs < Formula end def patches - if ARGV.include? "--cocoa" and not ARGV.build_head? - "https://github.com/downloads/typester/emacs/feature-fullscreen.patch" + p = [] + + # Fix for building with Xcode 4; harmless on Xcode 3.x. + unless ARGV.build_head? + p << "http://repo.or.cz/w/emacs.git/commitdiff_plain/c8bba48c5889c4773c62a10f7c3d4383881f11c1" + end + + if ARGV.include? "--cocoa" + # Existing fullscreen patch does not patch cleanly against head. + unless ARGV.build_head? + p << "https://github.com/downloads/typester/emacs/feature-fullscreen.patch" + end end + + return p end def caveats -- cgit v1.2.3