Index: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
===================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
+++ head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
@@ -1141,25 +1141,37 @@
Ports should not be created for Go libs, see
- for more information.
+ for more information.
- Possible arguments: (none)
+ Possible arguments: (none),
+ modules
Sets default values and targets used to build
Go software. A build-time dependency
- on lang/go is added. The build
- process is controlled by several variables:
+ on lang/go is added. By default
+ the build is performed in GOPATH mode. If Go software uses
+ modules, the modules-aware mode can be switched on with
+ modules.
+ The build process is controlled by several variables:
+
GO_PKGNAME
The name of the Go package.
- This is the directory that will be created in
- GOPATH/src. The default value is
- ${PORTNAME}.
+ When building in GOPATH mode, this is the directory that
+ will be created in ${GOPATH}/src and
+ seen by the go. When building in
+ modules-aware mode, no GOPATH directories will be created
+ and GO_PKGNAME value will be only used
+ as a default for GO_TARGET. If not set
+ explicitly and GH_SUBDIR is present,
+ GO_PKGNAME value will be inferred from
+ ${GH_SUBDIR}, otherwise it will be set
+ to ${PORTNAME}.
@@ -1189,6 +1201,15 @@
Additional LDFLAGS values to be
passed to the C compiler by
go.
+
+
+
+
+ GO_BUILDFLAGS
+
+
+ Additional build arguments to be passed to
+ go install.