pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games/not_tetris



Module Name:    pkgsrc
Committed By:   maya
Date:           Fri Jan 19 02:34:30 UTC 2024

Modified Files:
        pkgsrc/games/not_tetris: Makefile distinfo
Added Files:
        pkgsrc/games/not_tetris/patches: patch-not__tetris-2.0_menu.lua

Log Message:
not_tetris: patch to avoid startup crash

plus a whole bunch of logic to extract & compress the .love file again

bump pkgrevision


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/games/not_tetris/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/games/not_tetris/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/games/not_tetris/patches/patch-not__tetris-2.0_menu.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/not_tetris/Makefile
diff -u pkgsrc/games/not_tetris/Makefile:1.2 pkgsrc/games/not_tetris/Makefile:1.3
--- pkgsrc/games/not_tetris/Makefile:1.2        Sun Jan 26 17:31:17 2020
+++ pkgsrc/games/not_tetris/Makefile    Fri Jan 19 02:34:29 2024
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2020/01/26 17:31:17 rillig Exp $
+# $NetBSD: Makefile,v 1.3 2024/01/19 02:34:29 maya Exp $
 
 DISTNAME=      nottetris2-source
 PKGNAME=       not_tetris-2.0
+PKGREVISION=   1
 CATEGORIES=    games
 MASTER_SITES=  http://stabyourself.net/dl.php?file=nottetris2/
 DIST_SUBDIR=   ${PKGNAME_NOREV}
@@ -15,6 +16,13 @@ LICENSE=     public-domain # Specified in ht
 WRKSRC=                ${WRKDIR}
 USE_LANGUAGES= # none
 
+post-extract:
+       @${MKDIR} ${WRKDIR}/${LOVE_GAME}_archive
+       (cd ${WRKDIR}/${LOVE_GAME}_archive && ${UNZIP_CMD} -qo ${WRKDIR}/*.love)
+
+pre-install:
+       (cd ${WRKDIR} && ${UNZIP_CMD} ${LOVE_DATA} ${WRKDIR}/${LOVE_GAME}_archive)
+
 LOVE_GAME=     not_tetris
 LOVE_DATA=     "Not Tetris 2.love"
 LOVE_VERSION=  0.7

Index: pkgsrc/games/not_tetris/distinfo
diff -u pkgsrc/games/not_tetris/distinfo:1.3 pkgsrc/games/not_tetris/distinfo:1.4
--- pkgsrc/games/not_tetris/distinfo:1.3        Tue Oct 26 10:44:17 2021
+++ pkgsrc/games/not_tetris/distinfo    Fri Jan 19 02:34:29 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:44:17 nia Exp $
+$NetBSD: distinfo,v 1.4 2024/01/19 02:34:29 maya Exp $
 
 BLAKE2s (not_tetris-2.0/nottetris2-source.zip) = 4c1e565b115c20f2f803c5004771103e607290c6aff91bcd2ebbcbeceb64fd92
 SHA512 (not_tetris-2.0/nottetris2-source.zip) = 475061353217f99e0dd35a34097b6b35275a350ab112bfd27d85ea5fe32434c6b4ed107056af5a243d06d2b5988d2bf73776c01077ba2a17e223e8bd0778b563
 Size (not_tetris-2.0/nottetris2-source.zip) = 2773694 bytes
+SHA1 (patch-not__tetris-2.0_menu.lua) = 4d078116d721958ab46dbb501be69e2e95d1a78d

Added files:

Index: pkgsrc/games/not_tetris/patches/patch-not__tetris-2.0_menu.lua
diff -u /dev/null pkgsrc/games/not_tetris/patches/patch-not__tetris-2.0_menu.lua:1.1
--- /dev/null   Fri Jan 19 02:34:30 2024
+++ pkgsrc/games/not_tetris/patches/patch-not__tetris-2.0_menu.lua      Fri Jan 19 02:34:30 2024
@@ -0,0 +1,19 @@
+$NetBSD: patch-not__tetris-2.0_menu.lua,v 1.1 2024/01/19 02:34:30 maya Exp $
+
+Avoid uninitialized oldtime
+Prevent startup crash
+
+--- not_tetris_archive/menu.lua.orig   2024-01-19 02:26:25.027517359 +0000
++++ not_tetris_archive/menu.lua
+@@ -1,3 +1,4 @@
++oldtime = 0
+ function menu_load()
+       gamestate = "logo"
+       creditstext = {
+@@ -284,4 +285,4 @@ function menu_update(dt)
+                       end
+               end
+       end
+-end
+\ No newline at end of file
++end



Home | Main Index | Thread Index | Old Index