Macports needs a little marketing

Guido Soranzio guido.soranzio at gmail.com
Mon Nov 7 12:44:05 CET 2016


Some hours ago I wrote:

> JPortsUI parses directly the output of the ‘port’ command 
> (“screen scraping”) and could stop working if a new release of 
> the command would change the output format


JPortsUI also scans directly /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/PortIndex


For my personal project I am using the same technique. For those interested, here
is the simple but effective code I use to parse TCL lists implemented in Objective-C,
MacRuby/RubyMotion and Swift:


<https://github.com/gui-dos/Guigna/blob/c47e2a8e66c1070ce81f2137f4e32a9bffab75be/Legacy/Guigna/Guigna/GMacPorts.m#L51-L108>

<https://github.com/gui-dos/Guigna/blob/c47e2a8e66c1070ce81f2137f4e32a9bffab75be/Legacy/Guigna-RubyMotion/app/lib/systems/macports.rb#L39-L89>

<https://github.com/gui-dos/Guigna/blob/c47e2a8e66c1070ce81f2137f4e32a9bffab75be/Legacy/Guigna-Swift/Guigna/Systems/MacPorts.swift#L38-L97>


Guido




More information about the macports-users mailing list