homebrew-core/Formula/cask.rb
ilovezfs ef5985c2aa cask 0.8.1
Closes #6249.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-10-25 18:21:04 +02:00

32 lines
878 B
Ruby

class Cask < Formula
desc "Emacs dependency management"
homepage "https://cask.readthedocs.org/"
url "https://github.com/cask/cask/archive/v0.8.1.tar.gz"
sha256 "8739ba608f23c79b3426faa8b068d5d1bc096c7305ce30b1163babd354be821c"
head "https://github.com/cask/cask.git"
bottle :unneeded
depends_on :emacs => ["24", :run]
def install
bin.install "bin/cask"
prefix.install "templates"
# Lisp files must stay here: https://github.com/cask/cask/issues/305
prefix.install Dir["*.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/"Cask").write <<-EOS.undent
(source gnu)
(depends-on "chess")
EOS
system bin/"cask", "install"
(testpath/".cask").directory?
end
end