aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-11-28 16:50:56 -0500
committerJack Nagel2014-11-28 16:51:17 -0500
commit48733f9e55a834295b884d816a72ce2ccf45ec9e (patch)
tree1273adcfe400412697fe217c617321bfc3cf1dbb
parentda79771febfde934a97981dfdc0cbeaf5b24d761 (diff)
downloadhomebrew-48733f9e55a834295b884d816a72ce2ccf45ec9e.tar.bz2
cmake: simplify resource usage
-rw-r--r--Library/Formula/cmake.rb6
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