2010-10-14 10:05:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libwbxml < Formula
|
2010-10-14 10:05:04 +00:00
|
|
|
homepage 'https://libwbxml.opensync.org/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/libwbxml/libwbxml/0.11.2/libwbxml-0.11.2.tar.bz2'
|
2012-09-06 14:58:11 +00:00
|
|
|
sha1 '0b4f526709cac75c4b261666950bd935dda9f0d4'
|
|
|
|
|
|
|
|
option 'docs', 'Build the documentation with Doxygen and Graphviz'
|
2010-10-14 10:05:04 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
2012-09-06 14:58:11 +00:00
|
|
|
depends_on 'wget' => :optional
|
|
|
|
depends_on 'doxygen' if build.include? 'docs'
|
|
|
|
depends_on 'graphviz' if build.include? 'docs'
|
2010-10-14 10:05:04 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir "build" do
|
2012-09-06 14:58:11 +00:00
|
|
|
args = std_cmake_args + %w[..]
|
|
|
|
args << '-DBUILD_DOCUMENTATION=ON' if build.include? 'docs'
|
|
|
|
system "cmake", *args
|
2010-10-14 10:05:04 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|