aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-12-27 10:28:14 -0600
committerJack Nagel2013-12-27 10:28:40 -0600
commit49c85b89753d42cc4ec2fee9607a608b3b14ab33 (patch)
treeb8d6d6586b59a52018ab6c34074825507b44f364 /Library/Formula
parent92ef1fd4fd8f7b624acd539427e7c9049301ddda (diff)
downloadhomebrew-49c85b89753d42cc4ec2fee9607a608b3b14ab33.tar.bz2
emacs: disable sRGB patch for HEAD, incorporated upstream
Fixes #25420.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/emacs.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 712c3d1ba..5421e7805 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -80,7 +80,7 @@ class Emacs < Formula
if build.include? "cocoa"
# Patch for color issues described here:
# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8402
- if build.include? "srgb"
+ if build.include? "srgb" and not build.head?
inreplace "src/nsterm.m",
"*col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0];",
"*col = [NSColor colorWithDeviceRed: r green: g blue: b alpha: 1.0];"
@@ -129,14 +129,17 @@ class Emacs < Formula
Emacs.app was installed to:
#{prefix}
- To link the application to a normal Mac OS X location:
- brew linkapps
- or:
- ln -s #{prefix}/Emacs.app /Applications
+ To link the application to a normal Mac OS X location:
+ brew linkapps
+ or:
+ ln -s #{prefix}/Emacs.app /Applications
- A command line wrapper for the cocoa app was installed to:
- #{bin}/emacs
+ A command line wrapper for the cocoa app was installed to:
+ #{bin}/emacs
EOS
+ if build.include? "srgb" and build.head?
+ s << "\nTo enable sRGB, use (setq ns-use-srgb-colorspace t)"
+ end
end
return s
end