29 lines
741 B
Ruby
29 lines
741 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.17",
|
|
revision: "a0f6006ae7613ba08480bfccac300ea7c7de9af4"
|
|
license "Apache-2.0"
|
|
version_scheme 1
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "c319b2985c52b00b3f37f9de5c99a383b9e3cd15a819f5ccef52b91b97c63b36"
|
|
end
|
|
|
|
depends_on "python@3.10"
|
|
|
|
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
|