New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80729


Ignore:
Timestamp:
07/16/11 08:05:35 (4 years ago)
Author:
mk@…
Message:

Guide: be more specific about bin/lib/path dependencies

File:
1 edited

Legend:

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

    r70013 r80729  
    137137    programs, <option>lib</option> for libraries, and <option>path</option> 
    138138    for any installed file. File dependencies are specifed in the form: 
    139     <replaceable>&lt;type&gt;</replaceable>:<replaceable>&lt;filespec&gt;</replaceable>:<replaceable>&lt;port&gt;</replaceable>. 
    140     For <option>bin</option> dependencies, 
     139    <replaceable>&lt;type&gt;</replaceable>:<replaceable>&lt;filespec&gt;</replaceable>:<replaceable>&lt;port&gt;</replaceable>.</para> 
     140     
     141    <para>For <option>bin</option> dependencies, 
    141142    <replaceable>&lt;filespec&gt;</replaceable> is the name of a program in a 
    142     bin directory like <filename>${prefix}/bin</filename>. For 
    143     <option>lib</option> dependencies, 
    144     <replaceable>&lt;filespec&gt;</replaceable> is the name of a library in a 
    145     lib directory like <filename>${prefix}/lib</filename> but without its 
    146     extension. For <option>path</option> dependencies, 
     143    bin directory like <filename>${prefix}/bin</filename>, /usr/bin, /bin, and 
     144    the associated sbin directories.</para> 
     145     
     146    <para>For <option>lib</option> dependencies, 
     147    <replaceable>&lt;filespec&gt;</replaceable> is the name of a library 
     148    (but without its extension) in a lib directory like 
     149    <filename>${prefix}/lib</filename>, /usr/lib, /lib, some Framework 
     150    directories, and those found in environment variables like DYLD_LIBRARY_PATH.</para> 
     151     
     152    <para>For <option>path</option> dependencies, 
    147153    <replaceable>&lt;filespec&gt;</replaceable> is the complete absolute path 
    148154    to the file, or more usually, when the file is inside 
    149155    <filename>${prefix}</filename>, it is specified relative to 
    150     <filename>${prefix}</filename>.</para> 
     156    <filename>${prefix}</filename>. 
     157    Since <option>path</option> dependencies are the only ones which would find 
     158    files only in an absolute path or a path inside <filename>${prefix}</filename> 
     159    they are - in cases when a port needs to be more restrictive - often used 
     160    instead of <option>bin</option> and <option>lib</option> dependencies .</para> 
    151161 
    152162    <para>Note that the <replaceable>&lt;port&gt;</replaceable> specified is 
Note: See TracChangeset for help on using the changeset viewer.