homebrew-core/Formula/repo.rb

29 lines
742 B
Ruby

class Repo < Formula
include Language::Python::Shebang
desc "Repository tool for Android development"
homepage "https://source.android.com/source/developing.html"
url "https://gerrit.googlesource.com/git-repo.git",
tag: "v2.16.7",
revision: "1328c35a4d0b47c7e8c00fe351f0e587481e28c2"
license "Apache-2.0"
version_scheme 1
bottle do
sha256 cellar: :any_skip_relocation, all: "7ef314838072e7b1a01d92ed0442668e8293aaf26b2a03c2815f807437b2194d"
end
depends_on "python@3.9"
def install
bin.install "repo"
rewrite_shebang detected_python_shebang, bin/"repo"
doc.install (buildpath/"docs").children
end
test do
assert_match "usage:", shell_output("#{bin}/repo help 2>&1")
end
end