openbsd-ports/devel/go-tools/Makefile
op 0be89c3027 update devel/go-tools to 0.5.0
need to set EPOCH due to the version change.

Switches the port to MODGO_MODNAME to fetch the modules needed, dropping
the BDEP on net/go-net.  godoc doesn't need hacks now to be built, but
gopls is not included anymore: it's provided by new devel/gopls port.

While here sync DESCR with reality and fold long lines, update HOMEPAGE
and drop redundant MODGO_TYPE=bin.

tested by Laurent Cheylus (thanks!)
ok sthen@
2023-01-25 19:37:03 +00:00

54 lines
939 B
Makefile

COMMENT = various tools for the Go programming language
MODGO_MODNAME = golang.org/x/tools
MODGO_VERSION = v0.5.0
DISTNAME = go-tools-${MODGO_VERSION}
EPOCH = 0
CATEGORIES = devel
HOMEPAGE = https://pkg.go.dev/golang.org/x/tools
# 3-clause BSD
PERMIT_PACKAGE = Yes
WANTLIB += c pthread
MODULES = lang/go
RUN_DEPENDS = ${MODGO_RUN_DEPENDS}
_SUBPKGS = benchcmp \
bundle \
callgraph \
compilebench \
digraph \
eg \
fiximports \
go-contrib-init \
godex \
godoc \
goimports \
gomvpkg \
gorename \
gotype \
goyacc \
guru \
html2article \
present \
ssadump \
stress \
stringer \
toolstash
ALL_TARGET = ${_SUBPKGS:%=golang.org/x/tools/cmd/%}
WRKDIST = ${WRKSRC}
# default do-build set by go.port.mk would build everything under
# cmd/... regardless of ALL_TARGET.
do-build:
cd ${WRKSRC} && ${MODGO_BUILD_TARGET}
.include "modules.inc"
.include <bsd.port.mk>