aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-01-26 18:26:46 -0600
committerJack Nagel2013-01-26 18:26:46 -0600
commit3fc405164d1c19d6f556f22368b1c2533bf0bbe8 (patch)
treec73bc17b86dcc0399e19bfcfa4225f06f2cbbd83
parentd10742a4a5223da7c6555174c53ff351d6ebcef0 (diff)
downloadhomebrew-3fc405164d1c19d6f556f22368b1c2533bf0bbe8.tar.bz2
ocp: use new optional deps
-rw-r--r--Library/Formula/ocp.rb16
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/ocp.rb b/Library/Formula/ocp.rb
index 1b07c1c76..b4609c225 100644
--- a/Library/Formula/ocp.rb
+++ b/Library/Formula/ocp.rb
@@ -5,14 +5,10 @@ class Ocp < Formula
url "http://downloads.sourceforge.net/project/opencubicplayer/ocp-0.1.21/ocp-0.1.21.tar.bz2"
sha1 "aaa16cf1979c572b09c73e7cc61350bfc4477380"
- option "without-mad", "disable mad mpeg audio support"
- option "without-flac", "disable FLAC support"
- option "with-adplug", "enable adplug support"
-
depends_on "libvorbis"
- depends_on "mad" => :recommended unless build.include? "without-mad"
- depends_on "flac" => :recommended unless build.include? "without-flac"
- depends_on "adplug" => :optional if build.include? "with-adplug"
+ depends_on "mad" => :recommended
+ depends_on "flac" => :recommended
+ depends_on "adplug" => :optional
def install
ENV.deparallelize
@@ -24,9 +20,9 @@ class Ocp < Formula
--without-desktop_file_install
]
- args << "--without-mad" if build.include? "without-mad"
- args << "--without-flac" if build.include? "without-flac"
- args << "--with-adplug" if build.include? "with-adplug"
+ args << "--without-mad" if build.without? "mad"
+ args << "--without-flac" if build.without? "flac"
+ args << "--with-adplug" if build.with? "adplug"
system "./configure", *args
system "make"