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.29.2", revision: "891e8f72ce3551a19c377456574bbfbeac5c8b8e" license "Apache-2.0" version_scheme 1 bottle do sha256 cellar: :any_skip_relocation, all: "875deb0141c851253a13512c84231192b0cc1e8aa251f542bb820562c5cb8f51" 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