mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 13:16:38 +00:00
The Emacs builds have not needed GCC installed via homebrew for some time now. So it should be safe to remove this dependency.
61 lines
2.0 KiB
Ruby
61 lines
2.0 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
cask 'emacs-app-good' do
|
|
version '2022-01-20.10083e7.master'
|
|
|
|
sha256 '97ad74b20e44e87caaf6073b9745d5496706ec277952ee1d5e42211ea33b28e4'
|
|
url 'https://github.com/jimeh/emacs-builds/releases/download/Emacs.2022-01-20.10083e7.master/Emacs.2022-01-20.10083e7.master.macOS-10-15.x86_64.dmg'
|
|
|
|
name 'Emacs'
|
|
desc 'GNU Emacs text editor (known good nightly build)'
|
|
homepage 'https://github.com/jimeh/emacs-builds'
|
|
|
|
livecheck do
|
|
url 'https://github.com/jimeh/emacs-builds/issues/7'
|
|
strategy :page_match do |page|
|
|
page.scan(%r{href=.*?https://github\.com/jimeh/emacs-builds/releases/tag/Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)}i)
|
|
.map { |match| match&.first }
|
|
end
|
|
end
|
|
|
|
conflicts_with(
|
|
cask: %w[
|
|
emacs-app-nightly
|
|
emacs-app-nightly-28
|
|
emacs-app
|
|
emacs
|
|
emacs-nightly
|
|
emacs-pretest
|
|
emacs-mac
|
|
emacs-mac-spacemacs-icon
|
|
],
|
|
formula: %w[
|
|
emacs
|
|
emacs-mac
|
|
]
|
|
)
|
|
|
|
depends_on macos: '>= :catalina'
|
|
|
|
app 'Emacs.app'
|
|
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/ebrowse"
|
|
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/emacs"
|
|
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/emacsclient"
|
|
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/etags"
|
|
binary "#{appdir}/Emacs.app/Contents/Resources/include/emacs-module.h",
|
|
target: "#{HOMEBREW_PREFIX}/include/emacs-module.h"
|
|
binary "#{appdir}/Emacs.app/Contents/Resources/site-lisp/subdirs.el",
|
|
target: "#{HOMEBREW_PREFIX}/share/emacs/site-lisp/subdirs.el"
|
|
|
|
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/ebrowse.1.gz"
|
|
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/emacs.1.gz"
|
|
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/emacsclient.1.gz"
|
|
manpage "#{appdir}/Emacs.app/Contents/Resources/man/man1/etags.1.gz"
|
|
|
|
zap trash: [
|
|
'~/Library/Caches/org.gnu.Emacs',
|
|
'~/Library/Preferences/org.gnu.Emacs.plist',
|
|
'~/Library/Saved Application State/org.gnu.Emacs.savedState'
|
|
]
|
|
end
|