29 lines
742 B
Ruby
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.4",
|
|
revision: "9122bfc3a80367ed303e8e2d3b3b3d7a8851c904"
|
|
license "Apache-2.0"
|
|
version_scheme 1
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "3f4851a4709c89b3f800aeb8f8e111b27c453f111262cccb4f166736d4409c52"
|
|
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
|