diff options
| author | Jack Nagel | 2013-01-31 18:31:19 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-31 18:31:19 -0600 |
| commit | a375f97690278d83a2e7fdd42833402e7720aa19 (patch) | |
| tree | a0d5787e1429bd0cf8180b592a3e0e274087f33a /Library | |
| parent | b85024a8fb68e690261bc2ce302280f6d9decae0 (diff) | |
| download | homebrew-a375f97690278d83a2e7fdd42833402e7720aa19.tar.bz2 | |
ekg2: use optional dep
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ekg2.rb | 6 |
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" |
