From 48733f9e55a834295b884d816a72ce2ccf45ec9e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 28 Nov 2014 16:50:56 -0500 Subject: cmake: simplify resource usage --- Library/Formula/cmake.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3