Index: head/games/robotfindskitten/Makefile =================================================================== --- head/games/robotfindskitten/Makefile (revision 538634) +++ head/games/robotfindskitten/Makefile (revision 538635) @@ -1,56 +1,57 @@ # Created by: Ceri Davies (ceri@FreeBSD.org) # $FreeBSD$ PORTNAME= robotfindskitten -PORTVERSION= 2.7182818.701 -PORTREVISION= 1 +PORTVERSION= 2.8284271.702 PORTEPOCH= 1 CATEGORIES= games -MASTER_SITES= http://robotfindskitten.org/download/POSIX/ MAINTAINER= skreuzer@FreeBSD.org COMMENT= Yet another zen simulation LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -USES= ncurses +USES= autoreconf libtool ncurses GNU_CONFIGURE= YES + +USE_GITHUB= yes +GH_ACCOUNT= robotfindskitten OPTIONS_DEFINE= EXTRANKI MEGAHYPERDEATH EXTRANKI_DESC= Install additional Non Kitten Items MEGAHYPERDEATH_DESC= Add the possibility of MEGA. HYPER. DEATH! OPTIONS_DEFAULT= EXTRANKI .include .if ${PORT_OPTIONS:MEXTRANKI} SUB_FILES= freebsd.nki nethack.nki PLIST_SUB+= EXTRANKI="" .else PLIST_SUB+= EXTRANKI="@comment " .endif .if ${PORT_OPTIONS:MMEGAHYPERDEATH} EXTRA_PATCHES+= ${FILESDIR}/extrapatch-megahyperdeath .endif post-patch: @${REINPLACE_CMD} -e 's,/usr/share/games/robotfindskitten,${DATADIR},' \ ${WRKSRC}/doc/robotfindskitten.6 do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/src/robotfindskitten ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/nki/vanilla.nki ${STAGEDIR}${DATADIR} ${INSTALL_MAN} ${WRKSRC}/doc/robotfindskitten.6 ${STAGEDIR}${MANPREFIX}/man/man6 .if ${PORT_OPTIONS:MEXTRANKI} .for NKI in ${SUB_FILES} ${INSTALL_DATA} ${WRKDIR}/${NKI} ${STAGEDIR}${DATADIR} .endfor .endif .include Index: head/games/robotfindskitten/distinfo =================================================================== --- head/games/robotfindskitten/distinfo (revision 538634) +++ head/games/robotfindskitten/distinfo (revision 538635) @@ -1,2 +1,3 @@ -SHA256 (robotfindskitten-2.7182818.701.tar.gz) = 7749a370796fd23e3b306b00de5f7fb7997a35fef30e3910ff159448c932d719 -SIZE (robotfindskitten-2.7182818.701.tar.gz) = 437810 +TIMESTAMP = 1591991760 +SHA256 (robotfindskitten-robotfindskitten-2.8284271.702_GH0.tar.gz) = bc199c96a0a2ef79621b548d0f223bd8dce5cff798b7277708e31037e32df9fb +SIZE (robotfindskitten-robotfindskitten-2.8284271.702_GH0.tar.gz) = 79605 Index: head/games/robotfindskitten/files/patch-src-Makefile.in =================================================================== --- head/games/robotfindskitten/files/patch-src-Makefile.in (revision 538634) +++ head/games/robotfindskitten/files/patch-src-Makefile.in (nonexistent) @@ -1,13 +0,0 @@ ---- src.orig/Makefile.in 2012-12-21 14:56:49.000000000 -0500 -+++ src/Makefile.in 2013-01-03 21:15:59.000000000 -0500 -@@ -199,8 +199,8 @@ - top_build_prefix = @top_build_prefix@ - top_builddir = @top_builddir@ - top_srcdir = @top_srcdir@ --execgamesdir = $(prefix)/games --AM_CPPFLAGS = -DSYSTEM_NKI_DIR=\"$(datadir)/games/robotfindskitten\" -+execgamesdir = $(prefix)/bin -+AM_CPPFLAGS = -DSYSTEM_NKI_DIR=\"$(datadir)/robotfindskitten\" - robotfindskitten_SOURCES = robotfindskitten.c - SPLINT_SUPPRESSIONS = +charintliteral +charindex - all: all-am Property changes on: head/games/robotfindskitten/files/patch-src-Makefile.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/robotfindskitten/files/extrapatch-megahyperdeath =================================================================== --- head/games/robotfindskitten/files/extrapatch-megahyperdeath (revision 538634) +++ head/games/robotfindskitten/files/extrapatch-megahyperdeath (revision 538635) @@ -1,59 +1,57 @@ ---- src/robotfindskitten.c.orig 2012-11-27 07:41:21.000000000 +0000 -+++ src/robotfindskitten.c 2013-02-07 14:44:42.000000000 +0000 -@@ -119,6 +119,9 @@ +--- src/robotfindskitten.c.orig 2020-03-01 17:25:06 UTC ++++ src/robotfindskitten.c +@@ -119,6 +119,10 @@ #define KITTEN 1 #define BOGUS 2 +/* Finish him! */ +#define FATALITIES (sizeof fatalities / sizeof (char*)) + ++ typedef struct { int x; int y; -@@ -139,6 +142,17 @@ +@@ -139,6 +143,17 @@ typedef struct { char **messages; } game_state; +static char* fatalities[] = +{ + "Kitten jumps out of nowhere, pulls out a switchblade, and stabs you.", + "Bruce Willis swears at you, pulls out a Zippo(TM), and lights you on fire.", + "Your Robot armor is no match against your opponent's +2 Kitten.", + "Terrorists have planted a dirty bomb inside kitten! Run for your life!", + "You have come to the end of this Choose Your Own Adventure.", + "Mario Balotelli has ripped the still-beating heart out of this zen simulation.", + "Your generation has no attention span anymore, so you get bored and leave." +}; + - /* global state */ - static game_state state; + char *nki_file; -@@ -547,6 +561,8 @@ + /* global state */ +@@ -556,6 +571,8 @@ static void instructions(void) { "Robot must touch items to determine if they are kitten or not. The game\n"\ "ends when robotfindskitten. Alternatively, you may end the game by hitting\n" "the q key or a good old-fashioned Ctrl-C.\n\n"\ -+"This version contains MegaHyperDeath(TM) technology. Every time you find\n"\ -+"something that is not kitten, you have a 1 in 10 chance of dying.\n\n"\ ++"This version contains MegaHyperDeath(TM) technology. Every time you find\n"\ ++"a kitten, you have a 1 in 10 chance of dying.\n\n"\ "See the documentation for more information.\n\n"\ "Press any key to start.\n" ); -@@ -710,8 +726,17 @@ +@@ -719,7 +736,15 @@ static void main_loop(void) { /* nothing happened */ break; case BKITTEN: - play_animation ( fromright ); -- finish ( 0 ); + if ((rand() % 10) == 0) { /*RFK is boring, let's add explosions!*/ + move ( 0, 0 ); + addstr ( fatalities[rand() % FATALITIES] ); + move ( 1, 0 ); + addstr("You are dead. Sorry it didn't work out. Please insert $0.25 to continue."); + refresh(); -+ finish ( 0 ); + } else { + play_animation ( fromright ); -+ finish ( 0 ); + } + finish ( 0 ); break; case BBOGUS: - message ( state.messages[bnum] ); Index: head/games/robotfindskitten/files/patch-doc_robotfindskitten.6 =================================================================== --- head/games/robotfindskitten/files/patch-doc_robotfindskitten.6 (nonexistent) +++ head/games/robotfindskitten/files/patch-doc_robotfindskitten.6 (revision 538635) @@ -0,0 +1,24 @@ +--- doc/robotfindskitten.6.orig 2020-06-13 01:48:25 UTC ++++ doc/robotfindskitten.6 +@@ -31,10 +31,10 @@ at any time to quit. A good old-fashioned Ctrl-C quit + .\" + .SH OPTIONS + You can optionally specify the number of Non Kitten Items to use with +-the -s option. The default is 20. ++the -n option. The default is 20. + + You can set the random-number seed, normally initialized from the +-system clock, with the -t option. This may be useful for debugging. ++system clock, with the -s option. This may be useful for debugging. + + You can supply an arbitrary file from which to draw NKIs using the -f option. + .\" +@@ -72,7 +72,7 @@ done, when the grey box on wheels was complete and whe + I, knew what had to be done, I felt deep sympathy for the machine. For I + had not destroyed the phantom, but merely exorcized it into another + body. The robot knew not why this task had to be performed, for I could +-not imbue it with knowledge I did not myself posess. And at the same ++not imbue it with knowledge I did not myself possess. And at the same + time, I felt a sweeping sense of relief sweep over me, that somehow, the + dream that had driven me for my entire life had come one step closer to + fruition. Property changes on: head/games/robotfindskitten/files/patch-doc_robotfindskitten.6 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/robotfindskitten/files/patch-nki_Makefile.am =================================================================== --- head/games/robotfindskitten/files/patch-nki_Makefile.am (nonexistent) +++ head/games/robotfindskitten/files/patch-nki_Makefile.am (revision 538635) @@ -0,0 +1,7 @@ +--- nki/Makefile.am.orig 2020-06-12 22:14:15 UTC ++++ nki/Makefile.am +@@ -1,3 +1,3 @@ +-nkidir = $(datadir)/games/robotfindskitten ++nkidir = $(datadir)/robotfindskitten + nki_DATA = vanilla.nki + EXTRA_DIST=$(nki_DATA) Property changes on: head/games/robotfindskitten/files/patch-nki_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/robotfindskitten/files/patch-src_Makefile.am =================================================================== --- head/games/robotfindskitten/files/patch-src_Makefile.am (nonexistent) +++ head/games/robotfindskitten/files/patch-src_Makefile.am (revision 538635) @@ -0,0 +1,12 @@ +--- src/Makefile.am.orig 2020-06-12 22:12:10 UTC ++++ src/Makefile.am +@@ -1,7 +1,7 @@ +-execgamesdir= $(prefix)/games ++execgamesdir= $(prefix)/bin + execgames_PROGRAMS=robotfindskitten + +-AM_CPPFLAGS = -DSYSTEM_NKI_DIR=\"$(datadir)/games/robotfindskitten\" ++AM_CPPFLAGS = -DSYSTEM_NKI_DIR=\"$(datadir)/robotfindskitten\" + + robotfindskitten_SOURCES= robotfindskitten.c + #robotfindskitten_LDADD= -lncurses Property changes on: head/games/robotfindskitten/files/patch-src_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property