On Mar 19, 2012, at 10:36 AM, Joshua Root wrote:

> On 2012-3-20 04:32 , Bradley Giesbrecht wrote:
>> Does anyone have an example of a better way to handle the primary port not 
>> installing files?
>> 
>> Portfile:
>> ...
>> name mysql-connector-cpp
>> if {$subport == $name} {
>>   pre-fetch {
>>       ui_msg "Stub port: Choose one of \
>>           mysql5-connector-cpp, \
>>           mysql55-connector-cpp, \
>>           mariadb-connector-cpp, \
>>           percona-connector-cpp.
>>           "
>>       return
>>   }
>> }
>> ...
> 
> "Don't do that?" There's no point creating a port that can't be installed.

My question was for a better way :)

Is this better?
if {$subport == $name} {
    set subport "mysql55-connector-cpp"
}


Regards,
Bradley Giesbrecht (pixilla)

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to