From c7de359b5236b95e895497fe6eab133d8cc9c75f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 4 Jun 2012 12:19:51 +0100 Subject: [PATCH] Add Xcode 3 compatibility patch (stolen from Homebrew formula) --- build-emacs-for-osx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build-emacs-for-osx b/build-emacs-for-osx index f9b28f7..18d618a 100755 --- a/build-emacs-for-osx +++ b/build-emacs-for-osx @@ -55,6 +55,11 @@ def patches(opts = {}) p << 'https://raw.github.com/gist/1361934' end + if opts[:xcode3] + p << 'https://raw.github.com/gist/2867761/' + + '0f7483a5985de5b49b4b9c155d999d16fc587bd9' + end + p end @@ -64,7 +69,7 @@ end # def parse_options - options = {:fullscreen => true, :srgb => true} + options = {:fullscreen => true, :srgb => true, :xcode3 => true} OptionParser.new do |opts| opts.banner = "Usage: ./build-emacs-for-osx [options] [branch/tag/sha]" @@ -77,6 +82,9 @@ def parse_options options[:srgb] = false end + opts.on("--no-xcode3", "Skip Xcode 3 patch (harmless to Xcode 4).") do + options[:xcode3] = false + end end.parse! options