Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/porters-handbook/flavors/chapter.xml
Show First 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | USE_PYTHON= distutils allflavors</programlisting> | ||||
<varname>PY_FLAVOR</varname> to | <varname>PY_FLAVOR</varname> to | ||||
<literal>py36</literal>:</para> | <literal>py36</literal>:</para> | ||||
<programlisting>RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} | <programlisting>RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} | ||||
USES= python:3.5+</programlisting> | USES= python:3.5+</programlisting> | ||||
</example> | </example> | ||||
</sect1> | </sect1> | ||||
<sect1 xml:id="flavors-auto-lua"> | |||||
<title><literal>USES=lua</literal> and Flavors</title> | |||||
<para>When using <link | |||||
linkend="uses-lua"><literal>USES=lua:module</literal></link> | |||||
or <link | |||||
linkend="uses-lua"><literal>USES=lua:flavors</literal></link>, | |||||
the port will automatically have <varname>FLAVORS</varname> | |||||
filled in with the <application>Lua</application> versions it | |||||
supports. However, it is not expected that ordinary | |||||
applications (rather than <application>Lua</application> | |||||
modules) should use this feature; most applications that embed | |||||
or otherwise use <application>Lua</application> should simply | |||||
use <literal>USES=lua</literal>.</para> | |||||
<para><varname>LUA_FLAVOR</varname> is available (and must be | |||||
used) to depend on the correct version of dependencies | |||||
regardless of whether the port used the | |||||
<literal>flavors</literal> or <literal>module</literal> | |||||
parameters.</para> | |||||
<para>See <xref linkend="using-lua" /> for further | |||||
information.</para> | |||||
</sect1> | |||||
</chapter> | </chapter> |