On Apr 28, 2007, at 8:05 PM, Ryan Schmidt wrote:
On Apr 28, 2007, at 21:06, source_changes@macosforge.org wrote:
+ gohome { + set homepage $portinfo(homepage) + if { $homepage != "" } { + # TODO we should autoconfigure this, and perhaps leave an option for + # a different command to visit the homepage + system "/usr/bin/open $homepage" + } else { + puts "(no homepage)" + } + }
Nah, I would say we don't need any options here. /usr/bin/open will open the homepage with the default web browser. That's perfectly reasonable for this use.
Except that this sort of thing shouldn't be hard-coded in the source -- I'd suggest autoconf'ing it for that reason alone. Of course, there's always port cat dict | grep ^homepage | awk '{print $2}' | xargs open Encoded in a handy zsh function as: porthomepage () { port cat $==* | grep ^homepage | awk '{print $2}' | xargs open } -landonf