2014-02-06 16:16:28 +00:00
|
|
|
class Cask < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Emacs dependency management"
|
2015-05-08 10:48:23 +00:00
|
|
|
homepage "https://cask.readthedocs.org/"
|
2015-11-24 03:30:27 +00:00
|
|
|
url "https://github.com/cask/cask/archive/v0.7.4.tar.gz"
|
|
|
|
sha256 "b183ea1c50fc215c9040f402b758ecc335901fbc2c3afd4a7302386c888d437d"
|
2014-02-06 16:16:28 +00:00
|
|
|
head "https://github.com/cask/cask.git"
|
|
|
|
|
2015-10-23 07:39:27 +00:00
|
|
|
bottle :unneeded
|
2015-05-08 08:35:10 +00:00
|
|
|
|
2015-08-30 16:15:26 +00:00
|
|
|
depends_on :emacs => ["24", :run]
|
2014-02-06 16:16:28 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "bin/cask"
|
|
|
|
prefix.install "templates"
|
2015-07-05 19:09:26 +00:00
|
|
|
# Lisp files must stay here: https://github.com/cask/cask/issues/305
|
|
|
|
prefix.install Dir["*.el"]
|
2015-11-24 03:30:27 +00:00
|
|
|
elisp.install_symlink "#{prefix}/cask.el"
|
|
|
|
elisp.install_symlink "#{prefix}/cask-bootstrap.el"
|
2015-07-05 19:09:26 +00:00
|
|
|
|
2014-02-06 16:16:28 +00:00
|
|
|
# Stop cask performing self-upgrades.
|
|
|
|
touch prefix/".no-upgrade"
|
|
|
|
end
|
2015-05-08 07:52:53 +00:00
|
|
|
|
|
|
|
test do
|
2015-11-24 03:30:27 +00:00
|
|
|
(testpath/"Cask").write <<-EOS.undent
|
|
|
|
(source gnu)
|
|
|
|
(depends-on "chess")
|
2015-05-08 07:52:53 +00:00
|
|
|
EOS
|
2015-11-24 03:30:27 +00:00
|
|
|
system bin/"cask", "install"
|
|
|
|
(testpath/".cask").directory?
|
2015-05-08 07:52:53 +00:00
|
|
|
end
|
2014-02-06 16:16:28 +00:00
|
|
|
end
|