aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 21:37:43 -0700
committerAdam Vandenberg2012-08-27 21:37:43 -0700
commitaaf15a2286794b4d4865f71c93d1f582207b4abd (patch)
tree39dca27fcd903023d15d4ba28c1a3a22b4c6f188 /Library/Formula
parent21be61ab2cb0ebc8f8543b258289517bcad42191 (diff)
downloadhomebrew-aaf15a2286794b4d4865f71c93d1f582207b4abd.tar.bz2
ekg2: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ekg2.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/ekg2.rb b/Library/Formula/ekg2.rb
index 722eeff0c..254949e7c 100644
--- a/Library/Formula/ekg2.rb
+++ b/Library/Formula/ekg2.rb
@@ -1,22 +1,18 @@
require 'formula'
-def use_libgadu?; ARGV.include? "--with-libgadu"; end
-
class Ekg2 < Formula
- url 'http://pl.ekg2.org/ekg2-0.3.1.tar.gz'
homepage 'http://ekg2.org'
+ url 'http://pl.ekg2.org/ekg2-0.3.1.tar.gz'
md5 '68fc05b432c34622df6561eaabef5a40'
depends_on 'pkg-config' => :build
depends_on 'readline'
- depends_on 'libgadu' if use_libgadu?
+ depends_on 'libgadu' if build.include? "with-libgadu"
# stripping breaks loading shared objects
skip_clean :all
- def options
- [["--with-libgadu", "Compiles ekg2 with gadu-gadu support"]]
- end
+ option "with-libgadu", "Compiles ekg2 with gadu-gadu support"
def install
readline = Formula.factory 'readline'
@@ -29,7 +25,7 @@ class Ekg2 < Formula
"--without-gtk",
"--enable-unicode"]
- args << use_libgadu? ? "--with-libgadu" : "--without-libgadu"
+ args << build.include?("with-libgadu") ? "--with-libgadu" : "--without-libgadu"
system "./configure", *args
system "make install"