aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libwbxml.rb
diff options
context:
space:
mode:
authornibbles 2bits2012-09-06 07:58:11 -0700
committerAdam Vandenberg2012-09-07 07:22:43 -0700
commit727cbc2f91e15a99428e3b3b7ad956c14bcda061 (patch)
tree9691413f406988f107034146e2684cfe819342cf /Library/Formula/libwbxml.rb
parent36f4292122dc6bf53784ff03a63964cd128b62c3 (diff)
downloadhomebrew-727cbc2f91e15a99428e3b3b7ad956c14bcda061.tar.bz2
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 #14765. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/libwbxml.rb')
-rw-r--r--Library/Formula/libwbxml.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Formula/libwbxml.rb b/Library/Formula/libwbxml.rb
index 4cc466816..5be8775be 100644
--- a/Library/Formula/libwbxml.rb
+++ b/Library/Formula/libwbxml.rb
@@ -2,14 +2,21 @@ require 'formula'
class Libwbxml < Formula
homepage 'https://libwbxml.opensync.org/'
- url 'http://sourceforge.net/projects/libwbxml/files/libwbxml/0.10.8/libwbxml-0.10.8.tar.gz'
- sha1 '7704cdf5952ff6916158bbc76aa919ceb1780957'
+ url 'http://sourceforge.net/projects/libwbxml/files/libwbxml/0.11.2/libwbxml-0.11.2.tar.bz2'
+ sha1 '0b4f526709cac75c4b261666950bd935dda9f0d4'
+
+ option 'docs', 'Build the documentation with Doxygen and Graphviz'
depends_on 'cmake' => :build
+ depends_on 'wget' => :optional
+ depends_on 'doxygen' if build.include? 'docs'
+ depends_on 'graphviz' if build.include? 'docs'
def install
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"
end
end