aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-09-02 01:08:00 -0700
committerMike McQuaid2012-09-04 19:44:43 -0700
commitc513d922e056050452183745a901f8a494d7350c (patch)
tree62e3731450c7fa1c6e5de09fb2f1882185382ef4 /Library
parent400de0cd1819012d2d36ccc12a0dfb20b2f241f5 (diff)
downloadhomebrew-c513d922e056050452183745a901f8a494d7350c.tar.bz2
mplayer: fix test and dependency.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mplayer.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/mplayer.rb b/Library/Formula/mplayer.rb
index 4cb74410b..e5119d906 100644
--- a/Library/Formula/mplayer.rb
+++ b/Library/Formula/mplayer.rb
@@ -9,7 +9,6 @@ class Mplayer < Formula
option 'with-x', 'Build with X11 support'
- depends_on 'pkg-config' => :build
depends_on 'yasm' => :build
depends_on 'xz' => :build
depends_on :x11 if build.include? 'with-x'
@@ -55,6 +54,10 @@ class Mplayer < Formula
system "make"
system "make install"
end
+
+ def test
+ system "#{bin}/mplayer", "-ao", "null", "/System/Library/Sounds/Glass.aiff"
+ end
end
__END__