Add fink/macports support to 'brew search'.

This commit is contained in:
Adam Vandenberg 2010-06-22 16:04:27 -07:00
parent d9258073f0
commit a1fcbdcefb

View File

@ -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)