libwbxml 0.11.2 plus optional deps

- Upgrade to version 0.11.2
- Add an option to build the docs with Graphviz and Doxygen.
- Add an optional dep on wget

Closes Homebrew/homebrew#14765.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
nibbles 2bits 2012-09-06 07:58:11 -07:00 committed by Adam Vandenberg
parent bc928e63e5
commit 17b8b0c745
1 changed files with 10 additions and 3 deletions

View File

@ -2,14 +2,21 @@ require 'formula'
class Libwbxml < Formula class Libwbxml < Formula
homepage 'https://libwbxml.opensync.org/' homepage 'https://libwbxml.opensync.org/'
url 'http://sourceforge.net/projects/libwbxml/files/libwbxml/0.10.8/libwbxml-0.10.8.tar.gz' url 'http://sourceforge.net/projects/libwbxml/files/libwbxml/0.11.2/libwbxml-0.11.2.tar.bz2'
sha1 '7704cdf5952ff6916158bbc76aa919ceb1780957' sha1 '0b4f526709cac75c4b261666950bd935dda9f0d4'
option 'docs', 'Build the documentation with Doxygen and Graphviz'
depends_on 'cmake' => :build depends_on 'cmake' => :build
depends_on 'wget' => :optional
depends_on 'doxygen' if build.include? 'docs'
depends_on 'graphviz' if build.include? 'docs'
def install def install
mkdir "build" do mkdir "build" do
system "cmake", "..", *std_cmake_args args = std_cmake_args + %w[..]
args << '-DBUILD_DOCUMENTATION=ON' if build.include? 'docs'
system "cmake", *args
system "make install" system "make install"
end end
end end