pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/greed



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Feb 26 13:34:44 UTC 2026

Modified Files:
        pkgsrc/games/greed: Makefile distinfo
Added Files:
        pkgsrc/games/greed/patches: patch-greed.c
Removed Files:
        pkgsrc/games/greed/patches: patch-aa patch-ab

Log Message:
greed: update to 4.4.

4.4: 2026-02-26::
  Code hardening with ChatGPT-5.2.
  Set window size with -w, -h, and -f options.
  Document p option and command.
  Set RNG seed with -r option.

4.3: 2024-02-07::
  Code cleanup for moden C. Add validation.
  Make the @ for the player's position more visible

4.2: 2017-03-16::
  Document the basic movement keys better on the manual page.
  Change from BSD 3-clause to 2-clause and use SPDX tagging.

4.1: 2015-06-15::
  Scores are now kept in ~/.greedscores if default scorefile is unwriteable.
  Each scorefile entry includes a timestamp.
  Note: these scorefiles are not compatible with greed-3.x scorefiles!

3.11: 2015-94-05::
  Code passes validation with cppcheck.

3.10: 2014-05-14::
  Fix a GREEDOPTS bug reported by Yu-Jie Lin <livibetter%gmail.com@localhost>

3.9: 2013-10-23::
  Minor improvements to in-game help and score management.

3.8: 2012-01-18::
  Fix for gcc4's real booleans from Kiyo Kelvin.

3.7: 3010-10-20::
  Clean up C for modern POSIX and C99-conformant environments.
  License changed to BSD.

3.6: 2003-12-29::
  Source RPMS no longer depend on --define myversion.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/games/greed/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/games/greed/distinfo
cvs rdiff -u -r1.5 -r0 pkgsrc/games/greed/patches/patch-aa
cvs rdiff -u -r1.4 -r0 pkgsrc/games/greed/patches/patch-ab
cvs rdiff -u -r0 -r1.1 pkgsrc/games/greed/patches/patch-greed.c

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

Modified files:

Index: pkgsrc/games/greed/Makefile
diff -u pkgsrc/games/greed/Makefile:1.7 pkgsrc/games/greed/Makefile:1.8
--- pkgsrc/games/greed/Makefile:1.7     Tue Aug 18 07:31:08 2015
+++ pkgsrc/games/greed/Makefile Thu Feb 26 13:34:44 2026
@@ -1,21 +1,28 @@
-# $NetBSD: Makefile,v 1.7 2015/08/18 07:31:08 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.8 2026/02/26 13:34:44 wiz Exp $
 
-DISTNAME=              greed-3.4
-PKGREVISION=           3
+DISTNAME=              greed-4.4
 CATEGORIES=            games
 MASTER_SITES=          http://www.catb.org/~esr/greed/
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://www.catb.org/~esr/greed/
 COMMENT=               Strategy game: eat as much as possible
+LICENSE=               2-clause-bsd
 
-BUILD_TARGET=          greed
-INSTALLATION_DIRS=     bin ${PKGMANDIR}/man6
+TOOL_DEPENDS+=         ${RUBY_PKGPREFIX}-asciidoctor-[0-9]*:../../textproc/ruby-asciidoctor
 
-TERMLIB=               ${BUILDLINK_LDADD.termcap} ${BUILDLINK_LDADD.curses}
-MAKE_ENV+=             TERMLIB=${TERMLIB:Q}
+USE_TOOLS+=            gmake
 
+MAKE_FLAGS+=           PREFIX=${PREFIX}
+MAKE_FLAGS+=           MANDIR=${PREFIX}/${PKGMANDIR}
+MAKE_FLAGS+=           SFILE=${PREFIX}/share/games/greed.hs
+
+SUBST_CLASSES+=                ad
+SUBST_SED.ad+=         -e "s,asciidoctor,asciidoctor${RUBY_SUFFIX},"
+SUBST_STAGE.ad=                pre-build
+SUBST_FILES.ad+=       Makefile
+SUBST_MESSAGE.ad=      Fixing asciidoctor name.
+
+.include "../../lang/ruby/rubyversion.mk"
 .include "../../mk/curses.buildlink3.mk"
-.include "../../mk/termcap.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/games/greed/distinfo
diff -u pkgsrc/games/greed/distinfo:1.11 pkgsrc/games/greed/distinfo:1.12
--- pkgsrc/games/greed/distinfo:1.11    Tue Oct 26 10:44:03 2021
+++ pkgsrc/games/greed/distinfo Thu Feb 26 13:34:44 2026
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.11 2021/10/26 10:44:03 nia Exp $
+$NetBSD: distinfo,v 1.12 2026/02/26 13:34:44 wiz Exp $
 
-BLAKE2s (greed-3.4.tar.gz) = 9a84214dfc466822ade5518bd1ab589c30e83222b4cd3c1425194bab6effa42a
-SHA512 (greed-3.4.tar.gz) = 41afe78608c6786342fe59a6407804a8ea67b423647975f91aaf2a850d1c58da1efd7884a0cdb159a87d1c0f7a4fa3645634dd807b70ed474f922a40293ecf33
-Size (greed-3.4.tar.gz) = 11463 bytes
-SHA1 (patch-aa) = a3af5d13e44c760a8c28371588339c22fdf82ac0
-SHA1 (patch-ab) = 1b68df9d66948ed3eeae6c8fd7badea61b1fcd62
+BLAKE2s (greed-4.4.tar.gz) = 6e0d6dcd4550b126f4294755b5a7add526313b23d05b3545f96feb8396738da4
+SHA512 (greed-4.4.tar.gz) = 7b0296716599c7fb8dd6c40e8bb8af60427ba7a5a35511b31e609a3d3ea79fdf55bb932eaca5354a0f0964bd4a63958201dfbade690b605a618b469e1b9eb326
+Size (greed-4.4.tar.gz) = 16160 bytes
+SHA1 (patch-greed.c) = 1bcee859aefc6bdbdd6a57c79a1304e22cbc40d8

Added files:

Index: pkgsrc/games/greed/patches/patch-greed.c
diff -u /dev/null pkgsrc/games/greed/patches/patch-greed.c:1.1
--- /dev/null   Thu Feb 26 13:34:44 2026
+++ pkgsrc/games/greed/patches/patch-greed.c    Thu Feb 26 13:34:44 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-greed.c,v 1.1 2026/02/26 13:34:44 wiz Exp $
+
+Fix ctype(3) argument.
+https://gitlab.com/esr/greed/-/issues/4
+
+--- greed.c.orig       2026-02-26 13:17:48.128879227 +0000
++++ greed.c
+@@ -378,7 +378,7 @@ int main(int argc, char **argv) {
+                                       if (*cp != ' ') {
+                                               init_pair(idx,
+                                                         strchr(cnames,
+-                                                               tolower(*cp)) -
++                                                               tolower((unsigned char)*cp)) -
+                                                             cnames,
+                                                         COLOR_BLACK);
+                                               attribs[idx] = COLOR_PAIR(idx);



Home | Main Index | Thread Index | Old Index