- Timestamp:
- Jul 30, 2003, 2:35:39 PM (21 years ago)
- Location:
- trunk/doc/guide/xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/guide/xml/details.xml
r3070 r3093 18 18 19 19 <para>All key value pairs in a Portfile are single lines so line breaks 20 must be escaped with a back s olidus '\'. </para>20 must be escaped with a back slash ('\'). </para> 21 21 <para>Variables syntax is ${foo} for the foo variant.</para> 22 22 <sect2> … … 25 25 "special". These have a special meaning in TCL and if you dont 26 26 want that special meaning, they must be escaped. In general a 27 charac hter is escaped using the back solidus '\'. The main27 character is escaped using the back slash ('\'). The main 28 28 characters you need to be careful with are 29 29 <simplelist type="inline"> … … 362 362 http://www.somemirror.org/somesite_org/files/</userinput></programlisting> 363 363 364 <tip><para>Always put the trailing forward s olidusat the364 <tip><para>Always put the trailing forward slash at the 365 365 end of a url, and remember to not include the filename 366 366 itself.</para></tip> -
trunk/doc/guide/xml/quick.xml
r3070 r3093 389 389 <para>It is possible to use predefined lists of mirror sites in 390 390 your <filename>Portfile</filename>, such as SourceForge or GNU 391 mirrors. A full list of mirror site types is available in 392 Chapter 3, 'Fetch phase'. The straight-forward usage is:</para> 391 mirrors. The straight-forward usage is:</para> 393 392 394 393 <programlisting>master_sites sourceforge http://distfiles.opendarwin.org/ 395 394 master_sites.mirror_subdir ${name}</programlisting> 395 396 <para>In this example, <varname>sourceforge</varname> is the name 397 of the mirror site list (See Chapter 3, 'Fetch Phase' for a list 398 of all available mirror site lists), 399 <varname>http://distfiles.opendarwin.org/</varname> is a normal 400 <varname>master_sites</varname> URL, and 401 <varname>${name}</varname> (the value of the 402 <varname>name</varname> keyword in the 403 <filename>Portfile</filename>) is the subdirectory to append to 404 any mirror site lists specified.</para> 396 405 397 406 <para>This will search all of the mirror sites for SourceForge and 398 407 then http://distfiles.opendarwin.org, appending 399 408 <varname>${name}</varname> to the end of each SoureForge mirror 400 site in the list, for example:</para> 401 402 <programlisting>http://us.dl.sourceforge.net/${name} 403 ftp://us.dl.sourceforge.net/pub/sourceforge/${name}</programlisting> 409 site in the list. This example will try to fetch from:</para> 410 411 <programlisting>http://us.dl.sourceforge.net/${name}/ 412 ftp://us.dl.sourceforge.net/pub/sourceforge/${name}/ 413 ... 414 http://distfiles.opendarwin.org/</programlisting> 415 416 <para>Note that the value of 417 <varname>master_sites.mirror_subdir</varname> is 418 <emphasis>not</emphasis> appended to 419 <varname>http://distfiles.opendarwin.org/</varname>, this URL is 420 treated normally. In this example 421 <varname>master_sites.mirror_subdir</varname> is a required 422 key.</para> 404 423 405 424 <para>You can also use the mirror site lists in … … 599 618 <title>Expat <filename>Portfile</filename></title> 600 619 <programlisting><![CDATA[########################### libxslt Portfile ################################## 601 # $Id: quick.xml,v 1.1 3 2003/07/20 17:00:53fkr Exp $620 # $Id: quick.xml,v 1.14 2003/07/30 14:35:39 fkr Exp $ 602 621 603 622 PortSystem 1.0 … … 627 646 628 647 <programlisting><![CDATA[###########################neon Portfile#################################### 629 # $Id: quick.xml,v 1.1 3 2003/07/20 17:00:53fkr Exp $648 # $Id: quick.xml,v 1.14 2003/07/30 14:35:39 fkr Exp $ 630 649 631 650 PortSystem 1.0
Note: See TracChangeset
for help on using the changeset viewer.