diff options
| author | Jack Nagel | 2014-11-28 16:50:56 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-11-28 16:51:17 -0500 |
| commit | 48733f9e55a834295b884d816a72ce2ccf45ec9e (patch) | |
| tree | 1273adcfe400412697fe217c617321bfc3cf1dbb /Library/Formula | |
| parent | da79771febfde934a97981dfdc0cbeaf5b24d761 (diff) | |
| download | homebrew-48733f9e55a834295b884d816a72ce2ccf45ec9e.tar.bz2 | |
cmake: simplify resource usage
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cmake.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/cmake.rb b/Library/Formula/cmake.rb index 0f053c06d..7684d25ce 100644 --- a/Library/Formula/cmake.rb +++ b/Library/Formula/cmake.rb @@ -74,9 +74,9 @@ class Cmake < Formula def install if build.with? "docs" ENV.prepend_create_path "PYTHONPATH", buildpath+"sphinx/lib/python2.7/site-packages" - %w[markupsafe docutils pygments jinja2 sphinx].each do |r| - resource(r).stage { Language::Python.setup_install "python", buildpath/"sphinx" } - end + resources.each do |r| + r.stage { Language::Python.setup_install "python", buildpath/"sphinx" } + end # There is an existing issue around OS X & Python locale setting # See http://bugs.python.org/issue18378#msg215215 for explanation |
