SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
53
devel/go-tools/Makefile
Normal file
53
devel/go-tools/Makefile
Normal file
|
@ -0,0 +1,53 @@
|
|||
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>
|
32
devel/go-tools/distinfo
Normal file
32
devel/go-tools/distinfo
Normal file
|
@ -0,0 +1,32 @@
|
|||
SHA256 (go-tools-v0.5.0.zip) = +Iunkk24qtwqk8kWE2tS9/zUZx5234cWqgLeWGqdGHE=
|
||||
SHA256 (go_modules/github.com/yuin/goldmark/@v/v1.4.13.mod) = 7n/kRmIDoB06wZrcE0zeyZvG3nGZLCjz3Zp0SAv/BgM=
|
||||
SHA256 (go_modules/github.com/yuin/goldmark/@v/v1.4.13.zip) = u0GmArF0NF/aOSyK2D/MkyF8KFx2NplndjC+kP63peM=
|
||||
SHA256 (go_modules/golang.org/x/mod/@v/v0.7.0.mod) = YkVnRZxumUesSr3gtwNO5h3Ltqk3P1lwCUwLs+gSGWQ=
|
||||
SHA256 (go_modules/golang.org/x/mod/@v/v0.7.0.zip) = JKvR2xMymHPXIDTcJ++tCcvDfTnPKLj/e7PCrcju3vc=
|
||||
SHA256 (go_modules/golang.org/x/net/@v/v0.5.0.mod) = XDe+Zi2TeArML0PMnG6heErvFMEaDyJ971zm23u4pwQ=
|
||||
SHA256 (go_modules/golang.org/x/net/@v/v0.5.0.zip) = DmBoge6y9XKz1hrSpjnnnK0AIGQJDHXIOKovT+ymHI4=
|
||||
SHA256 (go_modules/golang.org/x/sync/@v/v0.1.0.mod) = Qh9hOWhtWJHz3FpWPQmVeA0yefZcrU0iXOpSaGeUFhw=
|
||||
SHA256 (go_modules/golang.org/x/sync/@v/v0.1.0.zip) = 9RC+xgCeGYgtGZU+cnMTfTTfhsZZSTRdcvEjolXC7NI=
|
||||
SHA256 (go_modules/golang.org/x/sys/@v/v0.4.0.mod) = 8DMzMJb+GY8xUd7tk/LeunTlC7/nc5E0BFvDt85KUCQ=
|
||||
SHA256 (go_modules/golang.org/x/sys/@v/v0.4.0.zip) = 76k1T8qnCYJbuxyGuD4jR867U0n0MmzEyMy5cq0yAyw=
|
||||
SHA256 (go_modules/golang.org/x/term/@v/v0.4.0.mod) = zeXNBcC9PaC/rF4royqoXCVwjmVJPn4bfXPDCXcKd7o=
|
||||
SHA256 (go_modules/golang.org/x/term/@v/v0.4.0.zip) = R3Dzfqp9VJkacfRu7I4pZBCRg7Ai649k1vqOaJNOL3w=
|
||||
SHA256 (go_modules/golang.org/x/text/@v/v0.6.0.mod) = FZKedvzgSupMkqNUQmu0M3BoRkWk7gPy510MLrFGYwQ=
|
||||
SHA256 (go_modules/golang.org/x/text/@v/v0.6.0.zip) = nsc+hEJDazM+fQkg3ARujXHacd5YZvJtRHYgeUam34M=
|
||||
SHA256 (go_modules/golang.org/x/tools/@v/v0.1.12.mod) = KouTZYmPCCL6zmW6CJoTU+aKZdNC8wDKMXzOzN5kIfM=
|
||||
SIZE (go-tools-v0.5.0.zip) = 2984292
|
||||
SIZE (go_modules/github.com/yuin/goldmark/@v/v1.4.13.mod) = 41
|
||||
SIZE (go_modules/github.com/yuin/goldmark/@v/v1.4.13.zip) = 229017
|
||||
SIZE (go_modules/golang.org/x/mod/@v/v0.7.0.mod) = 84
|
||||
SIZE (go_modules/golang.org/x/mod/@v/v0.7.0.zip) = 161744
|
||||
SIZE (go_modules/golang.org/x/net/@v/v0.5.0.mod) = 123
|
||||
SIZE (go_modules/golang.org/x/net/@v/v0.5.0.zip) = 1555050
|
||||
SIZE (go_modules/golang.org/x/sync/@v/v0.1.0.mod) = 25
|
||||
SIZE (go_modules/golang.org/x/sync/@v/v0.1.0.zip) = 27781
|
||||
SIZE (go_modules/golang.org/x/sys/@v/v0.4.0.mod) = 33
|
||||
SIZE (go_modules/golang.org/x/sys/@v/v0.4.0.zip) = 1881264
|
||||
SIZE (go_modules/golang.org/x/term/@v/v0.4.0.mod) = 67
|
||||
SIZE (go_modules/golang.org/x/term/@v/v0.4.0.zip) = 19924
|
||||
SIZE (go_modules/golang.org/x/text/@v/v0.6.0.mod) = 258
|
||||
SIZE (go_modules/golang.org/x/text/@v/v0.6.0.zip) = 8614583
|
||||
SIZE (go_modules/golang.org/x/tools/@v/v0.1.12.mod) = 327
|
12
devel/go-tools/modules.inc
Normal file
12
devel/go-tools/modules.inc
Normal file
|
@ -0,0 +1,12 @@
|
|||
MODGO_MODULES = \
|
||||
github.com/yuin/goldmark v1.4.13 \
|
||||
golang.org/x/mod v0.7.0 \
|
||||
golang.org/x/net v0.5.0 \
|
||||
golang.org/x/sync v0.1.0 \
|
||||
golang.org/x/sys v0.4.0 \
|
||||
golang.org/x/term v0.4.0 \
|
||||
golang.org/x/text v0.6.0
|
||||
|
||||
MODGO_MODFILES = \
|
||||
golang.org/x/tools v0.1.12
|
||||
|
31
devel/go-tools/pkg/DESCR
Normal file
31
devel/go-tools/pkg/DESCR
Normal file
|
@ -0,0 +1,31 @@
|
|||
This package holds the source for various packages and tools that
|
||||
support the Go programming language:
|
||||
|
||||
* benchcmp displays performance changes between benchmarks
|
||||
* bundle creates a single-source-file version of a source package
|
||||
suitable for inclusion in a particular target package
|
||||
* callgraph a tool for reporting the call graph of a Go program
|
||||
* compilebench benchmarks the speed of the Go compiler
|
||||
* digraph performs queries over unlabelled directed graphs represented
|
||||
in text form
|
||||
* eg performs example-based refactoring
|
||||
* fiximports fixes import declarations to use the canonical import path
|
||||
for packages that have an "import comment"
|
||||
* go-contrib-init helps new Go contributors to get their development
|
||||
environment set up for the Go contribution process.
|
||||
* godex dumps exported information of packages or selected objects
|
||||
* godoc extracts and generates documentation for Go programs
|
||||
* goimports updates Go import lines
|
||||
* gomvpkg moves go packages, updating import declarations
|
||||
* gorename performs precise type-safe renaming of identifiers in Go code
|
||||
* gotype syntactic and semantic analysis of Go files and packages
|
||||
* goyacc Go version of yacc
|
||||
* guru tool for answering questions about Go source code
|
||||
* html2article takes an HTML file and outputs a corresponding article file
|
||||
in present format
|
||||
* present displayslide presentations and articles
|
||||
* ssadump display and interpret the SSA form of Go programs
|
||||
* stress utility intended for catching of episodic failures
|
||||
* stringer creation of methods that satisfy the fmt.Stringer interface
|
||||
* toolstash save, run and restore a known good copy of the Go toolchain
|
||||
and compare the object files generated by two toolchains
|
27
devel/go-tools/pkg/PLIST
Normal file
27
devel/go-tools/pkg/PLIST
Normal file
|
@ -0,0 +1,27 @@
|
|||
@conflict ruby-shims-*
|
||||
@conflict stress-*
|
||||
@pkgpath textproc/godoc
|
||||
@rcscript ${RCDIR}/godoc
|
||||
@bin bin/benchcmp
|
||||
@bin bin/bundle
|
||||
@bin bin/callgraph
|
||||
@bin bin/compilebench
|
||||
@bin bin/digraph
|
||||
@bin bin/eg
|
||||
@bin bin/fiximports
|
||||
@bin bin/go-contrib-init
|
||||
@bin bin/godex
|
||||
@bin bin/godoc
|
||||
@bin bin/goimports
|
||||
@bin bin/gomvpkg
|
||||
@bin bin/gorename
|
||||
@bin bin/gotype
|
||||
@bin bin/goyacc
|
||||
@bin bin/guru
|
||||
@bin bin/html2article
|
||||
@bin bin/present
|
||||
@bin bin/ssadump
|
||||
@bin bin/stress
|
||||
@bin bin/stringer
|
||||
@bin bin/toolstash
|
||||
share/doc/pkg-readmes/${PKGSTEM}
|
17
devel/go-tools/pkg/README
Normal file
17
devel/go-tools/pkg/README
Normal file
|
@ -0,0 +1,17 @@
|
|||
+-----------------------------------------------------------------------
|
||||
| Running ${PKGSTEM} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
When started via the rc script, by default godoc will only show
|
||||
documentation for the go distribution itself. If serving documentation
|
||||
for packages in other workspaces is desired, the GOPATH environment
|
||||
variable should be set. This can be achieved without affecting other
|
||||
daemons by creating a separate login class for the godoc rc script.
|
||||
|
||||
Example login.conf(5) fragment:
|
||||
|
||||
godoc:\
|
||||
:setenv=GOPATH=${TRUEPREFIX}/go-pkg:\
|
||||
:tc=daemon:
|
||||
|
||||
(Refer to getcap(3), login.conf(5) and rc.d(8) for details.)
|
12
devel/go-tools/pkg/godoc.rc
Normal file
12
devel/go-tools/pkg/godoc.rc
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/ksh
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/godoc"
|
||||
daemon_flags="-http=localhost:6060 -v=true"
|
||||
daemon_user=www
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
Add table
Add a link
Reference in a new issue