blob: 4f5dd4659427d9f333baf5b10168b6064c5d4cc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'formula'
class Ekg2 < Formula
homepage 'http://ekg2.org'
url 'http://pl.ekg2.org/ekg2-0.3.1.tar.gz'
sha1 '8b6f53086e8e1d2890fdc1ec274a7b1615da0fa1'
depends_on 'pkg-config' => :build
depends_on 'readline'
depends_on 'libgadu' => :optional
def install
readline = Formula['readline'].opt_prefix
args = ["--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-python",
"--without-perl",
"--with-readline=#{readline}",
"--without-gtk",
"--enable-unicode"]
args << (build.with?("libgadu") ? "--with-libgadu" : "--without-libgadu")
system "./configure", *args
system "make install"
end
end
|