homebrew-core/Formula/libcouchbase.rb
Sergey Avseyev e0edfd1fe3 libcouchbase 2.1.0
Closes Homebrew/homebrew#21977.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-18 11:46:01 -07:00

27 lines
979 B
Ruby

require 'formula'
class Libcouchbase < Formula
homepage 'http://couchbase.com/communities/c'
url 'http://packages.couchbase.com/clients/c/libcouchbase-2.1.0.tar.gz'
sha1 'dd20034c795f91751bacc4859196fdd86a89edbc'
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-tests", # don't download google-test framework
"--disable-couchbasemock"
system "make install"
end
def test
system "#{bin}/cbc", "version"
end
end