homebrew-core/Formula/git-hg.rb

29 lines
539 B
Ruby
Raw Normal View History

require 'formula'
2012-03-01 04:36:21 +00:00
class HgInstalled < Requirement
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
def satisfied?
which 'hg'
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/'
2012-03-01 04:36:21 +00:00
depends_on HgInstalled.new
2012-03-01 04:36:21 +00:00
def install
prefix.install Dir['*']
end
end