Changeset View
Changeset View
Standalone View
Standalone View
en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
Show First 20 Lines • Show All 1,162 Lines • ▼ Show 20 Lines | <xref linkend="go-libs"/> for more information.</para> | ||||
<para>The build process is controlled by several variables:</para> | <para>The build process is controlled by several variables:</para> | ||||
<variablelist> | <variablelist> | ||||
<varlistentry> | <varlistentry> | ||||
<term><varname>GO_PKGNAME</varname></term> | <term><varname>GO_PKGNAME</varname></term> | ||||
<listitem> | <listitem> | ||||
<para>The name of the <application>Go</application> package. | <para>The name of the <application>Go</application> package | ||||
When building in GOPATH mode, this is the directory that | when building in GOPATH mode. This is the directory that | ||||
will be created in <literal>${GOPATH}/src</literal> and | will be created in <literal>${GOPATH}/src</literal> and | ||||
seen by the <command>go</command>. When building in | seen by the <command>go</command>. If not set | ||||
tobik: > and seen by the <command>go</command>.
When reading this back out loud this sounds really… | |||||
modules-aware mode, no GOPATH directories will be created | explicitly and <varname>GH_SUBDIR</varname> or | ||||
and <varname>GO_PKGNAME</varname> value will be only used | <varname>GL_SUBDIR</varname> is present, | ||||
as a default for <varname>GO_TARGET</varname>. If not set | <varname>GO_PKGNAME</varname> will be inferred from it. | ||||
explicitly and <varname>GH_SUBDIR</varname> is present, | Not needed when building in modules-aware mode.</para> | ||||
tobikUnsubmitted Done Inline Actionss/Not needed/It is not needed/ tobik: s/Not needed/It is not needed/ | |||||
<varname>GO_PKGNAME</varname> value will be inferred from | |||||
<varname>${GH_SUBDIR}</varname>, otherwise it will be set | |||||
to <varname>${PORTNAME}</varname>.</para> | |||||
</listitem> | </listitem> | ||||
</varlistentry> | </varlistentry> | ||||
<varlistentry> | <varlistentry> | ||||
<term><varname>GO_TARGET</varname></term> | <term><varname>GO_TARGET</varname></term> | ||||
<listitem> | <listitem> | ||||
<para>The name of the packages to build. The default | <para>The name(s) of package(s) to build. The default | ||||
tobikUnsubmitted Done Inline Actions"The packages to build." tobik: "The packages to build." | |||||
value is <varname>${GO_PKGNAME}</varname>.</para> | value is <varname>${GO_PKGNAME}</varname>. | ||||
<varname>GO_TARGET</varname> can also be a tuple in the | |||||
form <literal>package:path</literal> where path can be | |||||
either a simple filename or a full path starting with | |||||
<literal>${PREFIX}</literal>. Specifying a full path like | |||||
<literal>${PREFIX}/sbin/binary</literal> will install the | |||||
resulting binary as | |||||
<literal>${PREFIX}/sbin/binary</literal>. Using just a | |||||
simple filename is a shortcut to installing as | |||||
<literal>${PREFIX}/bin/filename</literal>.</para> | |||||
tobikUnsubmitted Not Done Inline ActionsI think everything after "Specifying" would be better moved to one or more small concrete examples in 6.5.8. Building Go Applications. tobik: I think everything after "Specifying" would be better moved to one or more small concrete… | |||||
dmgkAuthorUnsubmitted Done Inline ActionsIf you could provide any help with examples, I'd appreciate it, documentation is not my strong suit :) dmgk: If you could provide any help with examples, I'd appreciate it, documentation is not my strong… | |||||
tobikUnsubmitted Done Inline ActionsThis can be something really simple like https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/building.html#cargo-ex2 tobik: This can be something really simple like https://www.freebsd.org/doc/en_US.ISO8859… | |||||
</listitem> | </listitem> | ||||
</varlistentry> | </varlistentry> | ||||
<varlistentry> | <varlistentry> | ||||
<term><varname>CGO_CFLAGS</varname></term> | <term><varname>CGO_CFLAGS</varname></term> | ||||
<listitem> | <listitem> | ||||
<para>Additional <varname>CFLAGS</varname> values to be | <para>Additional <varname>CFLAGS</varname> values to be | ||||
▲ Show 20 Lines • Show All 2,600 Lines • Show Last 20 Lines |
When reading this back out loud this sounds really weird to me and I do not think it adds much information. Can we drop it?