37 lines
1.1 KiB
Ruby
37 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.24.tar.bz2"
|
|
sha256 "ae1462be2a2eb8fe5cd054825143617c53c2c9c7195606cb5a5ba68c0f68f9c9"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/Latest stable version.*?href=.*?gloox[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "decf46b20a794855cf3bd3c06e05111d15fd11de4dec1c5fdf6a1253eb865e7a" => :catalina
|
|
sha256 "607baeeadc43775af6799d5bc4715239cbe6455ec72d2e14d82523d425fa7799" => :mojave
|
|
sha256 "011c8a88d0f8970c9ad4ed339972b55b56c26120e64ef9d1576b68c03b10f706" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libidn"
|
|
depends_on "openssl@1.1"
|
|
|
|
uses_from_macos "zlib"
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--with-zlib",
|
|
"--disable-debug",
|
|
"--with-openssl=#{Formula["openssl@1.1"].opt_prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"gloox-config", "--cflags", "--libs", "--version"
|
|
end
|
|
end
|