Files
homebrew-emacs-builds/Casks/emacs-app-pretest.rb
Jim Myhrberg 786dcfd426 revert(cask): update emacs-app-pretest to version 30.0.91-pretest
This reverts commit eb7deedd62.

The bump to 30.0.91-pretest happened before the intel build was ready,
meaning it was skipped in the cask file. Follow up runs haven't picked
it up cause the version of the cask was already the latest.

Hence we are reverting this, and re-running the update action for it to
correctly pick up the assets from the 30.0.91-pretest release.
2024-10-26 15:48:29 +01:00

75 lines
2.3 KiB
Ruby

# frozen_string_literal: true
cask 'emacs-app-pretest' do
name 'Emacs'
desc 'GNU Emacs text editor (latest pretest)'
homepage 'https://github.com/jimeh/emacs-builds'
version '29.1.90-pretest'
on_arm do
sha256 '2caa73adeb124513d9ddfd92556bf630f57399e069df18a3b0ac86ec8824e8f1'
url 'https://github.com/jimeh/emacs-builds/releases/download/Emacs-29.1.90-pretest/Emacs.2023-10-19.d963bc6.emacs-29-1-90-pretest.macOS-13.arm64.dmg'
depends_on macos: '>= :ventura'
end
on_intel do
sha256 'b0594a29f375e63059344ee7c19641f594921f792e6b1df78d7413042d420f66'
url 'https://github.com/jimeh/emacs-builds/releases/download/Emacs-29.1.90-pretest/Emacs.2023-10-19.d963bc6.emacs-29-1-90-pretest.macOS-12.x86_64.dmg'
depends_on macos: '>= :monterey'
end
livecheck do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
m = /^Emacs-(.+-pretest)$/.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
emacs-app-nightly-28
emacs-app-nightly-29
emacs
emacs-nightly
emacs-pretest
emacs-mac
emacs-mac-spacemacs-icon
],
formula: %w[
emacs
emacs-mac
]
)
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