homebrew-core/Formula/qtplay.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

18 lines
509 B
Ruby

require 'formula'
class Qtplay < Formula
homepage 'https://sites.google.com/site/rainbowflight2/'
url 'https://sites.google.com/site/rainbowflight2/qtplay1.3.1.tar.gz'
sha1 'fd7394675c972377a48c2ff8e0a774853c0be6a3'
def install
# Only a 32-bit binary is supported
system ENV.cc, "qtplay.c", "-arch", "i386", "-framework", "QuickTime", "-framework", "Carbon", "-o", "qtplay"
bin.install 'qtplay'
man1.install 'qtplay.1'
end
test do
system "#{bin}/qtplay", "--help"
end
end