homebrew-core/Formula/libcouchbase.rb
2014-08-24 17:14:15 +01:00

47 lines
1.4 KiB
Ruby

require 'formula'
class Libcouchbase < Formula
homepage 'http://couchbase.com/communities/c'
url 'http://packages.couchbase.com/clients/c/libcouchbase-2.4.0.tar.gz'
sha1 '3ce25fa98255967775b4aa4e5b13b7c4ff0a866e'
revision 1
bottle do
sha1 "09afac35658aa9aa455d530e7b29f968c02f0bbf" => :mavericks
sha1 "38eb240b28b0d906b489aafdf4d03a882dbea236" => :mountain_lion
sha1 "fa295aef72d291ccf0e00553a66d693150919494" => :lion
end
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')
depends_on 'openssl'
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
test do
system "#{bin}/cbc", "version"
end
end