cask 0.7.4
Closes Homebrew/homebrew#46305. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
c29e877f80
commit
52d28508a7
1 changed files with 9 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
class Cask < Formula
|
||||
desc "Emacs dependency management"
|
||||
homepage "https://cask.readthedocs.org/"
|
||||
url "https://github.com/cask/cask/archive/v0.7.3.tar.gz"
|
||||
sha256 "661c15e63c0e8240033ec67f4333337db97178ad5b9bb36fa3dbd411e9196813"
|
||||
url "https://github.com/cask/cask/archive/v0.7.4.tar.gz"
|
||||
sha256 "b183ea1c50fc215c9040f402b758ecc335901fbc2c3afd4a7302386c888d437d"
|
||||
head "https://github.com/cask/cask.git"
|
||||
|
||||
bottle :unneeded
|
||||
|
@ -14,19 +14,19 @@ class Cask < Formula
|
|||
prefix.install "templates"
|
||||
# Lisp files must stay here: https://github.com/cask/cask/issues/305
|
||||
prefix.install Dir["*.el"]
|
||||
(share/"emacs/site-lisp/cask").install_symlink "#{prefix}/cask.el"
|
||||
(share/"emacs/site-lisp/cask").install_symlink "#{prefix}/cask-bootstrap.el"
|
||||
elisp.install_symlink "#{prefix}/cask.el"
|
||||
elisp.install_symlink "#{prefix}/cask-bootstrap.el"
|
||||
|
||||
# Stop cask performing self-upgrades.
|
||||
touch prefix/".no-upgrade"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.el").write <<-EOS.undent
|
||||
(add-to-list 'load-path "#{share}/emacs/site-lisp/cask")
|
||||
(require 'cask)
|
||||
(print (minibuffer-prompt-width))
|
||||
(testpath/"Cask").write <<-EOS.undent
|
||||
(source gnu)
|
||||
(depends-on "chess")
|
||||
EOS
|
||||
assert_equal "0", shell_output("emacs -Q --batch -l #{testpath}/test.el").strip
|
||||
system bin/"cask", "install"
|
||||
(testpath/".cask").directory?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue