-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
repo.rb
31 lines (24 loc) 路 857 Bytes
/
repo.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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.45",
revision: "73356f1d5ccbebf5a33e5e9aa1ba06c5f5437fed"
license "Apache-2.0"
version_scheme 1
bottle do
sha256 cellar: :any_skip_relocation, all: "27aaa2b4b55eab2280ba8cac0c9dff010a83e188b4b20978648585f7f4f03de2"
end
uses_from_macos "python"
def install
bin.install "repo"
doc.install (buildpath/"docs").children
# Need Catalina+ for `python3`.
return if OS.mac? && MacOS.version < :catalina
rewrite_shebang detected_python_shebang(use_python_from_path: true), bin/"repo"
end
test do
assert_match "usage:", shell_output("#{bin}/repo help 2>&1")
end
end