2013-01-27 21:09:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libcec < Formula
|
|
|
|
homepage 'http://libcec.pulse-eight.com/'
|
2014-02-15 18:06:57 +00:00
|
|
|
url 'https://github.com/Pulse-Eight/libcec/archive/libcec-2.1.4.tar.gz'
|
|
|
|
sha1 '3ee241201b3650b97ec4fc41b0f5dd33476080f9'
|
2013-01-27 21:09:53 +00:00
|
|
|
|
2014-07-03 17:36:38 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "2e3d47fd5de28a92572fc112ef28f64f02a25d0b" => :mavericks
|
|
|
|
sha1 "b926b847e6a6bd53d42b0af7317846fb73ce20b2" => :mountain_lion
|
|
|
|
sha1 "ab69ed933cb155203a69683e8a4ef4248d87d589" => :lion
|
|
|
|
end
|
|
|
|
|
2014-06-01 01:39:26 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
2013-01-27 21:09:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./bootstrap"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-01-27 21:09:53 +00:00
|
|
|
system "#{bin}/cec-client", "--info"
|
|
|
|
end
|
|
|
|
end
|