How do you get the ports directory for a port via a script?

Brandon Allbery allbery.b at
Sun Dec 2 09:17:55 PST 2012

On Sun, Dec 2, 2012 at 12:14 PM, Jim Graham <spooky130u at> wrote:

> with another port.  The one thing I'm missing is how (via a script)
> to get the directory (e.g., textproc for ispell) that the port is
> in.  Is there a way (that I missed while doing my RTFM), via the
> 'port' command or some other ports-related command, to get the
> directory name (from either root or some fixed path)?

port dir <portname> ?

host140:10142 Z# port dir ispell

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list