Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
cask 0.7.4
Browse files Browse the repository at this point in the history
Closes #46305.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
dunn authored and MikeMcQuaid committed Nov 24, 2015
1 parent 1b98b04 commit c51a23b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Library/Formula/cask.rb
@@ -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
Expand All @@ -14,19 +14,19 @@ def install
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

0 comments on commit c51a23b

Please sign in to comment.