handle only subports install files

Bradley Giesbrecht pixilla at macports.org
Mon Mar 19 10:32:23 PDT 2012


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
   }
}
...


Regards,
Bradley Giesbrecht (pixilla)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120319/7cd571be/attachment-0001.bin>


More information about the macports-dev mailing list