On Mar 19, 2012, at 13:19, Bradley Giesbrecht wrote:

> My question was for a better way :)
> 
> Is this better?
> if {$subport == $name} {
>    set subport "mysql55-connector-cpp"
> }

I don't think that does what you want. Doesn't that just make the (sub)port 
"mysql-connector-cpp" install the same files as the subport 
"mysql55-connector-cpp", thus making them conflict with one another?

For now, I think you have to do what we do elsewhere: make the stub port 
install a readme and depend on the preferred subport, i.e.:

https://trac.macports.org/browser/trunk/dports/devel/VillainousStyle/Portfile?rev=89170#L35


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

Reply via email to