<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/dd560219e6faf08926bb1b3cc03a7f9f8cbb1b69">https://github.com/macports/macports-base/commit/dd560219e6faf08926bb1b3cc03a7f9f8cbb1b69</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit dd560219e6faf08926bb1b3cc03a7f9f8cbb1b69
</span>Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
AuthorDate: Sun Jul 16 14:37:23 2017 -0400
<span style='display:block; white-space:pre;color:#404040;'> Expand license output by adding '(' 'or' ')' 'and' between licenses
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Add conjunctions to allow easier understanding of license info. This
</span><span style='display:block; white-space:pre;color:#404040;'> avoids the issue of having to remember what licenses in {} and those
</span><span style='display:block; white-space:pre;color:#404040;'> without {} mean.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Examples listed below: top line is current, 2nd line is with patch
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> cfitsio license: zlib MIT {LGPL Noncommercial}
</span><span style='display:block; white-space:pre;color:#404040;'> cfitsio license: zlib and MIT and (LGPL or Noncommercial)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> rust license: {MIT Apache-2} BSD zlib NCSA Permissive
</span><span style='display:block; white-space:pre;color:#404040;'> rust license: (MIT or Apache-2) and BSD and zlib and NCSA and Permissive
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> edb license: BSD BSD-old Sleepycat
</span><span style='display:block; white-space:pre;color:#404040;'> edb license: BSD and BSD-old and Sleepycat
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> qt55 license: {LGPL-2.1 LGPL-3 GPL-3 OpenSSLException}
</span><span style='display:block; white-space:pre;color:#404040;'> qt55 license: (LGPL-2.1 or LGPL-3 or GPL-3 or OpenSSLException)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Others to look at: itext, dmd-bootstrap, libgdiplus
</span>---
src/port/port.tcl | 15 +++++++++++++++
1 file changed, 15 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port/port.tcl b/src/port/port.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index bc45337..a865346 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port/port.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2228,6 +2228,21 @@ proc action_info { action portlist opts } {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Add "and" and "or"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$ropt eq "license"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set infresult {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach {e} $inf {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[llength $e] > 1} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[llength $infresult] > 0} { lappend infresult " and " }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend infresult "([join $e " or "])"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[llength $infresult] > 0} { lappend infresult " and " }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend infresult $e
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set inf [concat {*}$infresult]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Format list of maintainers
if {$ropt eq "maintainers"} {
set infresult {}
</pre><pre style='margin:0'>
</pre>