From 3fc405164d1c19d6f556f22368b1c2533bf0bbe8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 26 Jan 2013 18:26:46 -0600 Subject: ocp: use new optional deps --- Library/Formula/ocp.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'Library') 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" -- cgit v1.2.3