forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcask.rb
32 lines (27 loc) · 856 Bytes
/
cask.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Cask < Formula
desc "Emacs dependency management"
homepage "https://cask.readthedocs.org/"
url "https://github.com/cask/cask/archive/v0.8.4.tar.gz"
sha256 "02f8bb20b33b23fb11e7d2a1d282519dfdb8b3090b9672448b8c2c2cacd3e478"
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