Skip to content
Permalink
Browse files

Clarify the purpose of dist_subdir

And give better examples.

Closes: https://trac.macports.org/ticket/56171
  • Loading branch information
ryandesign committed Mar 28, 2018
1 parent c1f1bae commit 4af3135607613001936e7729bdae6c573472ba72
Showing with 12 additions and 4 deletions.
  1. +12 −4 guide/xml/portfile-phase.xml
@@ -474,18 +474,26 @@ distfiles file_one.tar.gz:tagone \
<term>dist_subdir</term>

<listitem>
<para>Create a sub-directory in distpath to store all fetched
files.</para>
<para>
The last path component of <varname>${distpath}</varname>. Override
it to store multiple ports' distfiles in the same directory (such as
multiple ports providing different versions of the same software),
or if a <link
xlink:href="https://trac.macports.org/wiki/PortfileRecipes#stealth-updates">stealth
update</link> has occurred.
</para>

<itemizedlist>
<listitem>
<para>Default: <varname>${name}</varname></para>
</listitem>

<listitem>
<para>Example:</para>
<para>Examples:</para>

<programlisting>dist_subdir gcc</programlisting>

<programlisting>dist_subdir vim${version}</programlisting>
<programlisting>dist_subdir ${name}/${version}_1</programlisting>
</listitem>
</itemizedlist>
</listitem>

0 comments on commit 4af3135

Please sign in to comment.
You can’t perform that action at this time.