The basic issue is that pkgsrc has norms that let it construct the working directory from the DISTFILE name. The normal convention is that a package foo has a distribution file named for example: foo-1.2.tar.gz and when one unpacks that obtains: foo-1.2/NEWS foo-1.2/configure and so on. The modern style of not having distfiles leads to a bit of a mess in several ways: version numbers that are git hashes don't sort. The usual approach is to use the ISO8601 date of the revision as the version number, optionally with the hash. One has to adapt WRKSRC for the directory that is produced by unpacking. I would recommend setting variables for date and hash DATEVER=20141210 HASHVER=abcd and then construct DISTNAME, PKGNAME and WRKSRC from those. PKG_DEBUG_LEVEL=1 may be useful. I suggest grepping through wip for packages that use the git support.
Attachment:
pgpW7jEy4OkuM.pgp
Description: PGP signature