aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMateusz Lenik2011-01-05 10:40:25 +0100
committerAdam Vandenberg2011-04-01 14:53:59 -0700
commita63ac085653865c96684fa2da2abac28fd23e8b3 (patch)
tree3cb828c722ddad2d7679dd030f939801b645027d /Library/Formula
parent372cdd8f68cd0d3db8a383f9b1f3eba98e532b8a (diff)
downloadhomebrew-a63ac085653865c96684fa2da2abac28fd23e8b3.tar.bz2
ekg2 0.3.1
ekg2 is a console client for jabber and gadu-gadu Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ekg2.rb38
1 files changed, 38 insertions, 0 deletions
diff --git a/Library/Formula/ekg2.rb b/Library/Formula/ekg2.rb
new file mode 100644
index 000000000..71cd054fd
--- /dev/null
+++ b/Library/Formula/ekg2.rb
@@ -0,0 +1,38 @@
+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'
+ md5 '68fc05b432c34622df6561eaabef5a40'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'readline'
+ depends_on 'libgadu' if use_libgadu?
+
+ # stripping breaks loading shared objects
+ skip_clean :all
+
+ def options
+ [["--with-libgadu", "Compiles ekg2 with gadu-gadu support"]]
+ end
+
+ def install
+ readline = Formula.factory 'readline'
+
+ args = ["--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--without-python",
+ "--without-perl",
+ "--with-readline=#{readline.prefix}",
+ "--without-gtk",
+ "--enable-unicode"]
+
+ args << use_libgadu? ? "--with-libgadu" : "--without-libgadu"
+
+ system "./configure", *args
+ system "make install"
+ end
+end
+