On Fri, Apr 12, 2013 at 06:43:18PM +0100, Stuart Henderson wrote: > On 2013/04/12 18:45, Giovanni Bechis wrote: > > On 04/12/13 16:28, Giovanni Bechis wrote: > > > Little fix to be able to use portimport(1) even with a non standard > > > $PORTSDIR, I do not like this patch that much, > > > maybe there could be a better way to achieve the same result. > > > > > this is a better version, ok ? > > I think we'd want to remove ports/ from the start of importname (and adapt > other things to match), then we could handle directories that don't end in > /ports > > > +: ${PORTSDIR:=/usr/ports} > > > > importname="ports/${fulldir##*/ports/*(mystuff/|openbsd-wip/|p5-ports-wip/)}"
I'd mostly go with Vadim's idea of make show=PKGPATH and I'd run with it.