diff options
| author | Damon Haley | 2014-01-23 14:55:55 -0800 | 
|---|---|---|
| committer | Mike McQuaid | 2014-01-23 14:55:55 -0800 | 
| commit | 3aa41903a080e685e017957e0bd92b6300cd8d98 (patch) | |
| tree | 6ab592e736a2712bd6c377a94c93887ad3b40609 | |
| parent | fcaf5a20eb786759c168b94f256edbdbe42d4134 (diff) | |
| download | homebrew-3aa41903a080e685e017957e0bd92b6300cd8d98.tar.bz2 | |
dovecot: optionally use clucene.
References #26100.
Closes #26102.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/dovecot.rb | 22 | 
1 files changed, 15 insertions, 7 deletions
| 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 - | 
