aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDustin Chilson2011-04-25 21:30:13 -0400
committerAdam Vandenberg2011-12-03 22:05:38 -0800
commitc586ae75a98862b6f1bd83682b0f3700f3103fab (patch)
tree0ae7df96ab14f33140e24cd22da0dbc0a8c3f72b /Library/Formula
parentc246ee22c19e5c97d3c6b311877dc0aca342bae1 (diff)
downloadhomebrew-c586ae75a98862b6f1bd83682b0f3700f3103fab.tar.bz2
Bitlbee: add Libpurple support
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bitlbee.rb26
1 files changed, 17 insertions, 9 deletions
diff --git a/Library/Formula/bitlbee.rb b/Library/Formula/bitlbee.rb
index 0c46fd848..b17685ba1 100644
--- a/Library/Formula/bitlbee.rb
+++ b/Library/Formula/bitlbee.rb
@@ -7,6 +7,11 @@ class Bitlbee < Formula
depends_on 'glib'
depends_on 'gnutls'
+ depends_on 'libpurple' if ARGV.include? '--purple'
+
+ def options
+ [['--purple', "Use libpurple for all communication with instant messaging networks"]]
+ end
def install
# By default Homebrew will set ENV['LD'] to the same as ENV['CC'] which
@@ -16,21 +21,24 @@ class Bitlbee < Formula
# magician will know).
ENV['LD'] = '/usr/bin/ld'
- # Homebrew should handle the stripping.
- # Should we use --config=/usr/local/var/lib/bitlbee/ ?
- system "./configure", "--prefix=#{prefix}",
- "--debug=0", "--strip=0",
- "--ssl=gnutls",
- "--pidfile=#{var}/bitlbee/run/bitlbee.pid",
- "--config=#{var}/bitlbee/lib/",
- "--ipsocket=#{var}/bitlbee/run/bitlbee.sock"
+ args = ["--prefix=#{prefix}",
+ "--debug=0",
+ "--strip=0", # Let Homebrew handle the stripping
+ "--ssl=gnutls",
+ "--pidfile=#{var}/bitlbee/run/bitlbee.pid",
+ "--config=#{var}/bitlbee/lib/",
+ "--ipsocket=#{var}/bitlbee/run/bitlbee.sock"]
+
+ args << "--purple=1" if ARGV.include? "--purple"
+
+ system "./configure", *args
+
# This build depends on make running first.
system "make"
system "make install"
# This build has an extra step.
system "make install-etc"
- (var+"bitlbee").mkpath
(var+"bitlbee/run").mkpath
(var+"bitlbee/lib").mkpath
end