<pre style='margin:0'>
MarcusCalhoun-Lopez pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f673a61a68136ccbd7588898ae7a50e3dbaf8260">https://github.com/macports/macports-ports/commit/f673a61a68136ccbd7588898ae7a50e3dbaf8260</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f673a61a68136ccbd7588898ae7a50e3dbaf8260
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sat Jul 8 13:56:47 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> qt5, qt56: do not conflict when qt56 replaces qt5
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/53826
</span>---
aqua/qt5/Portfile | 14 +++++++++++---
aqua/qt56/Portfile | 5 +++++
2 files changed, 16 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt5/Portfile b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7d4b20e..39154ba 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1714,6 +1714,12 @@ foreach {component component_info} [array get qt5pg::qt5_component_lib] {
</span> # Qt 5.7 will not work on Mac OS X 10.7
# replace qt5-XYZ port with qt56-XYZ port
if { ${os.major} < 12 } {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set qt_replace_version 5.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set qt_replace_name qt[join [split ${qt_replace_version} .] ""]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set qt_replace_port ${qt_replace_name}[string range ${subport} 3 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set suffix [string range ${subport} [string last - ${subport}] end]
if { ${suffix} eq "-docs" } {
set component [string range ${subport} 4 end-5]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1722,14 +1728,16 @@ if { ${os.major} < 12 } {
</span> }
if { ${component} eq "" } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- replaced_by qt56[string range ${subport} 3 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ replaced_by ${qt_replace_port}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts-delete ${qt_replace_port}
</span> } else {
set component_info $qt5pg::qt5_component_lib(${component})
set qt_version_introduced [lindex ${component_info} 0]
set qt_version_removed [lindex ${component_info} 1]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { [vercmp ${qt_version_introduced} 5.6] <= 0 && [vercmp ${qt_version_removed} 5.6] > 0 } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- replaced_by qt56[string range ${subport} 3 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [vercmp ${qt_version_introduced} ${qt_replace_version}] <= 0 && [vercmp ${qt_version_removed} ${qt_replace_version}] > 0 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ replaced_by ${qt_replace_port}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts-delete ${qt_replace_port}
</span> }
}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt56/Portfile b/aqua/qt56/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e584194..e5b20a0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt56/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt56/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -52,6 +52,11 @@ foreach test_qt_name ${available_qt_versions} {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# qt56-qtbase replaces qt5-qtbase, so can not conflict
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { ${os.major} eq 11 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts-delete qt5-qtbase
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> ############################################################################### Modules Not Considered
#
# No qtactiveqt (Windows Only)
</pre><pre style='margin:0'>
</pre>