34 lines
884 B
Ruby
34 lines
884 B
Ruby
class Cask < Formula
|
|
desc "Emacs dependency management"
|
|
homepage "https://cask.readthedocs.io/"
|
|
url "https://github.com/cask/cask/archive/v0.8.5.tar.gz"
|
|
sha256 "b7a6bda663d5a83a99036287cd9362d131ae3a0e0525a48b50eb194684e4447d"
|
|
license "GPL-3.0-or-later"
|
|
head "https://github.com/cask/cask.git"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "emacs"
|
|
|
|
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
|
|
(source gnu)
|
|
(depends-on "chess")
|
|
EOS
|
|
system bin/"cask", "install"
|
|
(testpath/".cask").directory?
|
|
end
|
|
end
|