aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-01-31 18:31:19 -0600
committerJack Nagel2013-01-31 18:31:19 -0600
commita375f97690278d83a2e7fdd42833402e7720aa19 (patch)
treea0d5787e1429bd0cf8180b592a3e0e274087f33a /Library
parentb85024a8fb68e690261bc2ce302280f6d9decae0 (diff)
downloadhomebrew-a375f97690278d83a2e7fdd42833402e7720aa19.tar.bz2
ekg2: use optional dep
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ekg2.rb6
1 files changed, 2 insertions, 4 deletions
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"