homebrew-core/Formula/cheat.rb
2018-10-10 15:35:33 +02:00

40 lines
1.4 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/2.2.3.tar.gz"
sha256 "adedab2d8047b129e07d67205f5470c120dbf05785f2786520226c412508d9ee"
revision 1
head "https://github.com/chrisallenlane/cheat.git"
bottle do
cellar :any_skip_relocation
sha256 "8cc9e97113e4f89b33a16234227b2bc2ce3faeadc585bbeb321906423af616ec" => :mojave
sha256 "53df82d94ca2d7baa975b23d890cf7497174734fe669ba76fedea04418ffcce4" => :high_sierra
sha256 "f5545ac8947eeb8d12128df710ec5214f85351aa26e4b944ecbd73b095ba95b2" => :sierra
end
depends_on "python"
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