homebrew-core/Formula/git-remote-hg.rb

19 lines
584 B
Ruby
Raw Normal View History

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