aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-02-29 17:53:16 -0600
committerJack Nagel2012-02-29 22:56:15 -0600
commit4ea0fb3f2e71353caa5c701e5afbede8c3824aa6 (patch)
treefed6e74066759d6c4ce3bdf155bc3d26bffccbd9 /Library/Formula
parent0c215884c66705c92fd687af0ab5c2df092ea11f (diff)
downloadhomebrew-4ea0fb3f2e71353caa5c701e5afbede8c3824aa6.tar.bz2
mercurial: style nits
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mercurial.rb19
1 files changed, 7 insertions, 12 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb
index e601cf8cc..437f3dbb5 100644
--- a/Library/Formula/mercurial.rb
+++ b/Library/Formula/mercurial.rb
@@ -4,6 +4,7 @@ class Mercurial < Formula
homepage 'http://mercurial.selenic.com/'
url 'http://mercurial.selenic.com/release/mercurial-2.1.tar.gz'
sha1 'f649a0b33e0cafb3e5867a2e970f41eb887d3fab'
+
head 'http://selenic.com/repo/hg', :using => :hg
depends_on 'docutils' => :python if ARGV.build_head? or ARGV.include? "--doc"
@@ -31,9 +32,7 @@ class Mercurial < Formula
# Make Mercurial into the Cellar.
# The documentation must be built when using HEAD
- if ARGV.build_head? or ARGV.include? "--doc"
- system "make", "doc"
- end
+ system "make", "doc" if ARGV.build_head? or ARGV.include? "--doc"
system "make", "PREFIX=#{prefix}", "build"
system "make", "PREFIX=#{prefix}", "install-bin"
@@ -57,18 +56,14 @@ class Mercurial < Formula
end
def caveats
- s = ""
- if ARGV.build_head?
- s += <<-EOS.undent
- As mercurial is required to get its own repository, there are now two
- installations of mercurial on this machine.
- If the previous installation has been done through Homebrew, the old version
- needs to be removed and the new one needs to be linked :
+ if ARGV.build_head? then <<-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
-
EOS
end
- return s
end
end