<pre style='margin:0'>
Zero King (l2dy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/23192cab70ddb970f0bbea6d006a89f03e8e6db8">https://github.com/macports/macports-ports/commit/23192cab70ddb970f0bbea6d006a89f03e8e6db8</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 23192cab70d lua-luarocks: update to 3.7.0 and add subports
</span>23192cab70d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 23192cab70ddb970f0bbea6d006a89f03e8e6db8
</span>Author: Zero King <l2dy@macports.org>
AuthorDate: Thu May 27 13:57:57 2021 +0000
<span style='display:block; white-space:pre;color:#404040;'> lua-luarocks: update to 3.7.0 and add subports
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Adopt port and rename it to make it consistent with the upcoming luarocks PortGroup.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Use `port select` to choose the default.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/40423
</span>---
devel/luarocks/Portfile | 80 +-----------
lua/lua-luarocks/Portfile | 135 +++++++++++++++++++++
lua/lua-luarocks/files/lua51-luarocks | 2 +
lua/lua-luarocks/files/lua52-luarocks | 2 +
lua/lua-luarocks/files/lua53-luarocks | 2 +
.../files/patch-src_luarocks_core_cfg.diff | 28 +++++
lua/luarocks_select/Portfile | 31 +++++
lua/luarocks_select/files/base | 2 +
lua/luarocks_select/files/none | 2 +
9 files changed, 209 insertions(+), 75 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/luarocks/Portfile b/devel/luarocks/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 32d28135842..42bd972504c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/luarocks/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/luarocks/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,80 +1,10 @@
</span> # -*- 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
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup luarocks luarocks 2.4.4 v
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by lua-luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.4.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories devel
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs noarch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description Manager for rocks, lua extensions.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LuaRocks is a deployment and management system for Lua modules that allows \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- you to install self-contained modules (\"rocks\") which also contain \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- version dependency information. It handles both install time dependencies \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- and runtime version check. LuaRocks supports local and remote \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- repositories, and multiple local rocks trees.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.luarocks.org/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:lua
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 3e30700a3684c20bc80a55cbcb4dd5748a67087c \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 1b4e6048306acacb69b0769100451250336ea2cf1f105786e852af8bfa4c8df5 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 5820693
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args --with-lua=${prefix} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --rocks-tree=${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-src_luarocks_cfg.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/luarocks/cfg.lua
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|%COMPILER%|${configure.cc}|g" ${worksrcpath}/src/luarocks/cfg.lua
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --lua-version=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "/ln -nfs/s|\\\$\\\(DESTDIR\\\)\\\$\\\(BINDIR\\\)/|${prefix}/bin/|" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-use_parallel_build no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant md5 conflicts openssl description { Use md5 as checker } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-md5-checker=md5sum
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant openssl conflicts md5 description { Use openssl as checker } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-md5-checker=openssl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append path:lib/libssl.dylib:openssl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset md5]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +openssl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant wget conflicts curl description { Use wget as downloader } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-downloader=wget
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:wget
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant curl conflicts wget description { Use curl as downloader } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-downloader=curl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run-append port:curl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if {![variant_isset wget]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default_variants +curl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.keepdirs ${destroot}${prefix}/share/luarocks/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/share/luarocks/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-notes "If you upgraded lua from 5.1 to 5.2 you'll need to reinstall your rocks, you can find a list of the previous installed rocks in ${prefix}/share/${name}/lib/lua/5.1 and in ~/.luarocks/ . Note that these previously installed rocks may be listed as installed but luarocks.require function will not be able to load them"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-luarocks/Portfile b/lua/lua-luarocks/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..1cce666a4af
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-luarocks/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,135 @@
</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;'>+PortGroup select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup luarocks luarocks 3.7.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name lua-luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lua devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {l2dy @l2dy} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Manager for rocks, lua extensions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LuaRocks is a deployment and management system for Lua modules that allows \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ you to install self-contained modules (\"rocks\") which also contain \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version dependency information. It handles both install time dependencies \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and runtime version check. LuaRocks supports local and remote \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ repositories, and multiple local rocks trees.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://luarocks.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b978643a6b43668fb219240edfc5be9052192a1e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 70015144ed97665dcee7560c96c084ad0586d742417485a9d3fc1e49fbe97559 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 5386555
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options lua.branch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+option_proc lua.branch lua_set_branch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc lua_set_branch {option action args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$action ne "set"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global prefix lua.branch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lua.suffix lua.includedir lua.libdir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Compile against the standard Lua headers to maintain ABI compatibility.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://luajit.org/extensions.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lua.includedir "${prefix}/include/lua-${lua.branch}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lua.libdir "${prefix}/lib/lua-${lua.branch}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${lua.branch} eq "5.1"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lua.libdir "${prefix}/lib"
</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;'>+ set lua.suffix [join [split ${lua.branch} .] {}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${lua.branch} eq "5.3"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lua.suffix ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lua.includedir "${prefix}/include"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set lua.libdir "${prefix}/lib"
</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;'>+set branches {5.1 5.2 5.3}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set default_version 53
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+foreach branch ${branches} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set port_suffix [join [split ${branch} .] {}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ subport lua${port_suffix}-luarocks {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lua.branch ${branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:lua${lua.suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run port:luarocks_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args --with-lua=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-lua-bin=${prefix}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-lua-include=${lua.includedir} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-lua-lib=${lua.libdir} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --lua-version=${lua.branch} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --rocks-tree=${prefix}/share/luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The 5.1 branch uses LuaJIT runtime because lua51 does not support io.popen,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # which is required by LuaRocks.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${lua.branch} eq "5.1"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/libluajit-5.1.2.dylib:luajit
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-lua-interpreter=luajit
</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;'>+ patchfiles patch-src_luarocks_core_cfg.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|%PREFIX%|${prefix}|g;s|%CC%|${configure.cc}|g" ${worksrcpath}/src/luarocks/core/cfg.lua
</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_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.keepdirs ${destroot}${prefix}/share/luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [glob -tails -directory ${destroot}${prefix}/bin luarocks*] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/bin/${f} ${destroot}${prefix}/bin/${f}-${lua.branch}
</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;'>+ select.entries [list luarocks ${subport} ${subport}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes-append "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To make this the default LuaRocks (i.e., the version run by\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+the 'luarocks' or 'luarocks-admin' commands), run:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo port select --set luarocks ${subport}
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport eq $name} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Ensure the stub port does not do anything with distfiles—not
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if the port overrides distfiles, not if there's a post-extract
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # block (e.g. the github portgroup).
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fetch {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-checksum {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksum {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # set up lua-luarocks as a stub port that depends on the latest luaXY-luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib port:lua${default_version}-luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README"
</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;color:#808080;'>diff --git a/lua/lua-luarocks/files/lua51-luarocks b/lua/lua-luarocks/files/lua51-luarocks
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..aad41894cf9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-luarocks/files/lua51-luarocks
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-5.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-admin-5.1
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-luarocks/files/lua52-luarocks b/lua/lua-luarocks/files/lua52-luarocks
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5d80d09cac2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-luarocks/files/lua52-luarocks
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-5.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-admin-5.2
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-luarocks/files/lua53-luarocks b/lua/lua-luarocks/files/lua53-luarocks
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..42d8985afff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-luarocks/files/lua53-luarocks
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-5.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-admin-5.3
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/lua-luarocks/files/patch-src_luarocks_core_cfg.diff b/lua/lua-luarocks/files/patch-src_luarocks_core_cfg.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9d5410602c2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/lua-luarocks/files/patch-src_luarocks_core_cfg.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/luarocks/core/cfg.lua.orig 2021-04-13 21:53:35.000000000 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/luarocks/core/cfg.lua 2021-05-26 17:45:27.000000000 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -349,11 +349,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.static_lib_extension = "a"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.external_lib_extension = "so"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.obj_extension = "o"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- defaults.external_deps_dirs = { "/usr/local", "/usr", "/" }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ defaults.external_deps_dirs = { "%PREFIX%" }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.variables.CFLAGS = "-O2"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.cmake_generator = "Unix Makefiles"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- defaults.variables.CC = "gcc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- defaults.variables.LD = "gcc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ defaults.variables.CC = "%CC%"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ defaults.variables.LD = "%CC%"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.gcc_rpath = true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.variables.LIBFLAG = "-shared"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.variables.TEST = "test"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -448,8 +448,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.gcc_rpath = false
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- defaults.variables.CC = "env MACOSX_DEPLOYMENT_TARGET="..tostring(version).." gcc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- defaults.variables.LD = "env MACOSX_DEPLOYMENT_TARGET="..tostring(version).." gcc"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ defaults.variables.CC = "env MACOSX_DEPLOYMENT_TARGET="..tostring(version).." %CC%"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ defaults.variables.LD = "env MACOSX_DEPLOYMENT_TARGET="..tostring(version).." %CC%"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defaults.web_browser = "open"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/luarocks_select/Portfile b/lua/luarocks_select/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..224b34fdfe9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/luarocks_select/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</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 select 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name luarocks_select
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lua
</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;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Common files for selecting default LuaRocks version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description This port installs files that allow 'port select' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to create links to the preferred default version \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ of LuaRocks.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.macports.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+select.entries {luarocks base} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {luarocks none}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type none
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/luarocks_select/files/base b/lua/luarocks_select/files/base
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..99ef82ca357
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/luarocks_select/files/base
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+bin/luarocks-admin
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lua/luarocks_select/files/none b/lua/luarocks_select/files/none
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..0972f4d7bd9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lua/luarocks_select/files/none
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</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>