Index: en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1144,15 +1144,21 @@ for more information. - Possible arguments: (none), - modules + Possible arguments: (none), build, + modules, run Sets default values and targets used to build - Go software. A build-time dependency - 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. + Go software. A build dependency + on the Go port selected via GO_PORT 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 argument. + build will setup build environment like + GO_ENV, GO_BUILDFLAGS but + skip creating post-extract, + do-build and do-install + targets. run will also add run dependency on + whatever is in GO_PORT. The build process is controlled by several variables: @@ -1210,6 +1216,20 @@ Additional build arguments to be passed to go install. + + + + + GO_PORT + + + The Go port to use. By default this is + lang/go but can be set + to lang/go-devel in + make.conf for testing with future Go + versions. + This variable must not be set by individual + ports!