31 lines
933 B
Ruby
31 lines
933 B
Ruby
require 'formula'
|
|
|
|
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'
|
|
|
|
bottle do
|
|
cellar :any
|
|
revision 1
|
|
sha1 "15b0e5a41fad5114daf23f702893b347829ae885" => :yosemite
|
|
sha1 "2e9d6fe9a6b9147b612350c4f12c59319bb71f5a" => :mavericks
|
|
sha1 "3aced5392e10b5bad5e53e579a99b0247157cc42" => :mountain_lion
|
|
end
|
|
|
|
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
|
|
args = std_cmake_args + %w[..]
|
|
args << '-DBUILD_DOCUMENTATION=ON' if build.include? 'docs'
|
|
system "cmake", *args
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|