bitlbee: Add libevent option

Libevent handlers are considered more stable than the glib ones.

Closes Homebrew/homebrew#44786.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
master
Ben Doerr 2015-10-09 10:27:04 -04:00 committed by Dominyk Tiller
parent a12d064e57
commit 956e4b3eb0
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class Bitlbee < Formula
option "with-pidgin", "Use finch/libpurple for all communication with instant messaging networks"
option "with-libotr", "Build with otr (off the record) support"
option "with-libevent", "Use libevent for the event-loop handling rather than glib."
deprecated_option "with-finch" => "with-pidgin"
@ -24,6 +25,7 @@ class Bitlbee < Formula
depends_on "libgcrypt"
depends_on "pidgin" => :optional
depends_on "libotr" => :optional
depends_on "libevent" => :optional
def install
args = %W[
@ -37,6 +39,7 @@ class Bitlbee < Formula
args << "--purple=1" if build.with? "pidgin"
args << "--otr=1" if build.with? "libotr"
args << "--events=libevent" if build.with? "libevent"
system "./configure", *args