diff options
Diffstat (limited to 'Library/Formula/libwbxml.rb')
| -rw-r--r-- | Library/Formula/libwbxml.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/libwbxml.rb b/Library/Formula/libwbxml.rb index d1fcfaea3..3b7124ded 100644 --- a/Library/Formula/libwbxml.rb +++ b/Library/Formula/libwbxml.rb @@ -13,17 +13,21 @@ class Libwbxml < Formula sha1 "3aced5392e10b5bad5e53e579a99b0247157cc42" => :mountain_lion end - option 'docs', 'Build the documentation with Doxygen and Graphviz' + option "with-docs", "Build the documentation with Doxygen and Graphviz" + deprecated_option "docs" => "with-docs" depends_on 'cmake' => :build depends_on 'wget' => :optional - depends_on 'doxygen' if build.include? 'docs' - depends_on 'graphviz' if build.include? 'docs' + + if build.with? "docs" + depends_on "doxygen" => :build + depends_on "graphviz" => :build + end def install mkdir "build" do args = std_cmake_args + %w[..] - args << '-DBUILD_DOCUMENTATION=ON' if build.include? 'docs' + args << "-DBUILD_DOCUMENTATION=ON" if build.with? "docs" system "cmake", *args system "make install" end |
