2016-08-03 11:20:36 +00:00
|
|
|
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"
|
2016-08-30 18:23:12 +00:00
|
|
|
head "https://github.com/felipec/git-remote-hg.git"
|
2016-08-03 11:20:36 +00:00
|
|
|
|
2016-08-03 20:40:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-29 11:25:58 +00:00
|
|
|
sha256 "d9e8ae77b5ce8908031ddf5f4a1e166226ad2cc6664a98ab9edcb8c44b82c270" => :sierra
|
2016-08-03 20:40:27 +00:00
|
|
|
sha256 "0e85f91992caf6662783a2e53ffd4fbbb04c0600b702bb27f8ebe1a8b51bb683" => :el_capitan
|
|
|
|
sha256 "ffd2c6e7361d41e20209cf738b97292fda480ef78ab5264967be08ecb8103b7a" => :yosemite
|
|
|
|
sha256 "808c74fd0e1d5d5deb32e768f86393695075fa82359fd2b186604296606846da" => :mavericks
|
|
|
|
end
|
|
|
|
|
2016-08-03 11:20:36 +00:00
|
|
|
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
|