homebrew-core/Formula/libwbxml.rb

36 lines
982 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libwbxml < Formula
homepage 'https://libwbxml.opensync.org/'
url 'https://downloads.sourceforge.net/project/libwbxml/libwbxml/0.11.2/libwbxml-0.11.2.tar.bz2'
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"
depends_on 'cmake' => :build
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
def install
2012-02-22 04:48:36 +00:00
mkdir "build" do
args = std_cmake_args + %w[..]
2014-11-14 20:35:08 +00:00
args << "-DBUILD_DOCUMENTATION=ON" if build.with? "docs"
system "cmake", *args
system "make install"
end
end
end