mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
Update patch options as sRGB patch is no longer needed in head builds
This commit is contained in:
@@ -49,11 +49,6 @@ def patches(opts = {})
|
|||||||
|
|
||||||
if opts[:srgb]
|
if opts[:srgb]
|
||||||
p << {
|
p << {
|
||||||
:replace => [ # sRGB patch for latest version of nsterm.m.
|
|
||||||
"src/nsterm.m",
|
|
||||||
"return [NSColor colorWithCalibratedRed: red",
|
|
||||||
"return [NSColor colorWithDeviceRed: red"
|
|
||||||
],
|
|
||||||
:replace => [ # sRGB patch for older version of nsterm.m.
|
:replace => [ # sRGB patch for older version of nsterm.m.
|
||||||
"src/nsterm.m",
|
"src/nsterm.m",
|
||||||
"*col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0];",
|
"*col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0];",
|
||||||
@@ -62,6 +57,16 @@ def patches(opts = {})
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if opts[:srgb_244]
|
||||||
|
p << {
|
||||||
|
:replace => [
|
||||||
|
"src/nsterm.m",
|
||||||
|
"return [NSColor colorWithCalibratedRed: red",
|
||||||
|
"return [NSColor colorWithDeviceRed: red"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
p
|
p
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -71,7 +76,7 @@ end
|
|||||||
#
|
#
|
||||||
|
|
||||||
def parse_options
|
def parse_options
|
||||||
options = {:srgb => true}
|
options = {:srgb => false, :srgb_244 => false}
|
||||||
|
|
||||||
OptionParser.new do |opts|
|
OptionParser.new do |opts|
|
||||||
opts.banner = "Usage: ./build-emacs-for-osx [options] [branch/tag/sha]\n" +
|
opts.banner = "Usage: ./build-emacs-for-osx [options] [branch/tag/sha]\n" +
|
||||||
@@ -80,8 +85,12 @@ def parse_options
|
|||||||
"available here: https://github.com/mirrors/emacs\n" +
|
"available here: https://github.com/mirrors/emacs\n" +
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
opts.on('--no-srgb', "Skip sRGB patch.") do
|
opts.on('--srgb', "Use sRGB patch (pre Emacs 24.4).") do
|
||||||
options[:srgb] = false
|
options[:srgb] = true
|
||||||
|
end
|
||||||
|
|
||||||
|
opts.on('--srgb-244', "Use sRGB patch for 24.3 -> 24.4 dev builds. sRGB patch not needed in final 24.4.") do
|
||||||
|
options[:srgb] = true
|
||||||
end
|
end
|
||||||
end.parse!
|
end.parse!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user