aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSergey Avseyev2013-09-12 08:39:24 -0700
committerAdam Vandenberg2013-09-14 22:46:54 -0700
commit9a26da350583eefaba87376e0df2c2d849bb97a9 (patch)
tree473f2d7446dad09329ad96caa726077ed1b360b7 /Library/Formula
parentf776ac70289ee557c06325bfbc7f47c83d6c89c7 (diff)
downloadhomebrew-9a26da350583eefaba87376e0df2c2d849bb97a9.tar.bz2
libcouchbase: allow universal builds
Also, disable plugin autodicovery if user don't need plugins Closes #22494. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libcouchbase.rb28
1 files changed, 20 insertions, 8 deletions
diff --git a/Library/Formula/libcouchbase.rb b/Library/Formula/libcouchbase.rb
index d9f102da0..9db80a13e 100644
--- a/Library/Formula/libcouchbase.rb
+++ b/Library/Formula/libcouchbase.rb
@@ -5,19 +5,31 @@ class Libcouchbase < Formula
url 'http://packages.couchbase.com/clients/c/libcouchbase-2.1.3.tar.gz'
sha1 '460e6b8744b3d5634c5284ff4c690c207c61f9a6'
+ 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.include?('with-libev-plugin')
- depends_on 'libevent' unless build.include?('without-libevent-plugin')
+ depends_on 'libev' if build.with?('libev-plugin')
+ depends_on 'libevent' if build.with?('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"
+ 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