From 3aa41903a080e685e017957e0bd92b6300cd8d98 Mon Sep 17 00:00:00 2001 From: Damon Haley Date: Thu, 23 Jan 2014 14:55:55 -0800 Subject: dovecot: optionally use clucene. References #26100. Closes #26102. Signed-off-by: Mike McQuaid --- Library/Formula/dovecot.rb | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/dovecot.rb b/Library/Formula/dovecot.rb index 12cca33ac..2221a8263 100644 --- a/Library/Formula/dovecot.rb +++ b/Library/Formula/dovecot.rb @@ -6,13 +6,22 @@ class Dovecot < Formula mirror 'http://fossies.org/linux/misc/dovecot-2.2.10.tar.gz' sha256 '75592483d40dc4f76cc3b41af40caa4be80478946a699d46846d5d03e4d2e09b' + depends_on 'clucene' => :optional + def install - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--libexecdir=#{libexec}", - "--sysconfdir=#{etc}", - "--localstatedir=#{var}", - "--with-ssl=openssl" + args = %W[--prefix=#{prefix} + --disable-dependency-tracking + --libexecdir=#{libexec} + --sysconfdir=#{etc} + --localstatedir=#{var} + --with-ssl=openssl + --with-sqlite + --with-zlib + --with-bzlib] + + args << "--with-lucene" if build.with? "clucene" + + system "./configure", *args system "make install" end @@ -49,4 +58,3 @@ Source: http://wiki.dovecot.org/LaunchdInstall EOS end end - -- cgit v1.2.3