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

27 lines
965 B
Ruby

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"
head "https://github.com/felipec/git-remote-hg.git"
bottle do
cellar :any_skip_relocation
sha256 "0e85f91992caf6662783a2e53ffd4fbbb04c0600b702bb27f8ebe1a8b51bb683" => :el_capitan
sha256 "ffd2c6e7361d41e20209cf738b97292fda480ef78ab5264967be08ecb8103b7a" => :yosemite
sha256 "808c74fd0e1d5d5deb32e768f86393695075fa82359fd2b186604296606846da" => :mavericks
end
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