homebrew-core/Formula/gloox.rb
2018-08-23 16:45:08 +02:00

31 lines
1.1 KiB
Ruby

class Gloox < Formula
desc "C++ Jabber/XMPP library that handles the low-level protocol"
homepage "https://camaya.net/gloox/"
url "https://camaya.net/download/gloox-1.0.21.tar.bz2"
sha256 "3c13155c10e3182a1a57779134cc524efb3657545849534b2831fae0e2c3a7cc"
bottle do
cellar :any
rebuild 1
sha256 "a4ceb5cf73a6ac5b0ff7f1db8cd7b43e34eab169c529b0ca75472c389a87fcb3" => :mojave
sha256 "d8377965f6bde00d603fe9ee86a4c7509baae004055c7b5e956a49428ecc85c9" => :high_sierra
sha256 "7e7d052c6c26c7637607c464dd63819462a95dfbb3aa4efe59be9dd0f7ab55c1" => :sierra
sha256 "3023d30363b888f46408b8d9d79c38e2a96cfeb4dd071edb26c262b78d532bb5" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "openssl"
depends_on "libidn" => :optional
def install
system "./configure", "--prefix=#{prefix}",
"--with-zlib",
"--disable-debug",
"--with-openssl=#{Formula["openssl"].opt_prefix}"
system "make", "install"
end
test do
system bin/"gloox-config", "--cflags", "--libs", "--version"
end
end