aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Russell2015-03-23 09:20:42 +0530
committerMike McQuaid2015-03-24 08:16:59 +0000
commit216d7dcc8548d9d772ca41803c4f5bf600aabad8 (patch)
tree3fadbb76cce022afdf99e649307d0c2a9c38a5f1 /Library
parent0eb7aa759664d870197f97c28cb8ef88eaafcf83 (diff)
downloadhomebrew-216d7dcc8548d9d772ca41803c4f5bf600aabad8.tar.bz2
git-plus 0.1.0
Closes #37985. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git-plus.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/git-plus.rb b/Library/Formula/git-plus.rb
new file mode 100644
index 000000000..811aa881b
--- /dev/null
+++ b/Library/Formula/git-plus.rb
@@ -0,0 +1,33 @@
+class GitPlus < Formula
+ homepage "https://github.com/tkrajina/git-plus"
+ head "https://github.com/tkrajina/git-plus.git"
+ url "https://github.com/tkrajina/git-plus/archive/v0.1.0.tar.gz"
+ sha256 "d7076ed3fd8e6e4bc2b93b9880adf58bea59b0f6fe95e05053f00247ae8cb609"
+
+ 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