[25433] branches/dp2mp-move/base
source_changes at macosforge.org
source_changes at macosforge.org
Mon May 21 22:21:31 PDT 2007
Revision: 25433
http://trac.macosforge.org/projects/macports/changeset/25433
Author: jmpp at macports.org
Date: 2007-05-21 22:21:31 -0700 (Mon, 21 May 2007)
Log Message:
-----------
Merging boeyms' r25110: Convert description and long_description from lists to strings before printing to stdout (...).
Modified Paths:
--------------
branches/dp2mp-move/base/doc/portfile.7
branches/dp2mp-move/base/src/port/port.tcl
Modified: branches/dp2mp-move/base/doc/portfile.7
===================================================================
--- branches/dp2mp-move/base/doc/portfile.7 2007-05-22 05:17:41 UTC (rev 25432)
+++ branches/dp2mp-move/base/doc/portfile.7 2007-05-22 05:21:31 UTC (rev 25433)
@@ -96,7 +96,11 @@
.Sy Example:
.Dl epoch 20041231
.It Ic description
-One line description of the software and what it does.
+One line description of the software and what it does. To appear in the
+description, brackets and semi-colons need to be escaped with a backslash (i.e.
+they must be written as "\\[", "\\]" and "\\;"). The escape sequences listed in
+.Xr re_syntax n
+may also be used, with the exception of \\n, \\r and \\f.
.br
.Sy Type:
.Em required
@@ -104,7 +108,11 @@
.Sy Example:
.Dl description Dictionary Server Protocol (RFC2229) client
.It Ic long_description
-A verbose description of the software and what it does.
+A verbose description of the software and what it does. To appear in the
+description, brackets and semi-colons need to be escaped with a backslash (i.e.
+they must be written as "\\[", "\\]" and "\\;"). The escape sequences listed in
+.Xr re_syntax n
+may also be used, with the exception of \\n, \\r and \\f.
.br
.Sy Type:
.Em required
Modified: branches/dp2mp-move/base/src/port/port.tcl
===================================================================
--- branches/dp2mp-move/base/src/port/port.tcl 2007-05-22 05:17:41 UTC (rev 25432)
+++ branches/dp2mp-move/base/src/port/port.tcl 2007-05-22 05:21:31 UTC (rev 25433)
@@ -1254,7 +1254,7 @@
}
if {[info exists portinfo(long_description)]} {
- puts "\n$portinfo(long_description)\n"
+ puts "\n[join $portinfo(long_description)]\n"
}
# find build dependencies
@@ -1802,9 +1802,9 @@
continue
}
if {![info exists portinfo(portdir)]} {
- set output [format "%-30s %-12s %s" $portinfo(name) $portinfo(version) $portinfo(description)]
+ set output [format "%-30s %-12s %s" $portinfo(name) $portinfo(version) [join $portinfo(description)]]
} else {
- set output [format "%-30s %-14s %-12s %s" $portinfo(name) $portinfo(portdir) $portinfo(version) $portinfo(description)]
+ set output [format "%-30s %-14s %-12s %s" $portinfo(name) $portinfo(portdir) $portinfo(version) [join $portinfo(description)]]
}
set portfound 1
puts $output
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070521/d50ad601/attachment.html
More information about the macports-changes
mailing list