aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libkate.rb
blob: e02f6e600d203fa03f7edba61fc40a6d17ce7868 (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
36
37
38
39
40
41
42
43
44
45
require "formula"

class Libkate < Formula
  homepage "https://code.google.com/p/libkate/"
  url "https://libkate.googlecode.com/files/libkate-0.4.1.tar.gz"
  mirror "https://mirrors.kernel.org/debian/pool/main/libk/libkate/libkate_0.4.1.orig.tar.gz"
  sha1 "87fd8baaddb7120fb4d20b0a0437e44ea8b6c9d8"
  revision 1

  bottle do
    revision 2
    sha1 "fd0287aca68b310e7c9d856c352b7453de2042c3" => :yosemite
    sha1 "3cdb628edf85be70d407a15070a3c9bc10b83215" => :mavericks
    sha1 "f47ba4978a5b1ff7a3aa7e9a6590e5d799cc2226" => :mountain_lion
  end

  option "with-docs", "Build documentation"
  option "with-examples", "Build example streams"

  depends_on "pkg-config" => :build
  depends_on "doxygen" => :build if build.with? "docs"
  depends_on "oggz" if build.with? "examples"
  depends_on "libpng"
  depends_on "libogg"
  depends_on "wxmac" => :optional

  fails_with :gcc do
    build 5666
    cause "Segfault during compilation"
  end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--enable-shared",
                          "--enable-static",
                          "--prefix=#{prefix}"
    system "make", "check"
    system "make", "install"
  end

  test do
    system "#{bin}/katedec", "-V"
  end
end