aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcec.rb
blob: 3a7d75e337554829b96b7c85aab965761505cddd (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
require 'formula'

class Libcec < Formula
  homepage 'http://libcec.pulse-eight.com/'
  url 'https://github.com/Pulse-Eight/libcec/archive/libcec-2.1.4.tar.gz'
  sha1 '3ee241201b3650b97ec4fc41b0f5dd33476080f9'

  bottle do
    cellar :any
    revision 1
    sha1 "15c6c1b20a5d4847017d0d0a1f02c3519080a236" => :yosemite
    sha1 "26a55716130e364641b6eec32e56ad41b7a7e7a3" => :mavericks
    sha1 "34efc22ee55549ddee07ffc17f3647b8fe180399" => :mountain_lion
  end

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  depends_on "libtool" => :build
  depends_on "pkg-config" => :build

  def install
    system "./bootstrap"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end

  test do
    system "#{bin}/cec-client", "--info"
  end
end