blob: dc4f7398d9ef15577c8661885dbc32d5a54fba9f (
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
30
31
32
33
34
35
36
37
38
39
|
class Gloox < Formula
homepage "https://camaya.net/gloox/"
url "https://camaya.net/download/gloox-1.0.12.tar.bz2"
mirror "https://mirrors.kernel.org/debian/pool/main/g/gloox/gloox_1.0.12.orig.tar.bz2"
sha1 "188ab51af7e410d4119a8dc3e1d96ca548dbd040"
bottle do
cellar :any
sha1 "5060164baddf38f05951775cfd5f70b2f52056d2" => :yosemite
sha1 "c2c278952e2256638c8165bf56168d069375fd7f" => :mavericks
sha1 "ce76ecc24eef8c32f79d6e65bf6eae8a0f6efdcf" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "openssl" => :recommended
depends_on "gnutls" => :optional
depends_on "libidn" => :optional
def install
args = %W[
--prefix=#{prefix}
--with-zlib
--disable-debug
]
if build.with? "gnutls"
args << "--with-gnutls=yes"
else
args << "--with-openssl=#{Formula["openssl"].opt_prefix}"
end
system "./configure", *args
system "make", "install"
end
test do
system bin/"gloox-config", "--cflags", "--libs", "--version"
end
end
|