Skip to content

Commit

Permalink
bitlbee: optional otr support
Browse files Browse the repository at this point in the history
Closes Homebrew#15261.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
McKay Marston authored and adamv committed Oct 4, 2012
1 parent 7c1056b commit c5d69ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Library/Formula/bitlbee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ class Bitlbee < Formula
sha1 '74afdff87be49ce060771a6ae10d7643cd57b9b6'

option 'purple', "Use libpurple for all communication with instant messaging networks"
option 'with-otr', "Build with otr (off the record) support"

depends_on 'glib'
depends_on 'gnutls'
depends_on 'libpurple' if build.include? 'purple'
depends_on 'libpurple' => :optional if build.include? 'purple'
depends_on 'libotr' => :optional if build.include? 'with-otr'

def install
# By default Homebrew will set ENV['LD'] to the same as ENV['CC'] which
Expand All @@ -27,6 +29,7 @@ def install
"--ipsocket=#{var}/bitlbee/run/bitlbee.sock"]

args << "--purple=1" if build.include? "purple"
args << "--otr=1" if build.include? "with-otr"

system "./configure", *args

Expand Down

0 comments on commit c5d69ae

Please sign in to comment.