aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libwbxml.rb
blob: 3b7124ded8a4192325258c539f5b1c82539482f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 "with-docs", "Build the documentation with Doxygen and Graphviz"
  deprecated_option "docs" => "with-docs"

  depends_on 'cmake' => :build
  depends_on 'wget' => :optional

  if build.with? "docs"
    depends_on "doxygen" => :build
    depends_on "graphviz" => :build
  end

  def install
    mkdir "build" do
      args = std_cmake_args + %w[..]
      args << "-DBUILD_DOCUMENTATION=ON" if build.with? "docs"
      system "cmake", *args
      system "make install"
    end
  end
end