aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcouchbase.rb
diff options
context:
space:
mode:
authorJack Nagel2014-11-14 16:19:32 -0600
committerJack Nagel2014-11-14 16:23:16 -0600
commit1c9166237d17640d21fd4f19cdd57839549d7567 (patch)
tree661cd84e8c5333e217083a2d2ae3d783b5245bf5 /Library/Formula/libcouchbase.rb
parentbfad79592e16d4e10e274cc7385b7b2110abae8b (diff)
downloadhomebrew-1c9166237d17640d21fd4f19cdd57839549d7567.tar.bz2
libcouchbase: update options
Diffstat (limited to 'Library/Formula/libcouchbase.rb')
-rw-r--r--Library/Formula/libcouchbase.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/Library/Formula/libcouchbase.rb b/Library/Formula/libcouchbase.rb
index d88f8d1f2..b44e349a3 100644
--- a/Library/Formula/libcouchbase.rb
+++ b/Library/Formula/libcouchbase.rb
@@ -12,12 +12,15 @@ class Libcouchbase < Formula
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)'
+ option "with-libev", "Build libev plugin"
+ option "without-libevent", "Do not build libevent plugin"
- depends_on 'libev' if build.with?('libev-plugin')
- depends_on 'libevent' if build.with?('libevent-plugin')
- depends_on 'openssl'
+ deprecated_option "with-libev-plugin" => "with-libev"
+ deprecated_option "without-libevent-plugin" => "without-libevent"
+
+ depends_on "libev" => :optional
+ depends_on "libevent" => :recommended
+ depends_on "openssl"
def install
args = [
@@ -28,14 +31,17 @@ class Libcouchbase < Formula
"--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")
+
+ if build.without? "libev" and build.without? "libevent"
# do not do plugin autodiscovery
args << "--disable-plugins"
end
+
system "./configure", *args
system "make install"
end