From 27f98e952675c8b8a335e9c96b80bfae14fefa9f Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Sat, 29 Jun 2019 03:56:09 +0000 Subject: [PATCH] Porter's Handbook: Document no_targets/run and GO_PORT after ports r505321 Submitted by: dg@syrec.org Reviewed by: mat, tobik Approved by: mat Differential Revision: https://reviews.freebsd.org/D20736 --- .../books/porters-handbook/uses/chapter.xml | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml index 2a64ef166e..05bb5169cb 100644 --- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1144,15 +1144,22 @@ USE_GNOME= gnomemenus3:build intlhack for more information. - Possible arguments: (none), - modules + Possible arguments: (none), modules, + no_targets, 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 compiler 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. + no_targets will setup build environment like + GO_ENV, GO_BUILDFLAGS but + skip creating post-extract, + do-build and + do-install targets. + run will also add a run dependency on + what is in GO_PORT. The build process is controlled by several variables: @@ -1212,6 +1219,23 @@ USE_GNOME= gnomemenus3:build intlhack go install. + + + GO_PORT + + + The Go compiler 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! + + +