handle only subports install files
Ryan Schmidt
ryandesign at macports.org
Mon Mar 19 11:30:10 PDT 2012
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
More information about the macports-dev
mailing list