A few new features for `port`

Galen Wright-Watson ww.galen at gmail.com
Sun Nov 7 22:07:06 PST 2010


I've a few customizations for the `port` command, and I'm getting tired of
patching with each new release, so I'm offering them up for inclusion into
the base, should others be interested. The attached "port.patch" contains a
patch with the changes. If others are interested, what's the next step?

New feature:
  The full action doesn't need to be specified on the command line. Instead,
enough of the prefix to uniquely specify the action is all that is required
(e.g. "port depe ..." instead of "port dependents ...", or "port va ..."
instead of "port variants ..."). If the action isn't unique, port lists all
the actions it could be and doesn't process the action.

New commands:
  active: list active ports (faster than "list active")
  inactive: list inactive ports (faster than "list inactive")
  actinact: list installed ports that have active and inactive versions
  alldeps: list all dependencies for a port
  nodependents/nodepts: list installed ports with no dependents
  nodeps: list ports with no dependencies (faster than "list installed and !
depends:")
  space/size [-KMB]: show disk space used by an active port, in KiB (-K),
MiB (-M), or auto-scaled units (-B).

Command synonyms:
  depts: synonym for dependents
  files: synonym for contents
  update: synonym for upgrade

New command options:
  contents -s: print size of files in a port along with the file names
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20101107/67cb47a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: port.patch
Type: application/octet-stream
Size: 18723 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20101107/67cb47a0/attachment-0001.obj>


More information about the macports-dev mailing list