diff --git a/Formula/git-remote-hg.rb b/Formula/git-remote-hg.rb new file mode 100644 index 0000000000000..0ddb9df0a9e81 --- /dev/null +++ b/Formula/git-remote-hg.rb @@ -0,0 +1,18 @@ +class GitRemoteHg < Formula + desc "Transparent bidirectional bridge between Git and Mercurial" + homepage "https://github.com/felipec/git-remote-hg" + url "https://github.com/felipec/git-remote-hg/archive/v0.3.tar.gz" + sha256 "2dc889b641d72f5a73c4c7d5df3b8ea788e75a7ce80f5884a7a8d2e099287dce" + + depends_on :hg + depends_on :python if MacOS.version <= :snow_leopard + + def install + inreplace "git-remote-hg", "python2", "python" + system "make", "install", "prefix=#{prefix}" + end + + test do + system "git", "clone", "hg::https://www.mercurial-scm.org/repo/hello" + end +end