2012-01-11 10:43:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libcouchbase < Formula
|
|
|
|
homepage 'http://couchbase.com/develop/c/current'
|
2013-02-06 10:00:00 +00:00
|
|
|
url 'http://packages.couchbase.com/clients/c/libcouchbase-2.0.3.tar.gz'
|
|
|
|
sha1 '41edb41fd490a0a41c78773ee02877e773b3e1c0'
|
2012-01-11 10:43:18 +00:00
|
|
|
|
2012-11-27 20:44:46 +00:00
|
|
|
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')
|
2012-01-11 10:43:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-11-27 20:44:46 +00:00
|
|
|
"--disable-examples",
|
2013-02-06 10:00:00 +00:00
|
|
|
"--disable-tests", # don't download google-test framework
|
2012-01-11 10:43:18 +00:00
|
|
|
"--disable-couchbasemock"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/cbc-version"
|
|
|
|
end
|
|
|
|
end
|