<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/d49c4fb8a1b05684bb8a6d0c542b20218b886bc0">https://github.com/macports/macports-base/commit/d49c4fb8a1b05684bb8a6d0c542b20218b886bc0</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d49c4fb8a1b05684bb8a6d0c542b20218b886bc0
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Mar 13 03:06:36 2018 +0100
<span style='display:block; white-space:pre;color:#404040;'> portindex: support creating PortIndex for libc++
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/55471
</span>---
src/port/portindex.tcl | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port/portindex.tcl b/src/port/portindex.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 4fc59f4..3d98e42 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port/portindex.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port/portindex.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,7 +23,7 @@ mportinit ui_options global_options global_variations
</span> # Standard procedures
proc print_usage args {
global argv0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- puts "Usage: $argv0 \[-dfe\] \[-o output directory\] \[-p plat_ver_arch\] \[directory\]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts "Usage: $argv0 \[-dfe\] \[-o output directory\] \[-p plat_ver_\[cxxlib_\]arch\] \[directory\]"
</span> puts "-d:\tOutput debugging information"
puts "-f:\tDo a full re-index instead of updating"
puts "-e:\tExit code indicates if ports failed to parse"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -199,7 +199,26 @@ for {set i 0} {$i < $argc} {incr i} {
</span> set platlist [split [lindex $argv $i] _]
set os_platform [lindex $platlist 0]
set os_major [lindex $platlist 1]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set os_arch [lindex $platlist 2]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[llength $platlist] > 3} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_stdlib [lindex $platlist 2]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ switch -- $cxx_stdlib {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libcxx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_stdlib libc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libstdcxx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_stdlib libstdc++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts stderr "Unknown C++ standard library: $cxx_stdlib (use libcxx or libstdcxx)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print_usage
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit 1
</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;'>+ lappend port_options cxx_stdlib $cxx_stdlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set os_arch [lindex $platlist 3]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set os_arch [lindex $platlist 2]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> if {$os_platform eq "macosx"} {
lappend port_options os.subplatform $os_platform os.universal_supported yes
set os_platform darwin
</pre><pre style='margin:0'>
</pre>