aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcouchbase.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/libcouchbase.rb')
-rw-r--r--Library/Formula/libcouchbase.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/libcouchbase.rb b/Library/Formula/libcouchbase.rb
index b17649881..543822e5a 100644
--- a/Library/Formula/libcouchbase.rb
+++ b/Library/Formula/libcouchbase.rb
@@ -2,16 +2,20 @@ require 'formula'
class Libcouchbase < Formula
homepage 'http://couchbase.com/develop/c/current'
- url 'http://packages.couchbase.com/clients/c/libcouchbase-1.0.6.tar.gz'
- sha1 '733479568b851382059b82bdd093b92081f9ac9c'
+ url 'http://packages.couchbase.com/clients/c/libcouchbase-2.0.0.tar.gz'
+ sha1 'ac41e18a6131b8120d872d7d3dde7253ee898c67'
- depends_on 'libevent'
- depends_on 'libvbucket'
+ option 'with-libev-plugin', 'Build libev IO plugin (will pull libev dependency)'
+ option 'without-libevent-plugin', 'Do not build libevent plugin (will remove libevent dependency)'
+
+ depends_on 'libev' if build.include?('with-libev-plugin')
+ depends_on 'libevent' unless build.include?('without-libevent-plugin')
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
+ "--disable-examples",
"--disable-couchbasemock"
system "make install"
end