From a1fcbdcefbef43496f551d1670802a8c83e6834d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 22 Jun 2010 16:04:27 -0700 Subject: [PATCH] Add fink/macports support to 'brew search'. --- bin/brew | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/brew b/bin/brew index b65b38e474..1bf5e3c18c 100755 --- a/bin/brew +++ b/bin/brew @@ -129,6 +129,12 @@ begin end when 'search', '-S' + if ARGV.include? '--macports' + exec "open", "http://www.macports.org/ports.php?by=name&substr=#{ARGV.next}" + elsif ARGV.include? '--fink' + exec "open", "http://pdb.finkproject.org/pdb/browse.php?summary=#{ARGV.next}" + end + check_for_blacklisted_formula(ARGV.named) puts_columns search_brews(ARGV.first)