diff options
| author | Jack Nagel | 2014-11-14 14:35:08 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2014-11-14 14:46:45 -0600 | 
| commit | bc6c8c9763786fe25eb01b872c0bc08754e6299f (patch) | |
| tree | 273200ef60f992d2d0f142bb3752755fdf679124 /Library/Formula/libwbxml.rb | |
| parent | 0816550244248f61d5af3ba74ce96ab49ca89463 (diff) | |
| download | homebrew-bc6c8c9763786fe25eb01b872c0bc08754e6299f.tar.bz2 | |
libwbxml: update docs option
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 | 
