Small fixes.
Submitted by: adamw Sponsored by: Absolight
This commit is contained in:
parent
35b3600a66
commit
3db70013d9
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51246
2 changed files with 9 additions and 12 deletions
en_US.ISO8859-1/books/porters-handbook
|
@ -30,8 +30,9 @@
|
|||
flavor.</para>
|
||||
|
||||
<important>
|
||||
<para>Flavor names can <emphasis>only</emphasis> contain
|
||||
lowercase letters, numbers, and the underscore
|
||||
<para>To distinguish flavors from options, which are always
|
||||
uppercase letters, flavor names can <emphasis>only</emphasis>
|
||||
contain lowercase letters, numbers, and the underscore
|
||||
<literal>_</literal>.</para>
|
||||
</important>
|
||||
|
||||
|
@ -95,13 +96,9 @@ py36_PLIST= ${.CURDIR}/pkg-plist-py3 <co xml:id="flavors-using-ex2-plist36"/></p
|
|||
|
||||
<callout arearefs="flavors-using-ex2-if">
|
||||
<para>To guard against <varname>FLAVOR</varname> being
|
||||
empty, use the FLAVOR:U &man.make.1; construct, but as
|
||||
this is testing for the default flavor, we have to test
|
||||
that <varname>FLAVOR</varname> is undefined, or that
|
||||
<varname>FLAVOR</varname> matches <literal>py2*</literal>,
|
||||
this can be done by using the argument to
|
||||
<literal>:U</literal> that will be returned if the
|
||||
variable is undefined.</para>
|
||||
empty, which would cause a &man.make.1; error, use
|
||||
<literal>${FLAVOR:U}</literal> in string comparisons
|
||||
instead of <literal>${FLAVOR}</literal>.</para>
|
||||
</callout>
|
||||
|
||||
<callout arearefs="flavors-using-ex2-pygobject3
|
||||
|
@ -144,8 +141,8 @@ py36_PLIST= ${.CURDIR}/pkg-plist-py3 <co xml:id="flavors-using-ex2-plist36"/></p
|
|||
<sect2 xml:id="flavors-using-helpers">
|
||||
<title>Flavors Helpers</title>
|
||||
|
||||
<para>To make <filename>Makefile</filename> easier to write, a
|
||||
few flavors helpers exist.</para>
|
||||
<para>To make the <filename>Makefile</filename> easier to write,
|
||||
a few flavors helpers exist.</para>
|
||||
|
||||
<para>This list of helpers will set their variable:</para>
|
||||
|
||||
|
|
|
@ -3663,7 +3663,7 @@ SOCKETS_USE= PHP=sockets
|
|||
<row>
|
||||
<entry><literal>USE_PYTHON=optsuffix</literal></entry>
|
||||
<entry>If the current Python version is not the default
|
||||
one, the port will have gain
|
||||
version, the port will gain
|
||||
<literal>PKGNAMESUFFIX=${PYTHON_PKGNAMESUFFIX}</literal>.
|
||||
Only useful with flavors.</entry>
|
||||
</row>
|
||||
|
|
Loading…
Reference in a new issue