<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/bb693ed0364a87377a5da8e49e5e726bae46cbb2">https://github.com/macports/macports-ports/commit/bb693ed0364a87377a5da8e49e5e726bae46cbb2</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new bb693ed qt5-1.0.tcl: * do not overwrite supported_archs * do not force universal variant
</span>bb693ed is described below
<span style='display:block; white-space:pre;color:#808000;'>commit bb693ed0364a87377a5da8e49e5e726bae46cbb2
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Nov 6 07:46:54 2016 -0700
<span style='display:block; white-space:pre;color:#404040;'> qt5-1.0.tcl:
</span><span style='display:block; white-space:pre;color:#404040;'> * do not overwrite supported_archs
</span><span style='display:block; white-space:pre;color:#404040;'> * do not force universal variant
</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/51643
</span><span style='display:block; white-space:pre;color:#404040;'> If Portfile defines merger-* procedure, muniversal PortGroup must be
</span><span style='display:block; white-space:pre;color:#404040;'> explicitly used since muniversal would otherwise included later in the
</span><span style='display:block; white-space:pre;color:#404040;'> Portfile evaluation.
</span>---
_resources/port1.0/group/qt5-1.0.tcl | 23 +++++++++++++++++++----
devel/qt5-creator/Portfile | 1 +
textproc/gpsbabel/Portfile | 1 +
3 files changed, 21 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/qt5-1.0.tcl b/_resources/port1.0/group/qt5-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 57a5a6e..e78cd77 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/qt5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/qt5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -161,10 +161,25 @@ set qt_pkg_config_dir ${qt_libs_dir}/pkgconfig
</span> # no universal binary support in Qt 5
# see http://lists.qt-project.org/pipermail/interest/2012-December/005038.html
# and https://bugreports.qt.io/browse/QTBUG-24952
<span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs i386 x86_64
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if { ![exists universal_variant] || [option universal_variant] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- universal_archs_supported i386 x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default supported_archs {"i386 x86_64"}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# override universal_setup found in portutil.tcl so it uses muniversal PortGroup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# see https://trac.macports.org/ticket/51643
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc universal_setup {args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_exists universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "universal variant already exists, so not adding the default one"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[exists universal_variant] && ![option universal_variant]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "universal_variant is false, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[exists use_xmkmf] && [option use_xmkmf]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "using xmkmf, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {![exists os.universal_supported] || ![option os.universal_supported]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "OS doesn't support universal builds, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[llength [option supported_archs]] == 1} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "only one arch supported, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "adding universal variant via PortGroup muniversal"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uplevel "PortGroup muniversal 1.0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uplevel "default universal_archs_supported {\"i386 x86_64\"}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# standard qmake spec
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/qt5-creator/Portfile b/devel/qt5-creator/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4da74e9..216c5c9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/qt5-creator/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/qt5-creator/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -11,6 +11,7 @@ if { ${subport} eq "${name}-docs" } {
</span> set qt5_qmake_request_no_debug 1
}
PortGroup qmake5 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup muniversal 1.0
</span>
version 4.0.1
revision 1
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/gpsbabel/Portfile b/textproc/gpsbabel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9367c46..ba4dc6b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/gpsbabel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/gpsbabel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -73,6 +73,7 @@ if { [variant_isset qt4] } {
</span>
} elseif { [variant_isset qt5] } {
PortGroup qt5 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup muniversal 1.0
</span> } else {
ui_error "\n\nYou must select either the +qt4 or +qt5 variant.\n"
return -code error "Invalid variant selection"
</pre><pre style='margin:0'>
</pre>