homebrew-cask/Casks/emacs.rb

24 lines
773 B
Ruby

cask "emacs" do
version "26.3"
sha256 "310f34b3890584b08fd6de9f422d0747ed3405910120ecfd2eb2cbf8921986a6"
url "https://emacsformacosx.com/emacs-builds/Emacs-#{version}-universal.dmg"
appcast "https://emacsformacosx.com/atom/release"
name "Emacs"
homepage "https://emacsformacosx.com/"
conflicts_with formula: "emacs"
app "Emacs.app"
binary "#{appdir}/Emacs.app/Contents/MacOS/Emacs", target: "emacs"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/ebrowse"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/emacsclient"
binary "#{appdir}/Emacs.app/Contents/MacOS/bin/etags"
zap trash: [
"~/Library/Caches/org.gnu.Emacs",
"~/Library/Preferences/org.gnu.Emacs.plist",
"~/Library/Saved Application State/org.gnu.Emacs.savedState",
]
end