homebrew-core/Formula/libcec.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

23 lines
555 B
Ruby

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'
depends_on :autoconf
depends_on :automake
depends_on :libtool
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