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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b025afa1c302c51487526a65fa53ec3f9de9ea3a">https://github.com/macports/macports-ports/commit/b025afa1c302c51487526a65fa53ec3f9de9ea3a</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 b025afa1c30 avahi: add python311 variant
</span>b025afa1c30 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit b025afa1c302c51487526a65fa53ec3f9de9ea3a
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Sat Jul 1 23:49:14 2023 -0400

<span style='display:block; white-space:pre;color:#404040;'>    avahi: add python311 variant
</span>---
 net/avahi/Portfile | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/avahi/Portfile b/net/avahi/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e3f06b56771..b8c9074a2a3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/avahi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/avahi/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -181,7 +181,7 @@ variant qt5 description {Build with Qt5} {
</span>     configure.args-delete   --disable-qt5
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python27 conflicts python38 python39 python310 description {Build with Python 2.7} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python27 conflicts python38 python39 python310 python311 description {Build with Python 2.7} {
</span>     configure.python        ${prefix}/bin/python2.7
     depends_lib-append      port:dbus-python27 \
                             port:py27-gdbm
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -193,7 +193,7 @@ variant python27 conflicts python38 python39 python310 description {Build with P
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python38 conflicts python27 python39 python310 description {Build with Python 3.8} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python38 conflicts python27 python39 python310 python311 description {Build with Python 3.8} {
</span>     configure.python        ${prefix}/bin/python3.8
     depends_lib-append      port:dbus-python38 \
                             port:py38-gdbm
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -205,7 +205,7 @@ variant python38 conflicts python27 python39 python310 description {Build with P
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python39 conflicts python27 python38 python310 description {Build with Python 3.9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python39 conflicts python27 python38 python310 python311 description {Build with Python 3.9} {
</span>     configure.python        ${prefix}/bin/python3.9
     depends_lib-append      port:dbus-python39 \
                             port:py39-gdbm
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -217,7 +217,7 @@ variant python39 conflicts python27 python38 python310 description {Build with P
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python310 conflicts python27 python38 python39 description {Build with Python 3.10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python310 conflicts python27 python38 python39 python311 description {Build with Python 3.10} {
</span>     configure.python        ${prefix}/bin/python3.10
     depends_lib-append      port:dbus-python310 \
                             port:py310-gdbm
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -229,6 +229,18 @@ variant python310 conflicts python27 python38 python39 description {Build with P
</span>     }
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant python311 conflicts python27 python38 python39 python310 description {Build with Python 3.10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.python        ${prefix}/bin/python3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_lib-append      port:dbus-python311 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                            port:py311-gdbm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_lib-append      port:py311-gobject3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.pkg_config_path-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                            ${frameworks_dir}/Python.framework/Versions/3.11/lib/pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|PYTHON_PREFIX=\'\${prefix}\'|PYTHON_PREFIX=\'${frameworks_dir}/Python.framework/Versions/3.11\'|" ${worksrcpath}/configure
</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;'>+
</span> variant x11 conflicts quartz {
     require_active_variants gtk3 x11
     require_active_variants gtk2 x11
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -245,12 +257,12 @@ if {![variant_isset quartz]} {
</span> if {![variant_isset gtk]} {
     default_variants-append +gtk3
 }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset python27] && ![variant_isset python38] && ![variant_isset python39]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    default_variants-append +python310
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset python27] && ![variant_isset python38] && ![variant_isset python39] && ![variant_isset python310]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    default_variants-append +python311
</span> }
 
 pre-configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if {![variant_isset python310] && ![variant_isset python39] && ![variant_isset python38] && ![variant_isset python27]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {![variant_isset python311] && ![variant_isset python310] && ![variant_isset python39] && ![variant_isset python38] && ![variant_isset python27]} {
</span>         ui_error "avahi requires Python, please use a Python variant."
         return -code error
     }
</pre><pre style='margin:0'>

</pre>