require 'formula' class GitHg < Formula head 'https://github.com/offbytwo/git-hg.git' homepage 'http://offbytwo.com/git-hg/' def install unless `/usr/bin/which hg`.size > 0 puts "You may need to install Mercurial before using this software:" puts " brew install mercurial" end prefix.install Dir['*'] end end