aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-06-22 16:04:27 -0700
committerAdam Vandenberg2010-06-22 16:04:27 -0700
commita1fcbdcefbef43496f551d1670802a8c83e6834d (patch)
treedeb6410415a5ee1d8e6228947aa0cbd905410bbe
parentd9258073f0eabe77092fb70bad5232ba7da6983a (diff)
downloadbrew-a1fcbdcefbef43496f551d1670802a8c83e6834d.tar.bz2
Add fink/macports support to 'brew search'.
-rwxr-xr-xbin/brew6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index b65b38e47..1bf5e3c18 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)