diff options
| author | Jack Nagel | 2014-11-14 14:35:08 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-11-14 14:46:56 -0600 |
| commit | 7d4d743cf14cc232ce77c54b4338f0522bf95f3e (patch) | |
| tree | 4117202d6c8e560c45c70f0d1db0815bf1ddb655 /Library/Formula/open-scene-graph.rb | |
| parent | 9ad85e1ec6febeeef9468c38eaa0d5994a009cfa (diff) | |
| download | homebrew-7d4d743cf14cc232ce77c54b4338f0522bf95f3e.tar.bz2 | |
open-scene-graph: update docs option
Diffstat (limited to 'Library/Formula/open-scene-graph.rb')
| -rw-r--r-- | Library/Formula/open-scene-graph.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Formula/open-scene-graph.rb b/Library/Formula/open-scene-graph.rb index 7ee6aec3e..1a98174f4 100644 --- a/Library/Formula/open-scene-graph.rb +++ b/Library/Formula/open-scene-graph.rb @@ -29,8 +29,9 @@ class OpenSceneGraph < Formula head 'http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/' - option 'docs', 'Build the documentation with Doxygen and Graphviz' option :cxx11 + option "with-docs", "Build the documentation with Doxygen and Graphviz" + deprecated_option "docs" => "with-docs" depends_on 'cmake' => :build depends_on 'pkg-config' => :build @@ -49,9 +50,9 @@ class OpenSceneGraph < Formula depends_on 'qt5' => :optional depends_on 'qt' => :optional - if build.include? 'docs' - depends_on 'doxygen' - depends_on 'graphviz' + if build.with? "docs" + depends_on "doxygen" => :build + depends_on "graphviz" => :build end # Fix osgQt for Qt 5.2 @@ -67,7 +68,7 @@ class OpenSceneGraph < Formula end args = std_cmake_args - args << '-DBUILD_DOCUMENTATION=' + ((build.include? 'docs') ? 'ON' : 'OFF') + args << "-DBUILD_DOCUMENTATION=" + ((build.with? "docs") ? "ON" : "OFF") if MacOS.prefer_64_bit? args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.arch_64_bit}" @@ -92,9 +93,9 @@ class OpenSceneGraph < Formula mkdir 'build' do system 'cmake', *args system 'make' - system 'make', 'doc_openscenegraph' if build.include? 'docs' + system "make", "doc_openscenegraph" if build.with? "docs" system 'make install' - if build.include? 'docs' + if build.with? "docs" doc.install Dir["#{prefix}/doc/OpenSceneGraphReferenceDocs/*"] end end |
