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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9bd67b52d9ae9584244159a9fd53b55168e75e7b">https://github.com/macports/macports-ports/commit/9bd67b52d9ae9584244159a9fd53b55168e75e7b</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 9bd67b52d9a uvw: add uvw2 subport, install everything into sub-prefices
</span>9bd67b52d9a is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 9bd67b52d9ae9584244159a9fd53b55168e75e7b
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Wed Aug 16 07:47:08 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    uvw: add uvw2 subport, install everything into sub-prefices
</span>---
 devel/uvw/Portfile | 41 +++++++++++++++++++++++++++++------------
 1 file changed, 29 insertions(+), 12 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/uvw/Portfile b/devel/uvw/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a22bdee717e..44840d3b996 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/uvw/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/uvw/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ legacysupport.newest_darwin_requires_legacy 15
</span> 
 # libuv version here should match the main port.
 github.setup            skypjack uvw 3.0.0 v _libuv_v1.44
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                2
</span> categories              devel
 maintainers             {@barracuda156 gmail.com:vital.had} openmaintainer
 license                 MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,28 +21,37 @@ checksums               sha256  b93d7cc841ace369f5930953f1b00a008597682a8690950f
</span>                         size    106022
 
 # uvw upstream may not match the libuv version used by Macports, and some ports may require to be up-to-date with upstream.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Having a single uvw port leads into trouble due to potential, and likely, incompatibilities: https://github.com/oxen-io/lokinet/issues/2197
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Having a single uvw port leads into trouble due to potential, and likely, incompatibilities.
</span> # So we offer header-only and static lib variants which are intended to be up-to-date, while letting the main variant to lag behind,
 # tracking Macports libuv. Notice, while subports mutually conflict, the main port can co-exist with either of the former.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# In addition, there is a uvw2 port: its API is incompatible with v. 3.x: : https://github.com/oxen-io/lokinet/issues/2197
</span> set upstream_vvw        3.2.0
 set upstream_luv        1.46
 
 subport uvw-static {
     github.setup        skypjack uvw ${upstream_vvw} v _libuv_v${upstream_luv}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    revision            1
</span>     conflicts           uvw-headers
     fetch.type          git
 }
 
 subport uvw-headers {
     github.setup        skypjack uvw ${upstream_vvw} v _libuv_v${upstream_luv}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    revision            1
</span>     conflicts           uvw-static
     checksums           rmd160  d6579c2b1fc6bdf43aadd20ee2ce9f999225c16e \
                         sha256  67b1c002f51750264db7686ee99e3330e188d9337dc7ebc0e2e2d41210973c31 \
                         size    106942
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+subport uvw2 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    github.setup        skypjack uvw 2.12.1 v _libuv_v1.44
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    checksums           rmd160  ab836964c230520bfb970df5b44a4cba9a6a8654 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        sha256  740cb917673cdcbe579ff9a14b92efda7f0190f02902bc63e6f4a0ac98d31042 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        size    107951
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append    port:pkgconfig
 
 compiler.cxx_standard   2017
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,7 +62,7 @@ configure.pre_args-replace \
</span> 
 configure.args-append   -DBUILD_DOCS:BOOL=OFF
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${subport} eq ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq ${name} || ${subport} eq "uvw2"} {
</span>     depends_lib-append  port:libuv
     configure.args-append \
                         -DBUILD_TESTING:BOOL=ON \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -76,20 +85,28 @@ if {${subport} eq ${name}} {
</span>                         -DFETCH_LIBUV:BOOL=OFF
 }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${subport} eq "uvw-static" || ${subport} eq "uvw-headers"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Install everything into sub-prefices:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq ${name}} {
</span>     set uvw_libexec     ${prefix}/libexec/uvw/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    configure.pre_args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${subport} eq "uvw2"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set uvw_libexec     ${prefix}/libexec/uvw2/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${subport} eq "uvw-static" || ${subport} eq "uvw-headers"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set uvw_libexec     ${prefix}/libexec/uvw-upstream/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append \
</span>                         -DBUILD_TESTING:BOOL=OFF \
                         -DBUILD_UVW_SHARED_LIB:BOOL=OFF \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        -DCMAKE_INSTALL_INCLUDEDIR:STRING=${uvw_libexec}include \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        -DCMAKE_INSTALL_LIBDIR:STRING=${uvw_libexec}lib \
</span>                         -DFIND_LIBUV:BOOL=OFF
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    pre-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        xinstall -d ${destroot}${uvw_libexec}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span> }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        -DCMAKE_INSTALL_INCLUDEDIR:STRING=${uvw_libexec}include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        -DCMAKE_INSTALL_LIBDIR:STRING=${uvw_libexec}lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> platform powerpc {
     configure.args-append \
                         -DUSE_LIBCPP:BOOL=OFF
 }
<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;'>+    xinstall -d ${destroot}${uvw_libexec}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>

</pre>