homebrew-core/Formula/git-hg.rb

28 lines
523 B
Ruby
Raw Normal View History

require 'formula'
2012-03-01 04:36:21 +00:00
class HgInstalled < Requirement
2013-01-20 02:45:59 +00:00
satisfy { which 'hg' }
2012-03-01 04:36:21 +00:00
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
2011-05-27 05:02:55 +00:00
head 'https://github.com/offbytwo/git-hg.git'
homepage 'http://offbytwo.com/git-hg/'
2013-01-27 22:44:16 +00:00
depends_on HgInstalled
2012-03-01 04:36:21 +00:00
def install
prefix.install Dir['*']
end
end