<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e46198432877ac4c928e4601bc231a4b20ae1661">https://github.com/macports/macports-ports/commit/e46198432877ac4c928e4601bc231a4b20ae1661</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 e461984 nethack: open maintainer; reduce main/subport redundancy
</span>e461984 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e46198432877ac4c928e4601bc231a4b20ae1661
</span>Author: Justin Flude <jflude@shutterstock.com>
AuthorDate: Fri Mar 15 15:49:47 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> nethack: open maintainer; reduce main/subport redundancy
</span>---
games/nethack/Portfile | 70 +++++++++++++++++++-------------------------------
1 file changed, 26 insertions(+), 44 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/nethack/Portfile b/games/nethack/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f40b9af..39da13b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/nethack/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/nethack/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,9 @@ version 3.6.1
</span> categories games
platforms darwin
license Copyleft
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers @Nax
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers @Nax \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {@jflude hotmail.com:justin_flude} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span> description Classic dungeon adventure game.
long_description NetHack is a single-player, display-oriented Dungeons & \
Dragons(tm)-like game, in development since 1987. It runs on a wide \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +38,10 @@ post-patch {
</span> reinplace "s|__PREFIX__|${prefix}|" \
"${worksrcpath}/sys/unix/Makefile.doc" \
"${worksrcpath}/sys/unix/hints/macosx10.10"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__PREFIX__|${prefix}|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${worksrcpath}/sys/unix/Makefile.doc" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${worksrcpath}/sys/unix/Makefile.top"
</span> }
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,26 +64,28 @@ pre-destroot {
</span> destroot.target all install manpages
destroot.keepdirs "${destroot}${prefix}/var/games/nethack/save/"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${subport} eq "nethack"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# We want to avoid overwriting any existing game-state files. So after
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# destroot we rename the new versions to something safe and after
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# activation only install them if old versions do not already exist.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} eq "nethack"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set state_files { logfile record sysconf }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set state_dir ${prefix}/var/games/nethack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set state_files { logfile record }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set state_dir ${prefix}/share/nethackdir
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Prevent existing preferences files being overwritten.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f { logfile record sysconf } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file rename ${destroot}${prefix}/var/games/nethack/${f} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/var/games/nethack/${f}.dist
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|${destroot}||" "${destroot}${prefix}/bin/${subport}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f ${state_files} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file rename ${destroot}${state_dir}/${f} ${destroot}${state_dir}/${f}.dist
</span> }
}
post-activate {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${subport} eq "nethack"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Make initially-missing preferences files from earlier versions.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f { logfile record sysconf } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![file exists ${prefix}/var/games/nethack/${f}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${prefix}/var/games/nethack/${f}.dist \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/var/games/nethack/${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f ${state_files} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![file exists ${state_dir}/${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${state_dir}/${f}.dist ${state_dir}/${f}
</span> }
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,12 +121,6 @@ subport nethack343 {
</span> patch-sys__unix__Makefile.top.diff \
patch-win__tty__termcap.c.diff
<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}|" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "${worksrcpath}/sys/unix/Makefile.doc" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "${worksrcpath}/sys/unix/Makefile.top"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.dir ${worksrcpath}/sys/unix
configure.cmd /bin/sh
configure.pre_args setup.sh
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -131,33 +133,13 @@ subport nethack343 {
</span> destroot.target install manpages
destroot.keepdirs "${destroot}${prefix}/share/nethackdir/save/"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- post-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|${destroot}||" "${destroot}${prefix}/bin/nethack343"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Don't overwrite existing preference files
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f { logfile record } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file rename ${destroot}${prefix}/share/nethackdir/${f} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/share/nethackdir/${f}.dist
</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;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- post-activate {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Make sure initial preference files exist
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach f { logfile record } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![file exists ${prefix}/share/nethackdir/${f}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${prefix}/share/nethackdir/${f}.dist \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${prefix}/share/nethackdir/${f}
</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;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> variant autopickup_exceptions description \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- { Automatically pick up things onto which you move } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ { Control which things to automatically pick up } {
</span> patchfiles-append patch-include__config.h.diff
}
variant menucolors description \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- { Allows the user to define in what color menus are shown } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ { Allow customization of the color of menus } {
</span> patch_sites-append http://bilious.alt.org/~paxed/nethack
patchfiles-append nh343-menucolor.diff
checksums-append nh343-menucolor.diff md5 ade00f9cb51f1b0140557d329d56844c
</pre><pre style='margin:0'>
</pre>