homebrew-core/Formula/git-plus.rb
Jonathan Beezley ab9f49ea0b git-plus 0.2.0
Update git-plus to v0.2

Closes Homebrew/homebrew#45391.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-27 16:30:49 +00:00

36 lines
1 KiB
Ruby

class GitPlus < Formula
desc "Git utilities: git multi, git relation, git old-branches, git recent"
homepage "https://github.com/tkrajina/git-plus"
url "https://github.com/tkrajina/git-plus/archive/v0.2.0.tar.gz"
sha256 "b7ab54ad4079fab9f7ddef1bb0fb280eb25315c3da7750786fed4d43d2dd892f"
head "https://github.com/tkrajina/git-plus.git"
bottle :unneeded
depends_on :python if MacOS.version <= :snow_leopard
def install
site_packages = libexec/"lib/python2.7/site-packages"
libexec_bin = libexec/"bin"
ENV.prepend_create_path "PYTHONPATH", site_packages
site_packages.install "gitutils.py"
libexec_bin.install Dir["git-*"]
bin.install Dir[libexec_bin/"*"]
bin.env_script_all_files libexec_bin, :PYTHONPATH => ENV["PYTHONPATH"]
end
test do
mkdir "testme" do
system "git", "init"
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