<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/239589499e5c683540324f8b4f7a13d9c23e1883">https://github.com/macports/macports-ports/commit/239589499e5c683540324f8b4f7a13d9c23e1883</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 239589499e5 mathgl: use qt5.depends_component, and add py39 and py210 variants
</span>239589499e5 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 239589499e5c683540324f8b4f7a13d9c23e1883
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Tue Dec 14 18:34:34 2021 -0600

<span style='display:block; white-space:pre;color:#404040;'>    mathgl: use qt5.depends_component, and add py39 and py210 variants
</span>---
 math/mathgl/Portfile | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathgl/Portfile b/math/mathgl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a99f777d071..88bdc348e1a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/mathgl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathgl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,22 +72,37 @@ configure.cflags-append \
</span> 
 variant qt5 description {Enable Qt5 widget} {
     PortGroup qt5 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    depends_lib-append  port:qt5-qtwebkit
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.args-replace -Denable-qt5=OFF -Denable-qt5=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    qt5.depends_component \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    qtwebkit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    -Denable-qt5=OFF -Denable-qt5=ON
</span> 
     # avoid dependency on qt5-qtwebkit
     #configure.args-append  -Denable-json-sample=OFF
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python38 description {Enable python 3.8 interface} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    depends_build-append port:swig-python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 conflicts python39 python310 description {Use Python 3.8} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python39 conflicts python38 python310 description {Use Python 3.9} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python310 conflicts python38 python39 description {Use Python 3.10} {}
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    depends_lib-append  \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        port:python38   \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        port:py38-numpy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach pv {310 39 38} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {[variant_isset python${pv}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set python_branch "[string index ${pv} 0].[string range ${pv} 1 end]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        depends_build-append port:swig-python
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.args-replace -Denable-python=OFF -Denable-python=ON
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.args-append  -DPYTHON_EXECUTABLE=${prefix}/bin/python3.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        depends_lib-append  \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:python${pv}   \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${pv}-numpy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        configure.args-replace -Denable-python=OFF -Denable-python=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        configure.args-append  -DPYTHON_EXECUTABLE=${prefix}/bin/python${python_branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        pre-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            reinplace "s|-38.pyc|-${pv}.pyc|" ${worksrcpath}/lang/cmake_install.cmake
</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;'>+        break
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span> }
 
 #currently broken
</pre><pre style='margin:0'>

</pre>