diff options
| -rw-r--r-- | Library/Formula/mercurial.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb index 3e454b5ae..dad23e3ac 100644 --- a/Library/Formula/mercurial.rb +++ b/Library/Formula/mercurial.rb @@ -9,7 +9,7 @@ class Mercurial < Formula depends_on 'docutils' => :python if build.head? or build.include? 'doc' - option 'doc', "Build the documentation. Depends on 'docutils' module" + option 'doc', "Build the documentation" def install # Don't add compiler specific flags so we can build against @@ -22,7 +22,7 @@ class Mercurial < Formula system "make doc" if build.head? or build.include? 'doc' system "make local" - libexec.install 'hg', 'mercurial' + libexec.install 'hg', 'mercurial', 'hgext' # Symlink the hg binary into bin bin.install_symlink libexec/'hg' @@ -39,15 +39,25 @@ class Mercurial < Formula end def caveats - if build.head? then <<-EOS.undent + s = '' + + s += <<-EOS.undent + Extensions have been installed to: + #{libexec}/hgext + EOS + + if build.head? then s += <<-EOS.undent + Mercurial is required to fetch its own repository, so there are now two installations of mercurial on this machine. If the previous installation was done via Homebrew, the old version may need to be cleaned up and new version linked: - brew cleanup mercurial && brew link mercurial + brew cleanup mercurial && brew link mercurial EOS end + + return s end def test |
