2010-09-13 21:52:04 +00:00
|
|
|
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
|
|
|
|
|
2010-09-13 21:52:04 +00:00
|
|
|
class GitHg < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/offbytwo/git-hg.git'
|
2010-09-13 21:52:04 +00:00
|
|
|
homepage 'http://offbytwo.com/git-hg/'
|
|
|
|
|
2013-01-27 22:44:16 +00:00
|
|
|
depends_on HgInstalled
|
2012-01-23 02:40:29 +00:00
|
|
|
|
2012-03-01 04:36:21 +00:00
|
|
|
def install
|
2010-09-13 21:52:04 +00:00
|
|
|
prefix.install Dir['*']
|
|
|
|
end
|
|
|
|
end
|