MacPorts GUI - mportopen invocation for variants

bill georgitzikis billgeo13 at gmail.com
Mon Jul 19 06:51:55 PDT 2010


Hello everyone, i am Vasilis Georgitzikis, and I am working on the MacPorts
GUI and Framework for this year's GSoC, but i have stumbled upon something
that i can't seem to get past. I am trying to extend the macports framework
to support variants selection/installation, and i have this tcl command when
testing it with ncdu and the universal variant:

set portHandle [mportopen  file:///opt/local/var/macports/sources/
rsync.macports.org/release/ports/sysutils/ncdu    +universal]; mportexec
$portHandle install; mportclose $portHandle

Up untill now, nothing was passed as an option and variant, since the
framework didn't support either. I understand that in order to pass a
variant, i need to pass an option as well, but looking at the macports code,
i can't understand what option i need to pass when i simply want to pass a
variant. Also, should i pass the variant with the +/-, or does mpopen simply
expects the name? Please keep in mind that i am currently working on 1.8.2.

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20100719/0dcddd1b/attachment.html>


More information about the macports-dev mailing list