[24619] branches/dp2mp-move/base/src/port/port.tcl

Landon Fuller landonf at macports.org
Sun Apr 29 13:19:27 PDT 2007


On Apr 28, 2007, at 8:05 PM, Ryan Schmidt wrote:

>
> On Apr 28, 2007, at 21:06, source_changes at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20070429/1c0e7745/PGP.bin


More information about the macports-dev mailing list