- Allow GO_TARGET to be specified as a tuple in the form package:output, which will instruct
Go to write resulting executable to ${GO_WRKDIR_BIN}/${output} instead of the default
behaviour of naming executable using the last component of the package name. This often removes the
need for custom do/post-install that rename executables.
Examples:
* audio/pms-devel
`GO_TARGET= :pms-devel`
instead of
```
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pms-${GH_TAGNAME} ${STAGEDIR}${PREFIX}/bin/${GO_PKGNAME}
```
* databases/mongodb40-tools
Targets can be just listed in VARS:
```
BSONDUMP_VARS= go_target+=./bsondump/main:bsondump
MONGOSTAT_VARS= go_target+=./mongostat/main:mongostat
MONGOFILES_VARS= go_target+=./mongofiles/main:mongofiles
```
instead of renaming directories in post-patch.
* Swtich to shell looping in do-build/install. Unfortunately .for over GO_TARGET doesn't
really work there because bsd.sites.mk is included too late for GH_ACCOUNT/GH_PROJECT
to work correctly in GO_PKGNAME/GO_TARGET (example: textproc/minify)
* Clarify that GO_PKGNAME is not needed in modules mode.
* Fix spelling.
Depends on: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240414