Ports recommending other ports

Jeremy Lavergne jeremy at lavergne.gotdns.org
Mon Feb 9 13:09:17 PST 2009


>>> Hypothetical addition to port graphviz:
>>>
>>> if {${os.platform} == "darwin"} {
>>>     if {${os.major} >= 9} {
>>>         suggest_supplements-append port:graphviz-gui
>>>     } else {
>>>         suggest_supplements-append port:graphviz-oldgui
>>>     }
>>> }
>>>
>>> Hypothetical additions to port graphviz-oldgui:
>>>
>>> if {${os.major} >= 9} {
>>>     suggest_alternatives-append port:graphviz-gui
>>> }
>>>
>>> (I used "suggest" instead of "recommend" in the keyword names  
>>> because
>>> people have more trouble spelling "recommend".)
>>
>> If people have problems spelling "recommend", they will probably also
>> have problems with "supplements"?
>
> No kidding. Got any better ideas?

Seeing as people have to read the site on how to create portfiles  
anyways, why not create easily-typed abbreviations?  
suggest_alternatives -> alts, suggest_supplements -> sups
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2435 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090209/33b5e2d3/attachment-0001.bin>


More information about the macports-dev mailing list