homebrew-core/Formula/git-hg.rb
2013-01-27 14:54:49 -08:00

27 lines
523 B
Ruby

require 'formula'
class HgInstalled < Requirement
satisfy { which 'hg' }
def message; <<-EOS.undent
Mercurial is required to use this software.
You can install this with Homebrew using:
brew install mercurial
Or you can use an official installer from:
http://mercurial.selenic.com/
EOS
end
end
class GitHg < Formula
head 'https://github.com/offbytwo/git-hg.git'
homepage 'http://offbytwo.com/git-hg/'
depends_on HgInstalled
def install
prefix.install Dir['*']
end
end