<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fde17bfd4d70b37d54b683d756330e0c44de3082">https://github.com/macports/macports-ports/commit/fde17bfd4d70b37d54b683d756330e0c44de3082</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 fde17bf godot: new port
</span>fde17bf is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fde17bfd4d70b37d54b683d756330e0c44de3082
</span>Author: Jason Liu <jasonliu--@users.noreply.github.com>
AuthorDate: Mon May 11 12:23:38 2020 -0400
<span style='display:block; white-space:pre;color:#404040;'> godot: new port
</span>---
games/godot/Portfile | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 117 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/godot/Portfile b/games/godot/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7e3f7ed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/godot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,117 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup godotengine godot 3.2.1 "" -stable
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories games graphics multimedia
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers @jasonliu-- openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://godotengine.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description cross-platform 2-D and 3-D game development \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ environment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Godot Engine is a cross-platform game engine for \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ creating 2-D and 3-D games. Godot aims to offer a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fully integrated game development environment. It \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ provides a comprehensive set of common tools, and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ games can be exported to a number of target \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ platforms, including major desktop platforms \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (Linux, macOS, Windows), as well as mobile \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (Android, iOS) and web-based (HTML5) platforms.
</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;'>+checksums rmd160 42bed19653bb0964f4f1b8a66c760d0724faec16 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 f794b1ecd443220e25cc969a0262d0f6e0d81fba1d85ed6dc6101473b60711d2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 22089237
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:scons \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:yasm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/yasm_paths =/a\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\\ \"${prefix}/bin/yasm\",\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/modules/webm/libvpx/SCsub
</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;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xcode yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd scons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env BUILD_NAME=macports_build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target platform=osx target=release_debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/misc/dist/osx_tools.app \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${applications_dir}/Godot.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${applications_dir}/Godot.app/Contents/MacOS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/bin/godot.osx.opt.tools.64 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${applications_dir}/Godot.app/Contents/MacOS/Godot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${applications_dir}/Godot.app/Contents/MacOS/Godot \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/bin/godot
</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;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://godotengine.org/download/osx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex Godot <em>(\\d+\\.\\d+(?:\\.\\d+)*)</em>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+### The following code was adapted from the portfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+### of ports such as openvdb and openimageio
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set clang_suffixes {5 6 7 8 9}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# this default version should stay synchronized with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the default macports_clang option in the SConstruct
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# file that is part of the Godot source code
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set sconstruct_default_mp_clang 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set clang_ports {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach s ${clang_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend clang_ports clang${s}
</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;'>+foreach s ${clang_suffixes} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global use_xcode sconstruct_default_mp_clang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set p clang${s}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${s} < 10} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set v ${s}.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set v ${s}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set i [lsearch -exact ${clang_ports} ${p}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set c [lreplace ${clang_ports} ${i} ${i}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant ${p} conflicts {*}${c} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description "Build using the MacPorts Clang ${v} compiler" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:clang-${v}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.whitelist macports-clang-${v}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_xcode no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${s} != ${sconstruct_default_mp_clang}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace s|${sconstruct_default_mp_clang}\.0|${v}|g \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/SConstruct
</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;'>+ # References:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # * https://trac.macports.org/ticket/58770
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # * https://trac.macports.org/ticket/58779#comment:28
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+****
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** Installing port ${name} with variant +${p} uses
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** MacPorts Clang instead of Xcode Clang. It also
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** circumvents the Xcode toolchain, which means that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** if you attempt to perform a build using trace mode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** (port -t install ${name} +${p}), the build will
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** fail!
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+****
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** If you are not using trace mode, you can safely
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+**** ignore this message.
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append macports_clang=${v}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>