enable SASL support with commandline flag

Closes Homebrew/homebrew#3879.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Marshall Yount 2011-01-12 12:12:31 -06:00 committed by Mike McQuaid
parent e9a7e8d562
commit 5d80c526ef

View file

@ -7,8 +7,17 @@ class Memcached <Formula
depends_on 'libevent'
def options
[
["--enable-sasl", "Enable SASL support -- disables ASCII protocol!"],
]
end
def install
system "./configure", "--prefix=#{prefix}"
args = ["--prefix=#{prefix}"]
args << "--enable-sasl" if ARGV.include? "--enable-sasl"
system "./configure", *args
system "make install"
(prefix+'com.danga.memcached.plist').write startup_plist