mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 07:26:40 +00:00
70 lines
2.3 KiB
Ruby
70 lines
2.3 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
cask 'emacs-app-nightly' do
|
|
name 'Emacs'
|
|
desc 'GNU Emacs text editor (nightly build)'
|
|
homepage 'https://github.com/jimeh/emacs-builds'
|
|
|
|
version '2025-10-27.3dc022a.master'
|
|
|
|
on_arm do
|
|
sha256 'a7fa641af209742e11ab7e8f866ffe6756df62ce75628ec8d82b5890558d7abb'
|
|
url 'https://github.com/jimeh/emacs-builds/releases/download/Emacs.2025-10-27.3dc022a.master/Emacs.2025-10-27.3dc022a.master.macOS-11.arm64.dmg'
|
|
depends_on macos: '>= :big_sur'
|
|
end
|
|
on_intel do
|
|
sha256 '3737e2086cec5c7c6d9d8f28bcb6481440ac7835d572f67c66cb0bea88a4baa4'
|
|
url 'https://github.com/jimeh/emacs-builds/releases/download/Emacs.2025-10-27.3dc022a.master/Emacs.2025-10-27.3dc022a.master.macOS-11.x86_64.dmg'
|
|
depends_on macos: '>= :big_sur'
|
|
end
|
|
|
|
livecheck do
|
|
url 'https://github.com/jimeh/emacs-builds.git'
|
|
strategy :git do |tags|
|
|
tags.map do |tag|
|
|
m = /^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/.match(tag)
|
|
next unless m
|
|
|
|
m[1]
|
|
end.compact
|
|
end
|
|
end
|
|
|
|
conflicts_with(
|
|
cask: %w[
|
|
emacs-app
|
|
emacs-app-good
|
|
emacs-app-monthly
|
|
emacs-app-nightly-28
|
|
emacs-app-nightly-29
|
|
emacs-app-pretest
|
|
emacs
|
|
emacs-nightly
|
|
emacs-pretest
|
|
emacs-mac
|
|
emacs-mac-spacemacs-icon
|
|
]
|
|
)
|
|
|
|
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
|