aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-13 13:36:29 -0700
committerAdam Vandenberg2011-06-13 13:36:29 -0700
commit4223ecba9624669f10efdb0902b598bc83cf6a94 (patch)
tree7e067ead78c2c017dca4d49439236d087a9540ab /Library/Formula
parent9ab5ff260a9aab0628395dd6cbfc9e3ee54209c8 (diff)
downloadhomebrew-4223ecba9624669f10efdb0902b598bc83cf6a94.tar.bz2
emacs: apply patch for building with Xcode 4
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/emacs.rb16
1 files changed, 14 insertions, 2 deletions
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