Changeset 153134 for trunk/doc-new


Ignore:
Timestamp:
Sep 25, 2016, 12:51:16 PM (2 years ago)
Author:
jmr@…
Message:

guide: clarify the Invoking Variants section

In particular, fix an especially misleading statement about the effect of a minus sign.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/guide/xml/using.xml

    r151723 r153134  
    10311031
    10321032            <para>A variant can only be selected when a port is installed. After you have determined what variants
    1033                 a given port has, if any, you may install a port using the variant by specifying its name preceded by
    1034                 a plus or minus sign on the command line, for example</para>
     1033                a given port has, if any, you may install a port using a variant by specifying its name preceded by
     1034                a plus sign on the command line, for example</para>
    10351035
    10361036            <programlisting><prompt>$ </prompt><userinput>sudo port install apache2 +openldap</userinput></programlisting>
     1037
     1038            <para>Multiple variants can be selected by simply listing them one after another separated by a space.</para>
     1039
     1040            <programlisting><prompt>$ </prompt><userinput>sudo port install apache2 +openldap +universal</userinput></programlisting>
     1041
     1042            <para>Use a minus sign to deselect a variant that is on by default.</para>
     1043
    10371044            <programlisting><prompt>$ </prompt><userinput>sudo port install apache2 -preforkmpm +workermpm</userinput></programlisting>
    10381045
     
    10471054            <programlisting><prompt>$ </prompt><userinput>sudo port install apache2 +mariadb</userinput></programlisting>
    10481055
    1049             <para>even though <option>apache2</option> does not have a <option>+mariadb</option> variant. Instead, this
    1050                 will cause the <option>apr-util</option> port to be installed with the <option>+mariadb</option>
    1051                 variant.</para>
     1056            <para>is accepted even though <option>apache2</option> does not have a <option>+mariadb</option> variant. However,
     1057                it depends on the <option>apr-util</option> port which does have the <option>+mariadb</option>
     1058                variant and will be installed with it.</para>
    10521059
    10531060            <para>MacPorts will remember the variants that were used when installing a port. If you upgrade a port
Note: See TracChangeset for help on using the changeset viewer.