Created attachment 164172 [details] shar archive USES=go module that allows to easily create Go-based ports. Maybe few problems will need to still be brushed off.
Created attachment 164174 [details] patch
Created attachment 164226 [details] patch Update: problem of an unstable tarballs is fixed by replacing with GitHub mirror.
Created attachment 164246 [details] patch Update.
Created attachment 164250 [details] patch
Created attachment 164255 [details] patch TODO * Go package support. Should be able to build the Go library in the form of the regular port usable from another Go ports as BUILD_DEPENDS. This is because some packages are very large, and bundling them is wasteful.
In commit ports r413776 a conflicting Uses/go.mk file was committed.
Something was moved from lang/go/files/bsd.go.mk into Uses/go.mk.
This Bug is pending because its dependency is in conflict with 9.X (which is soon to retire). @mat, @bapt, What do you think the resolution is, should I rename it into USES=golang?
A USES=go was already created.
go.mk was copied over from under golang, it doesn't support depending projects. I will merge them once make from 9.X is retired.
it seems that support for FreeBSD 9.3 was dropped by 2017-01-01. Could it be possible to continue on this issue?
There already is a USES=go, the patch must be updated before this can continue.
Yes, I know, I will work on this.
I don't want to pressure anyone, but this ticket currently blocks 7 other ones including a pretty popular #205283 for adding a gogs/gitea port. :)
I do not quite understand why other ports absolutely need this feature, there are many go ports in the ports tree that work just fine. So, depending on a possible, future, feature is nice, but... Also, nobody seems to be interested in working on this particular feature. So, of course, it does not go forward.
Mk/Uses/go.mk is in port tree already.