On 2014-8-13 19:54 , Joshua Root wrote: > On 2014-8-13 18:38 , Mojca Miklavec wrote: >> Hi, >> >> I would like to get a topologically sorted list of perl modules. >> >> (Ideally sorted by the number of dependencies first, then >> alphabetically, but always making sure that all dependencies are >> listed before any other module depending on them. Alternatively sort >> by the number of ports depending on a particular module.) > > This does a lot of what you want: > > <https://trac.macports.org/browser/contrib/mpab/chroot-scripts/genportlist.tcl>
In fact, here, have a version modified to take a list of ports as input and sort just them. % ./depsort.tcl "ffmpeg zlib poppler libpng freetype bzip2" bzip2 zlib libpng freetype ffmpeg poppler - Josh
depsort.tcl
Description: Tcl script
_______________________________________________ macports-dev mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-dev
