homebrew-core/Formula/libcouchbase.rb
Sergey Avseyev 893cabab84 libcouchbase 2.2.0
Closes Homebrew/homebrew#24031.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-11-06 18:07:19 +00:00

39 lines
1.1 KiB
Ruby

require 'formula'
class Libcouchbase < Formula
homepage 'http://couchbase.com/communities/c'
url 'http://packages.couchbase.com/clients/c/libcouchbase-2.2.0.tar.gz'
sha1 '0d267b90b1f772c5431d3408c4c61a4b8e9de383'
option :universal
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.with?('libev-plugin')
depends_on 'libevent' if build.with?('libevent-plugin')
def install
args = [
"--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-examples",
"--disable-tests", # don't download google-test framework
"--disable-couchbasemock"
]
if build.universal?
args << "--enable-fat-binary"
ENV.universal_binary
end
if build.without?('libev-plugin') && build.without?("libevent-plugin")
# do not do plugin autodiscovery
args << "--disable-plugins"
end
system "./configure", *args
system "make install"
end
def test
system "#{bin}/cbc", "version"
end
end