<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6b2161ead83627b7ece0cdef2ee5955bc43ec2a0">https://github.com/macports/macports-ports/commit/6b2161ead83627b7ece0cdef2ee5955bc43ec2a0</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 6b2161ead83 armagetronad: new port
</span>6b2161ead83 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6b2161ead83627b7ece0cdef2ee5955bc43ec2a0
</span>Author: Jason Liu <jasonliu--@users.noreply.github.com>
AuthorDate: Fri Jan 7 17:11:11 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> armagetronad: new port
</span>---
games/armagetronad/Portfile | 286 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 286 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/armagetronad/Portfile b/games/armagetronad/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e59c16e3ad4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/armagetronad/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,286 @@
</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 boost 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup ArmagetronAd armagetronad 0.2.9.1.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.suffix .tbz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set pretty_name "Armagetron Advanced"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# 'year_released' is the year that the tarball was published
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# on GitHub, not the year that we are currently in.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set year_released 2021
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories games
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers @jasonliu-- openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # v Note: https site has an expired certificate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://www.${name}.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description $pretty_name, a 3-D Tron-like light cycle game
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description $pretty_name is a 3-D snake game, based on the \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ light cycle sequence from the movie Tron. You can \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ play against AI opponents, against other human \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ users over the network, or a mixture of both.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-common {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description common files for the $pretty_name packages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \n\nThis package contains files that are common to \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ both the ${name} and ${name}-dedicated packages.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-dedicated {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description dedicated game server for $pretty_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long_description-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \n\nThis package installs the dedicated network \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ server for the $pretty_name game. It allows you to \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ host games that other online players can connect \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to, and play multi-player matches. You can also \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ host online multi-player matches directly from \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ inside the game, but the dedicated server allows \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ you to continue hosting matches while not actively \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ running the game.
</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;'>+distfiles ${distname}${extract.suffix}:${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ${distname}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 76eed9dd9fe6d888eba0fae67696040ec1eccb7d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 59b6c7c01ce3f8cca5437e33f974a637529541a11aa4f52c1a5c17499e26f6a1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1943758
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport ne "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ master_sites-append http://deb.debian.org/debian/pool/main/a/${name}:debian_pkg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles-append ${name}_${version}-2.debian.tar.xz:debian_pkg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums-append ${name}_${version}-2.debian.tar.xz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 cc1151617b372d61b6b02b647adb699fdfba3ea0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 28b778440ee2d7a8657fec2a8a468723017645a98259a7afac9fa67841a6c36f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 29852
</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;'>+depends_build-append port:autoconf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:automake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport eq "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set depends_type build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ boost.depends_type $depends_type
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set depends_type lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_$depends_type-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libxml2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport ne "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_$depends_type-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:freetype \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsdl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsdl_image \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libsdl_mixer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libpng
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport ne "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_run-append port:${name}-common
</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;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$subport ne "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/LIBS -framework GLU/a\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \\ LIBS=\"\$LIBS -framework OpenGL\"\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ " \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/configure.ac
</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;'>+ # Avoid "error: use of undeclared identifier 'SOCK_CLOEXEC'".
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # SOCK_CLOEXEC doesn't exist in macOS (Reference:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://www.mail-archive.com/libguestfs@redhat.com/msg22188.html)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {/socktype = socktype_/,/socktype |= SOCK_CLOEXEC/s/ndef WIN32/def SOCK_CLOEXEC/} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/network/nSocket.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Fix "Internal Error: Language British English not found."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Reference: https://forums3.armagetronad.net/viewtopic.php?t=24632
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/include definition for top source directory/a\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef MACOSX\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ " \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/tools/tDirectories.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$subport eq "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "/CONFIG=.*sysconfdir/a\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DATADIR=@aa_datadir@\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ " \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/batch/rcd_config.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach re [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "/CONFIG=.*sysconfdir/a\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \[ X\"\${DATADIR}\" = X\"\" \] && DATADIR=@aa_datadir@\\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ " \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s/\(--userdatadir\)/--datadir \${DATADIR} \\1/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E $re ${worksrcpath}/batch/serverstarter.in
</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;'>+ # Avoid runtime error "nohup: can't detach from console:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Inappropriate ioctl for device". (Reference:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://stackoverflow.com/questions/29112446/nohup-doesnt-work-with-os-x-yosmite-get-error-cant-detach-from-console-no-s)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace {s/nohup //} ${worksrcpath}/batch/rcd_startstop.in
</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;'>+configure.args-append --enable-music \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-useradd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-uninstall \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-games
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --disable-etc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport ne ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --disable-desktop
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {$subport eq "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --enable-dedicated
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --disable-initscripts
</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}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} >= 19} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set usershell /bin/zsh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set usershell /bin/bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ add_users ${name} group=${name} shell=$usershell \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ realname=[shellescape $pretty_name]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.create yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.autostart no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.name $subport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach action [list start stop restart] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.$action \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${prefix}/share/$subport/scripts/rcd_server $action"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set vardir ${prefix}/var
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.pidfile auto $vardir/run/$subport/${subport}.pid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.logfile $vardir/log/$subport/${name}.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ startupitem.logevents yes
</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;'>+ PortGroup app 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # For names with spaces, we have to expand the variable in order to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # use it for app.name. See: https://trac.macports.org/ticket/64326
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ app.name {*}$pretty_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ app.icon MacOS/${pretty_name}.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ app.retina yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ app.use_launch_script yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set app_contents ${applications_dir}/${pretty_name}.app/Contents
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set app_resources $app_contents/Resources
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/src/macosx/English.lproj \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}$app_resources/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set infoplist_strings \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $app_resources/English.lproj/InfoPlist.strings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${infoplist_strings}.in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${infoplist_strings}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s/@version@/${version}/g;s/@year@/$year_released/g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}$infoplist_strings
</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;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$subport eq "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set module_dir ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set module_dir $subport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set scriptsdir share/$module_dir/scripts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set rc_config etc/$module_dir/rc.config
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set settings_cfg etc/$module_dir/settings_dedicated.cfg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$subport eq "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {*}[glob -directory ${destroot}${prefix}/$scriptsdir \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ relocate sysinstall]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$subport eq "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Temporarily relocate the server scripts to a safe location,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # since the entire parent directory is about to be deleted
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # in the code below.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move {*}[glob -directory ${destroot}${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $scriptsdir $rc_config $settings_cfg] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {*}[glob -directory ${destroot}${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $scriptsdir $rc_config $settings_cfg]
</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;'>+ # Temporarily relocate desktop-related items to a safe location,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # since the entire parent directory is about to be deleted
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # in the code below.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/share/$subport/desktop \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/
</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 ne "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Delete files that are common to both the client and server
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {*}[glob -directory ${destroot}${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ etc/$subport share/$subport share/doc/$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;'>+ if {$subport eq "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s/\((CONFIG|DATADIR)=.*\)$subport/\\1${name}/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}[glob -directory ${destroot}${prefix}/scripts \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rcd_config serverstarter]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Restore the server scripts to their original location
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share/$subport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/scripts \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/$subport/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/etc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move {*}[glob -directory ${destroot}${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rc.config settings_dedicated.cfg] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {$subport eq ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Restore the desktop-related items to their original location
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share/$subport
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${destroot}${prefix}/desktop \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/$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;'>+ if {$subport eq "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete {*}[glob -directory ${destroot}${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bin/${name} share/${name}/desktop \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ share/${name}/language/update.py]
</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 ne "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$subport eq "${name}-dedicated"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach re [list \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|\(/etc\)|${prefix}\\1|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|etc/init.d/$subport|share/$subport/scripts/rcd_server|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|default/$subport|${name}/rc.config|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|/usr|${prefix}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s/${name}-common/${name}/" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E $re ${workpath}/debian/man/${subport}.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {$subport eq ${name}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|/usr\(/share/doc/\)${name}-common|${prefix}\\1${name}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/debian/man/${subport}.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 ${workpath}/debian/man/${subport}.6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/man/man6
</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 ne "${name}-common"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variant zthreads \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Build with support for zthreads multi-threading} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:zthread
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --disable-zthreadtest
</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>