mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 07:26:40 +00:00
feat(cask): add emacs-app-pretest cask
This commit is contained in:
@@ -20,9 +20,10 @@ cask 'emacs-app-good' do
|
||||
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-nightly
|
||||
emacs-app-nightly-28
|
||||
emacs-app
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
@@ -25,8 +25,9 @@ cask 'emacs-app-nightly-28' do
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-nightly
|
||||
emacs-app-good
|
||||
emacs-app-nightly
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
@@ -25,8 +25,9 @@ cask 'emacs-app-nightly' do
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-nightly-28
|
||||
emacs-app-good
|
||||
emacs-app-nightly-28
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
65
Casks/emacs-app-pretest.rb
Normal file
65
Casks/emacs-app-pretest.rb
Normal file
@@ -0,0 +1,65 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
cask 'emacs-app-pretest' do
|
||||
version '28.0.90-pretest'
|
||||
|
||||
sha256 'c49633fdd23365f1a5df551365d84cede37de983dcaa788c4b6ce10bf659fc87'
|
||||
url 'https://github.com/jimeh/emacs-builds/releases/download/Emacs-28.0.90-pretest/Emacs.2021-12-01.f38dfa5.emacs-28-0-90-pretest.macOS-10-15.x86_64.dmg'
|
||||
|
||||
name 'Emacs'
|
||||
desc 'GNU Emacs text editor (latest pretest)'
|
||||
homepage 'https://github.com/jimeh/emacs-builds'
|
||||
|
||||
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-nightly
|
||||
emacs-app-nightly-28
|
||||
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
|
||||
@@ -24,9 +24,10 @@ cask 'emacs-app' do
|
||||
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app-good
|
||||
emacs-app-nightly
|
||||
emacs-app-nightly-28
|
||||
emacs-app-good
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
@@ -20,9 +20,10 @@ cask 'emacs-app-good' do
|
||||
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-nightly
|
||||
emacs-app-nightly-28
|
||||
emacs-app
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
@@ -25,8 +25,9 @@ cask 'emacs-app-nightly-28' do
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-nightly
|
||||
emacs-app-good
|
||||
emacs-app-nightly
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
@@ -25,8 +25,9 @@ cask 'emacs-app-nightly' do
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-nightly-28
|
||||
emacs-app-good
|
||||
emacs-app-nightly-28
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
65
templates/emacs-app-pretest.rb.tpl
Normal file
65
templates/emacs-app-pretest.rb.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
cask 'emacs-app-pretest' do
|
||||
version '{{ .Version }}'
|
||||
|
||||
sha256 '{{ .SHA256 "macOS-10-15" "x86_64" }}'
|
||||
url '{{ .DownloadURL "macOS-10-15" "x86_64" }}'
|
||||
|
||||
name 'Emacs'
|
||||
desc 'GNU Emacs text editor (latest pretest)'
|
||||
homepage 'https://github.com/jimeh/emacs-builds'
|
||||
|
||||
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-nightly
|
||||
emacs-app-nightly-28
|
||||
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
|
||||
@@ -24,9 +24,10 @@ cask 'emacs-app' do
|
||||
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app-good
|
||||
emacs-app-nightly
|
||||
emacs-app-nightly-28
|
||||
emacs-app-good
|
||||
emacs-app-pretest
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
Reference in New Issue
Block a user