diff options
| author | Dominyk Tiller | 2015-01-30 17:09:42 +0000 |
|---|---|---|
| committer | Jack Nagel | 2015-01-31 18:03:09 -0500 |
| commit | 7c8284b31ca092ced397bd1dbd49e490d05e72fa (patch) | |
| tree | a1f1ac7bb73967ae8faa3fe70c03c1ba466a1c47 /Library/Formula | |
| parent | 0bab0c809d00699662ec09b76cdf5ddd0f644a2f (diff) | |
| download | homebrew-7c8284b31ca092ced397bd1dbd49e490d05e72fa.tar.bz2 | |
gloox 1.0.12
Version bump, system OpenSSL linkage fix, patch removed due to being
fixed upstream, links updated to SSL/TLS, strict audit fixes.
Closes #36385.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gloox.rb | 57 |
1 files changed, 26 insertions, 31 deletions
diff --git a/Library/Formula/gloox.rb b/Library/Formula/gloox.rb index d6cd68e7d..232172f44 100644 --- a/Library/Formula/gloox.rb +++ b/Library/Formula/gloox.rb @@ -1,37 +1,32 @@ -require 'formula' - class Gloox < Formula - homepage 'http://camaya.net/gloox/' - url 'http://camaya.net/download/gloox-1.0.9.tar.bz2' - sha1 '0f408d25b8e8ba8dea69832b4c49ad02d74a6695' - - depends_on 'pkg-config' => :build + 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" - # signed/unsigned conversion error, reported upstream: - # http://bugs.camaya.net/ticket/?id=223 - patch :DATA + depends_on "pkg-config" => :build + depends_on "openssl" => :recommended + depends_on "gnutls" => :optional + depends_on "libidn" => :optional def install - system "./configure", "--disable-debug", - "--prefix=#{prefix}", - "--with-openssl", - "--without-gnutls", - "--with-zlib" - system "make 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 -end -__END__ -diff --git a/src/atomicrefcount.cpp b/src/atomicrefcount.cpp -index 58a3887..599a818 100644 ---- a/src/atomicrefcount.cpp -+++ b/src/atomicrefcount.cpp -@@ -76,7 +76,7 @@ namespace gloox - #if defined( _WIN32 ) && !defined( __SYMBIAN32__ ) - ::InterlockedExchange( (volatile LONG*)&m_count, (volatile LONG)0 ); - #elif defined( __APPLE__ ) -- OSAtomicAnd32Barrier( (int32_t)0, (volatile int32_t*)&m_count ); -+ OSAtomicAnd32Barrier( (int32_t)0, (volatile uint32_t*)&m_count ); - #elif defined( HAVE_GCC_ATOMIC_BUILTINS ) - // Use the gcc intrinsic for atomic decrement if supported. - __sync_fetch_and_and( &m_count, 0 ); + test do + system bin/"gloox-config", "--cflags", "--libs", "--version" + end +end |
