On Jun 10, 2008, at 23:28, Tabitha McNerney wrote: > I have been working on a script (written in Ruby) that takes the > output of the port command-line program (as suggested by Rainer > recently), and parses the output looking for either port > dependencies or file dependencies (note: up until yesterday, file > dependences were referred to ambiguously as "non-ports"). I notice > that in almost all cases (among a collection of 450 MacPorts I use > which of course is just a fragment of what's available), that the > port dependencies are separated with commas, like this: > > $ port info --depends_lib gnome-vfs > depends_lib: port:gconf, port:dbus, port:openssl, port:libidl, > port:dbus-glib, port:libxml2, port:libiconv, port:gettext > > But in what appears to be a minority of cases, the comma has been > forgone like this: > > $ port info --depends_run gnome-vfs > depends_run: port:desktop-file-utils port:gnome-mime-data > port:shared-mime-info > > It was not difficult to adjust my Ruby parser to handle spaces > instead of commas, but I'm wondering if it matters in terms of the > strictness / policy as to how Portfiles should be authored and > maintained?
The commas do not appear in the portfiles. It must be something added by the "port info" command. I seem to get commas always: $ port info --depends_lib gnome-vfs depends_lib: port:gconf, port:dbus, port:openssl, port:libidl, port:dbus-glib, port:libxml2, port:libiconv, port:gettext $ port info --depends_run gnome-vfs depends_run: port:desktop-file-utils, port:gnome-mime-data, port:shared-mime-info $ Are you sure you're using the latest MacPorts? _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users