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/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://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'
|
|
|
|
|
2014-07-03 21:27:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-20 16:55:47 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "15b0e5a41fad5114daf23f702893b347829ae885" => :yosemite
|
|
|
|
sha1 "2e9d6fe9a6b9147b612350c4f12c59319bb71f5a" => :mavericks
|
|
|
|
sha1 "3aced5392e10b5bad5e53e579a99b0247157cc42" => :mountain_lion
|
2014-07-03 21:27:44 +00:00
|
|
|
end
|
|
|
|
|
2014-11-14 20:35:08 +00:00
|
|
|
option "with-docs", "Build the documentation with Doxygen and Graphviz"
|
|
|
|
deprecated_option "docs" => "with-docs"
|
2010-10-14 10:05:04 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
2012-09-06 14:58:11 +00:00
|
|
|
depends_on 'wget' => :optional
|
2014-11-14 20:35:08 +00:00
|
|
|
|
|
|
|
if build.with? "docs"
|
|
|
|
depends_on "doxygen" => :build
|
|
|
|
depends_on "graphviz" => :build
|
|
|
|
end
|
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[..]
|
2014-11-14 20:35:08 +00:00
|
|
|
args << "-DBUILD_DOCUMENTATION=ON" if build.with? "docs"
|
2012-09-06 14:58:11 +00:00
|
|
|
system "cmake", *args
|
2010-10-14 10:05:04 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|