From be6616f3895cfa7d08c9031067a62fd28b6f19de Mon Sep 17 00:00:00 2001 From: Martin Conte Mac Donell Date: Sat, 21 Nov 2015 21:16:41 -0800 Subject: [PATCH] Fix formula --- Formula/ib-unfuck-git.rb | 25 +++---------------------- scripts/ibunfuck | 2 ++ 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/Formula/ib-unfuck-git.rb b/Formula/ib-unfuck-git.rb index f054095..7c489b6 100644 --- a/Formula/ib-unfuck-git.rb +++ b/Formula/ib-unfuck-git.rb @@ -4,30 +4,11 @@ class IbUnfuckGit < Formula url "https://github.com/Reflejo/ib-unfuck-git/archive/v0.1.tar.gz" depends_on :python if MacOS.version <= :snow_leopard - -# resource "unidiff" do -# url "https://pypi.python.org/packages/source/u/unidiff/unidiff-0.5.1.tar.gz" -# sha256 "c3d52b3656044c90af6cd01b3424d21d669e99899f1bdde82cc4bbd3fa5fda67" -# end -# -# resource "gitdb" do -# url "https://pypi.python.org/packages/source/g/gitdb/gitdb-0.6.4.tar.gz" -# sha256 "a3ebbc27be035a2e874ed904df516e35f4a29a778a764385de09de9e0f139658" -# end -# -# resource "smmap" do -# url "https://pypi.python.org/packages/source/s/smmap/smmap-0.9.0.tar.gz" -# sha256 "0e2b62b497bd5f0afebc002eda4d90df9d209c30ef257e8673c90a6b5c119d62" -# end + depends_on "unidiff" => :python + depends_on "gitpython" => :python + depends_on "lxml" => :python def install - ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" -# %w[gitdb smmap unidiff].each do |r| -# resource(r).stage do -# system "python", *Language::Python.setup_install_args(libexec/"vendor") -# end -# end - ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages" system "python", *Language::Python.setup_install_args(libexec) diff --git a/scripts/ibunfuck b/scripts/ibunfuck index 2251a82..d5ed7e9 100755 --- a/scripts/ibunfuck +++ b/scripts/ibunfuck @@ -1,6 +1,8 @@ #!/usr/local/bin/python +import git import sys + from ibunfuck import UnfuckPatch