[31898] trunk/doc-new/guide/xml/portfiledev.xml

simon at macports.org simon at macports.org
Tue Dec 11 08:30:18 PST 2007


Revision: 31898
          http://trac.macosforge.org/projects/macports/changeset/31898
Author:   simon at macports.org
Date:     2007-12-11 08:30:15 -0800 (Tue, 11 Dec 2007)

Log Message:
-----------
doc-new: Whitespace fixes in some examples, also another example fix.

Modified Paths:
--------------
    trunk/doc-new/guide/xml/portfiledev.xml

Modified: trunk/doc-new/guide/xml/portfiledev.xml
===================================================================
--- trunk/doc-new/guide/xml/portfiledev.xml	2007-12-11 15:32:10 UTC (rev 31897)
+++ trunk/doc-new/guide/xml/portfiledev.xml	2007-12-11 16:30:15 UTC (rev 31898)
@@ -274,10 +274,10 @@
       example.</para>
 
       <programlisting>post-destroot {
-# Install example files not installed by the Makefile
-        file mkdir ${destroot}${prefix}/share/doc/${name}/examples
-        file copy ${worksrcpath}/examples/ \
-             ${destroot}${prefix}/share/doc/${name}/examples
+    # Install example files not installed by the Makefile
+    file mkdir ${destroot}${prefix}/share/doc/${name}/examples
+    file copy ${worksrcpath}/examples/ \
+        ${destroot}${prefix}/share/doc/${name}/examples
 }</programlisting>
     </section>
 
@@ -288,8 +288,8 @@
       define your own installation phases as shown in this example.</para>
 
       <programlisting>destroot {
-        xinstall -m 755 -d ${destroot}${prefix}/bin
-        xinstall -m 755 ${worksrcpath}/cdpr ${destroot}${prefix}/bin
+    xinstall -m 755 -d ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/cdpr ${destroot}${prefix}/bin
 }</programlisting>
     </section>
 
@@ -324,9 +324,9 @@
       to make their installation conditional.</para>
 
       <programlisting>variant server {
-    startupitem.create    yes
-    startupitem.start "${prefix}/share/${name}/vm-pop3d.init start"
-    startupitem.stop "${prefix}/share/${name}/vm-pop3d.init stop"
+    startupitem.create  yes
+    startupitem.start   "${prefix}/share/${name}/vm-pop3d.init start"
+    startupitem.stop    "${prefix}/share/${name}/vm-pop3d.init stop"
 }</programlisting>
     </section>
   </section>
@@ -388,7 +388,7 @@
     xinstall ${worksrcpath}/examples/foo.conf \
         ${destroot}${prefix}/etc/
 
-    if {[variant_isset] carbon]} {
+    if {[variant_isset carbon]} {
         delete ${destroot}${prefix}/bin/emacs
         delete ${destroot}${prefix}/bin/emacs-${version}
     }
@@ -403,8 +403,10 @@
       you wish to specify these non-core functions by default. For this
       purpose you may use the keyword default_variants.</para>
 
-      <programlisting>default_variants +foo +bar</programlisting>
+      <programlisting>default_variants    +foo +bar</programlisting>
 
+      <!-- TODO: add warning not to use default_variant at the moment -->
+
       <note>
         <para>The default_variant keyword may only be used in the global
         Portfile section.</para>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071211/275fa9ea/attachment.html


More information about the macports-changes mailing list