39 lines
1.5 KiB
Ruby
39 lines
1.5 KiB
Ruby
class Cheat < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Create and view interactive cheat sheets for *nix commands"
|
|
homepage "https://github.com/chrisallenlane/cheat"
|
|
url "https://github.com/chrisallenlane/cheat/archive/v2.2.1.tar.gz"
|
|
sha256 "04439b85ea2ebdc6d041352fb8b7aeb8768f2e4df68280371bee313f759f3a50"
|
|
head "https://github.com/chrisallenlane/cheat.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "292d1a2d98500c13a31280e3ed9de399bc128f4ea187ac85c45f7ddae9558b4c" => :sierra
|
|
sha256 "86ee743d089382ab8e3ab447b4935c3c13d057f14e3cdf79690f06afc2e129b0" => :el_capitan
|
|
sha256 "7af75fdcba512908d40697e39a3c5a96e61c9aa3f3ce1343c7cc4a738dcedfd7" => :yosemite
|
|
end
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
resource "docopt" do
|
|
url "https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz"
|
|
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
|
|
end
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-2.2.0.tar.gz"
|
|
sha256 "dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
|
|
bash_completion.install "cheat/autocompletion/cheat.bash"
|
|
zsh_completion.install "cheat/autocompletion/cheat.zsh" => "_cheat"
|
|
end
|
|
|
|
test do
|
|
system bin/"cheat", "tar"
|
|
end
|
|
end
|