fix(patches): Fix patch download URL, add additional patches

This commit is contained in:
2020-06-08 02:27:08 +01:00
parent 2c61b62588
commit 66acc01c0c
2 changed files with 15 additions and 3 deletions

2
.rubocop.yml Normal file
View File

@@ -0,0 +1,2 @@
Style/LineLength:
Max: 80

View File

@@ -239,11 +239,21 @@ class Build
def patches(opts = {})
p = []
if opts[:xwidgets]
if %w[emacs-27 emacs-28].include?(ref)
if opts[:xwidgets]
p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
"patches/#{ref}/xwidgets_webkit_in_cocoa.patch"
}
end
p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
'patches/xwidgets_webkit_in_cocoa' \
"#{'-emacs-27' if ref == 'emacs-27'}.patch"
"patches/#{ref}/fix-window-role.patch"
}
p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
"patches/#{ref}/system-appearance.patch"
}
end