From a375f97690278d83a2e7fdd42833402e7720aa19 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 31 Jan 2013 18:31:19 -0600 Subject: ekg2: use optional dep --- Library/Formula/ekg2.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ekg2.rb b/Library/Formula/ekg2.rb index 2ec7dbaf1..6d0091b36 100644 --- a/Library/Formula/ekg2.rb +++ b/Library/Formula/ekg2.rb @@ -7,9 +7,7 @@ class Ekg2 < Formula depends_on 'pkg-config' => :build depends_on 'readline' - depends_on 'libgadu' if build.include? "with-libgadu" - - option "with-libgadu", "Compiles ekg2 with gadu-gadu support" + depends_on 'libgadu' => :optional def install readline = Formula.factory 'readline' @@ -22,7 +20,7 @@ class Ekg2 < Formula "--without-gtk", "--enable-unicode"] - args << build.include?("with-libgadu") ? "--with-libgadu" : "--without-libgadu" + args << build.with?("libgadu") ? "--with-libgadu" : "--without-libgadu" system "./configure", *args system "make install" -- cgit v1.2.3