2011-03-10 05:11:03 +00:00
|
|
|
class Gloox < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C++ Jabber/XMPP library that handles the low-level protocol"
|
2015-01-30 17:09:42 +00:00
|
|
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "67125a2e98a9803179af75f1c9c3c0a14f0bc238d48f23c4a3cf7c8fdebc43a9"
|
2010-06-01 20:18:21 +00:00
|
|
|
|
2015-01-30 17:55:25 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "5060164baddf38f05951775cfd5f70b2f52056d2" => :yosemite
|
|
|
|
sha1 "c2c278952e2256638c8165bf56168d069375fd7f" => :mavericks
|
|
|
|
sha1 "ce76ecc24eef8c32f79d6e65bf6eae8a0f6efdcf" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-01-30 17:09:42 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "openssl" => :recommended
|
|
|
|
depends_on "gnutls" => :optional
|
|
|
|
depends_on "libidn" => :optional
|
2010-06-01 20:18:21 +00:00
|
|
|
|
2009-07-10 02:11:33 +00:00
|
|
|
def install
|
2015-01-30 17:09:42 +00:00
|
|
|
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"
|
2009-07-10 02:11:33 +00:00
|
|
|
end
|
2010-06-01 20:18:21 +00:00
|
|
|
|
2015-01-30 17:09:42 +00:00
|
|
|
test do
|
|
|
|
system bin/"gloox-config", "--cflags", "--libs", "--version"
|
|
|
|
end
|
|
|
|
end
|