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

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b6d340c43cdb2bef077f72edb075a124148832ed">https://github.com/macports/macports-ports/commit/b6d340c43cdb2bef077f72edb075a124148832ed</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 b6d340c43cd vlang: switch to makefile PG
</span>b6d340c43cd is described below

<span style='display:block; white-space:pre;color:#808000;'>commit b6d340c43cdb2bef077f72edb075a124148832ed
</span>Author: Haren S <12570877+harens@users.noreply.github.com>
AuthorDate: Fri Apr 1 16:10:01 2022 +0000

<span style='display:block; white-space:pre;color:#404040;'>    vlang: switch to makefile PG
</span>---
 lang/vlang/Portfile | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/vlang/Portfile b/lang/vlang/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e22c91298d0..a10919a08bb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/vlang/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/vlang/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem          1.0
</span> PortGroup           compiler_blacklist_versions 1.0
 PortGroup           github 1.0
 PortGroup           legacysupport 1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           makefile 1.0
</span> 
 # clock_gettime
 legacysupport.newest_darwin_requires_legacy 15
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -54,24 +55,20 @@ if {${build_arch} in "ppc ppc64"} {
</span> # ./thirdparty/stdatomic/nix/atomic.h:12:10: fatal error: 'stdatomic.h' file not found
 # Based on cmus port: compatible compilers are Xcode > Xcode 7, clang > 3.7, and gcc > 4.8
 compiler.c_standard 2011
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cflags-append -std=gnu11
</span> compiler.blacklist-append {clang < 700} macports-clang-3.*
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure       no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Build process based on https://github.com/vlang/v/blob/master/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span>     # Disable vlang self update feature.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    set updating_path ${worksrcpath}/cmd/tools
</span>     copy -force ${filespath}/vup.v ${worksrcpath}/cmd/tools
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    set VFLAGS "-v -prod -cc ${configure.cc} -cflags [shellescape ${configure.cflags}]"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath} "${configure.cc} ${configure.cflags} -I ./thirdparty/stdatomic/nix -o v1 ../vc-${vc_commit}/v.c -lm -lpthread ${configure.ldflags}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath} "./v1 -no-parallel -o v2 ${VFLAGS} cmd/v"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    system -W ${worksrcpath} "./v2 -o v ${VFLAGS} cmd/v"
</span> }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# -cg allows for better error debugging
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# local prevents fetching the V compiler during the build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# VC is the location of the V compiler directory
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args-append   local=true \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    VFLAGS="-v -cg -prod -cc ${configure.cc} -cflags [shellescape ${configure.cflags}]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    VC=../vc-${vc_commit}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
     set library_path ${destroot}${prefix}/lib/${name}
     set examples_path ${destroot}${prefix}/share/examples
</pre><pre style='margin:0'>

</pre>