homebrew-core/Formula/git-plus.rb

44 lines
1.4 KiB
Ruby

class GitPlus < Formula
include Language::Python::Virtualenv
desc "Git utilities: git multi, git relation, git old-branches, git recent"
homepage "https://github.com/tkrajina/git-plus"
url "https://files.pythonhosted.org/packages/73/b5/6cf7f0513fd1ef42b5a3ac0e342b3c4176551f60ad17fc5dbe52329f2b58/git-plus-v0.4.6.tar.gz"
sha256 "bcf3a83a2730e8b6f5bc106db00b7b6be5df534cb9543ba7ecc506c535c5158b"
license "Apache-2.0"
revision 1
head "https://github.com/tkrajina/git-plus.git"
livecheck do
url :stable
end
bottle do
cellar :any_skip_relocation
sha256 "6fbeb0f79fb3149feec139360140b71dc8905336fe3e57979a5555542b14315d" => :big_sur
sha256 "77a2c33cfbcaa7eeebf0599197ef9865821df0a513c60f768586049c78795709" => :catalina
sha256 "de4043e1cd948c93b60ba863ddc3ed42528e733263efb54f4e4c608cc6fcb148" => :mojave
sha256 "774bf600193c1446a6097675f995ec808eada8f45d9b78f735121de23cd3d56c" => :high_sierra
end
depends_on "python@3.9"
def install
virtualenv_install_with_resources
end
test do
mkdir "testme" do
system "git", "init"
system "git", "config", "user.email", "\"test@example.com\""
system "git", "config", "user.name", "\"Test\""
touch "README"
system "git", "add", "README"
system "git", "commit", "-m", "testing"
rm "README"
end
assert_match "D README", shell_output("#{bin}/git-multi")
end
end