From a63ac085653865c96684fa2da2abac28fd23e8b3 Mon Sep 17 00:00:00 2001 From: Mateusz Lenik Date: Wed, 5 Jan 2011 10:40:25 +0100 Subject: ekg2 0.3.1 ekg2 is a console client for jabber and gadu-gadu Signed-off-by: Adam Vandenberg --- Library/Formula/ekg2.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Library/Formula/ekg2.rb (limited to 'Library/Formula') 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 :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 + -- cgit v1.2.3