diff options
| author | Dustin Chilson | 2011-04-25 21:30:13 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-12-03 22:05:38 -0800 |
| commit | c586ae75a98862b6f1bd83682b0f3700f3103fab (patch) | |
| tree | 0ae7df96ab14f33140e24cd22da0dbc0a8c3f72b /Library/Formula | |
| parent | c246ee22c19e5c97d3c6b311877dc0aca342bae1 (diff) | |
| download | homebrew-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.rb | 26 |
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 |
