git: 2b9e7c186a2e - main - games/sokoban: install xsokoban's screens

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 14 Nov 2024 08:44:29 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b9e7c186a2ecaa18da974741cd9404ba1f4fa61

commit 2b9e7c186a2ecaa18da974741cd9404ba1f4fa61
Author:     mew14930xvi <mew14930xvi@inbox.lv>
AuthorDate: 2024-11-13 12:09:00 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-11-14 08:43:28 +0000

    games/sokoban: install xsokoban's screens
    
     - maintainership goes to submitter
    
    PR:             281881
---
 games/sokoban/Makefile              | 24 ++++++++++++----------
 games/sokoban/distinfo              |  3 +++
 games/sokoban/files/patch-sokoban.h |  9 +++++++++
 games/sokoban/pkg-descr             |  1 +
 games/sokoban/pkg-plist             | 40 +++++++++++++++++++++++++++++++++++++
 5 files changed, 66 insertions(+), 11 deletions(-)

diff --git a/games/sokoban/Makefile b/games/sokoban/Makefile
index 23d2dcef432c..96cfd72e8613 100644
--- a/games/sokoban/Makefile
+++ b/games/sokoban/Makefile
@@ -1,21 +1,23 @@
-PORTNAME=		sokoban
-PORTVERSION=		1.0
-PORTREVISION=		2
-CATEGORIES=		games
-MASTER_SITES=		SUNSITE/games/strategy
-DISTNAME=		${PORTNAME}-src
+PORTNAME=	sokoban
+DISTVERSION=	1.0
+PORTREVISION=	3
+CATEGORIES=	games
+MASTER_SITES=	SUNSITE/games/strategy:src \
+		http://www.cs.cornell.edu/andru/release/:x
+DISTFILES=	${PORTNAME}-src.tar.gz:src xsokoban-3.3c.tar.gz:x
 
-MAINTAINER=		ports@FreeBSD.org
-COMMENT=		Logical game: problems with packets in cave
+MAINTAINER=	mew14930xvi@inbox.lv
+COMMENT=	Logical game: problems with packets in cave
 
-USES=			ncurses
-WRKSRC=			${WRKDIR}/sokoban
+USES=		ncurses
 ALL_TARGET=
+WRKSRC=		${WRKDIR}/sokoban
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/sokoban ${STAGEDIR}${PREFIX}/bin/sokoban
 	@${MKDIR} ${STAGEDIR}${DATADIR}/screens
-	${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${DATADIR}/screens
+	${INSTALL_DATA} ${WRKSRC}/screens/sokoban.help \
+		${WRKDIR}/xsokoban/screens/* ${STAGEDIR}${DATADIR}/screens
 	@${MKDIR} ${STAGEDIR}/var/games/sokoban
 	truncate -s 512 ${STAGEDIR}/var/games/sokoban/scores.sample
 
diff --git a/games/sokoban/distinfo b/games/sokoban/distinfo
index 6173ee5b3133..14d2147cab70 100644
--- a/games/sokoban/distinfo
+++ b/games/sokoban/distinfo
@@ -1,2 +1,5 @@
+TIMESTAMP = 1731471504
 SHA256 (sokoban-src.tar.gz) = f75d4e89b11cb4d5e944b902e2f333111c7027435670af9ee5d0a889a8c665f3
 SIZE (sokoban-src.tar.gz) = 16287
+SHA256 (xsokoban-3.3c.tar.gz) = 292fa7968e75ebe40bc71470f7dbaccb053a9f6b34a9d0038a372d213cbad400
+SIZE (xsokoban-3.3c.tar.gz) = 98961
diff --git a/games/sokoban/files/patch-sokoban.h b/games/sokoban/files/patch-sokoban.h
index a5e9e1a15dba..e6e0c19c327f 100644
--- a/games/sokoban/files/patch-sokoban.h
+++ b/games/sokoban/files/patch-sokoban.h
@@ -24,3 +24,12 @@
  /**/
  /* MAXUSERNAME: defines the maximum length of a system's user name */
  /**/
+@@ -32,7 +42,7 @@
+ /**/
+ /* MAXSCOREENTRIES: defines the maximum numner of entries in the scoretable */
+ /**/
+-#define MAXSCOREENTRIES	50
++#define MAXSCOREENTRIES	90
+
+ /**/
+ /* SUPERUSER: defines the name of the game superuser */
diff --git a/games/sokoban/pkg-descr b/games/sokoban/pkg-descr
index e8ac4d15f197..3e891b89070c 100644
--- a/games/sokoban/pkg-descr
+++ b/games/sokoban/pkg-descr
@@ -2,3 +2,4 @@ This is port of SOKOBAN - logical game, where U must solve problems
 with pushing packets in labirints.
 The problem is to push packets to saving positions by moving around
 and pushing only one packet at a time if possible.
+This port installs the screens added by xsokoban.
diff --git a/games/sokoban/pkg-plist b/games/sokoban/pkg-plist
index a6ddd19a3fea..523b877ab157 100644
--- a/games/sokoban/pkg-plist
+++ b/games/sokoban/pkg-plist
@@ -52,3 +52,43 @@
 %%DATADIR%%/screens/screen.48
 %%DATADIR%%/screens/screen.49
 %%DATADIR%%/screens/screen.50
+%%DATADIR%%/screens/screen.51
+%%DATADIR%%/screens/screen.52
+%%DATADIR%%/screens/screen.53
+%%DATADIR%%/screens/screen.54
+%%DATADIR%%/screens/screen.55
+%%DATADIR%%/screens/screen.56
+%%DATADIR%%/screens/screen.57
+%%DATADIR%%/screens/screen.58
+%%DATADIR%%/screens/screen.59
+%%DATADIR%%/screens/screen.60
+%%DATADIR%%/screens/screen.61
+%%DATADIR%%/screens/screen.62
+%%DATADIR%%/screens/screen.63
+%%DATADIR%%/screens/screen.64
+%%DATADIR%%/screens/screen.65
+%%DATADIR%%/screens/screen.66
+%%DATADIR%%/screens/screen.67
+%%DATADIR%%/screens/screen.68
+%%DATADIR%%/screens/screen.69
+%%DATADIR%%/screens/screen.70
+%%DATADIR%%/screens/screen.71
+%%DATADIR%%/screens/screen.72
+%%DATADIR%%/screens/screen.73
+%%DATADIR%%/screens/screen.74
+%%DATADIR%%/screens/screen.75
+%%DATADIR%%/screens/screen.76
+%%DATADIR%%/screens/screen.77
+%%DATADIR%%/screens/screen.78
+%%DATADIR%%/screens/screen.79
+%%DATADIR%%/screens/screen.80
+%%DATADIR%%/screens/screen.81
+%%DATADIR%%/screens/screen.82
+%%DATADIR%%/screens/screen.83
+%%DATADIR%%/screens/screen.84
+%%DATADIR%%/screens/screen.85
+%%DATADIR%%/screens/screen.86
+%%DATADIR%%/screens/screen.87
+%%DATADIR%%/screens/screen.88
+%%DATADIR%%/screens/screen.89
+%%DATADIR%%/screens/screen.90