Skip to content

Commit

Permalink
emacs: apply patch for building with Xcode 4
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Jun 13, 2011
1 parent 9ab5ff2 commit 4223ecb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Library/Formula/emacs.rb
Expand Up @@ -20,9 +20,21 @@ def options
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
Expand Down

0 comments on commit 4223ecb

Please sign in to comment.