2011-01-05 09:40:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-04-04 23:39:41 +00:00
|
|
|
class Ekg2 < Formula
|
2011-01-05 09:40:25 +00:00
|
|
|
homepage 'http://ekg2.org'
|
2012-08-28 04:37:43 +00:00
|
|
|
url 'http://pl.ekg2.org/ekg2-0.3.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8b6f53086e8e1d2890fdc1ec274a7b1615da0fa1'
|
2011-01-05 09:40:25 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2013-02-01 00:31:19 +00:00
|
|
|
depends_on 'libgadu' => :optional
|
2011-01-05 09:40:25 +00:00
|
|
|
|
|
|
|
def install
|
2012-11-11 03:12:26 +00:00
|
|
|
readline = Formula.factory 'readline'
|
2011-01-05 09:40:25 +00:00
|
|
|
|
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-python",
|
|
|
|
"--without-perl",
|
|
|
|
"--with-readline=#{readline.prefix}",
|
|
|
|
"--without-gtk",
|
|
|
|
"--enable-unicode"]
|
|
|
|
|
2013-02-01 00:31:19 +00:00
|
|
|
args << build.with?("libgadu") ? "--with-libgadu" : "--without-libgadu"
|
2011-01-05 09:40:25 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|