aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcouchbase.rb
diff options
context:
space:
mode:
authorMark Nunberg2014-11-19 19:01:25 -0800
committerMike McQuaid2014-11-20 13:55:45 +0000
commit6fa783a99711f4ebcaa5601ccbcfadbd171cd901 (patch)
tree3bcae92f1081175184a01c693839b829389c03ed /Library/Formula/libcouchbase.rb
parent6890772e87868f92e32cd8f5ca2cf3a824fc1f6d (diff)
downloadhomebrew-6fa783a99711f4ebcaa5601ccbcfadbd171cd901.tar.bz2
libcouchbase 2.4.4
This also uses the newer CMake build format, switching over from autotools Closes #34333. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/libcouchbase.rb')
-rw-r--r--Library/Formula/libcouchbase.rb35
1 files changed, 18 insertions, 17 deletions
diff --git a/Library/Formula/libcouchbase.rb b/Library/Formula/libcouchbase.rb
index b44e349a3..95d57e004 100644
--- a/Library/Formula/libcouchbase.rb
+++ b/Library/Formula/libcouchbase.rb
@@ -2,8 +2,9 @@ require 'formula'
class Libcouchbase < Formula
homepage 'http://couchbase.com/communities/c'
- url 'http://packages.couchbase.com/clients/c/libcouchbase-2.4.3.tar.gz'
- sha1 'a3be2316787f1fcd440806d00efdb023f021495d'
+ url 'http://packages.couchbase.com/clients/c/libcouchbase-2.4.4.tar.gz'
+ sha1 'eedc67ef4f85fd51b6bc43cb222e07f6d07241a8'
+ head "https://github.com/couchbase/libcouchbase", :using => :git
bottle do
sha1 "237c350c22cdff767e0cc309abede040b3c50b1b" => :yosemite
@@ -19,31 +20,31 @@ class Libcouchbase < Formula
deprecated_option "without-libevent-plugin" => "without-libevent"
depends_on "libev" => :optional
+ depends_on "libuv" => :optional
depends_on "libevent" => :recommended
depends_on "openssl"
+ depends_on 'cmake' => :build
def install
- args = [
- "--disable-debug",
- "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--disable-examples",
- "--disable-tests", # don't download google-test framework
- "--disable-couchbasemock"
- ]
+ args = std_cmake_args
+ args << '-DLCB_NO_TESTS=1'
+ ['libev', 'libevent', 'libuv'].each do |pname|
+ args << "-DLCB_BUILD_#{pname.upcase}=" + (build.with?("#{pname}") ? 'ON' : 'OFF')
+ end
if build.universal?
- args << "--enable-fat-binary"
+ args << '-DLCB_UNIVERSAL_BINARY=1'
ENV.universal_binary
end
-
- if build.without? "libev" and build.without? "libevent"
- # do not do plugin autodiscovery
- args << "--disable-plugins"
+ if build.without?('libev') && build.without?('libuv') && build.without?('libevent')
+ args << '-DLCB_NO_PLUGINS=1'
end
- system "./configure", *args
- system "make install"
+ ln_s cached_download/".git", ".git" if build.head?
+ mkdir 'LCB-BUILD' do
+ system "cmake", "..", *args
+ system 'make install'
+ end
end
test do