diff options
| author | Adam Vandenberg | 2014-05-04 12:54:42 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-04 12:54:42 -0700 |
| commit | faac683f21c40712f28cc32f4c3387388186d4f6 (patch) | |
| tree | 306b6ea62269117f3a6d1e7ddb2aff160a6b4018 | |
| parent | 38d193706f59d10e8b53260207f0ddeb0f1d2831 (diff) | |
| download | homebrew-faac683f21c40712f28cc32f4c3387388186d4f6.tar.bz2 | |
mercurial: vendor docutils
Install docs without requiring a global docutils
| -rw-r--r-- | Library/Formula/mercurial.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb index cac61c411..a1006c675 100644 --- a/Library/Formula/mercurial.rb +++ b/Library/Formula/mercurial.rb @@ -8,17 +8,20 @@ class Mercurial < Formula mirror 'http://fossies.org/linux/misc/mercurial-3.0.tar.gz' sha1 'f9648580dd1a6a093fa16d7c28cf5aeefd20f2f0' - option 'enable-docs', "Build the docs (and require docutils)" - depends_on :python - depends_on 'docutils' => :python if build.include? 'enable-docs' + + resource "docutils" do + url "https://pypi.python.org/packages/source/d/docutils/docutils-0.11.tar.gz" + sha1 "3894ebcbcbf8aa54ce7c3d2c8f05460544912d67" + end def install ENV.minimal_optimization if MacOS.version <= :snow_leopard - if build.include? 'enable-docs' - system "make", "doc", "PREFIX=#{prefix}" - system "make", "install-doc", "PREFIX=#{prefix}" - end + + (buildpath/"doc").install resource("docutils").files("docutils") + + system "make", "doc", "PREFIX=#{prefix}" + system "make", "install-doc", "PREFIX=#{prefix}" system "make", "PREFIX=#{prefix}", "install-bin" # Install man pages, which come pre-built in source releases |
