git: 03c4407ac980 - main - games/nbsdgames: update to 5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Feb 2022 09:17:39 UTC
The branch main has been updated by fernape:
URL: https://cgit.FreeBSD.org/ports/commit/?id=03c4407ac9801a6d5619036daa70ba71bca942f6
commit 03c4407ac9801a6d5619036daa70ba71bca942f6
Author: Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-02-08 07:02:18 +0000
Commit: Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-02-08 09:15:36 +0000
games/nbsdgames: update to 5
From ChangeLog: https://github.com/abakh/nbsdgames/releases/tag/v5
* icon and menu shortcut included
* tugow added
* menu added
* sudoku algorithm is replaced with a simple and fast algorithm that
generates good puzzles in little time
* miketron gameplay is improved upon
* RedSquare now fits in the screen
* command-line options are now in more conventional, getopt syntax
* minor bug fixes
PR: 261778
Reported by: fuz@fuz.su (maintainer)
---
games/nbsdgames/Makefile | 7 ++++++-
games/nbsdgames/distinfo | 6 +++---
games/nbsdgames/files/patch-Makefile | 18 ++++++++++--------
games/nbsdgames/pkg-plist | 5 +++++
4 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/games/nbsdgames/Makefile b/games/nbsdgames/Makefile
index e4f393633d90..0b813979c796 100644
--- a/games/nbsdgames/Makefile
+++ b/games/nbsdgames/Makefile
@@ -1,6 +1,6 @@
PORTNAME= nbsdgames
DISTVERSIONPREFIX= v
-DISTVERSION= 4.1.2
+DISTVERSION= 5
CATEGORIES= games
MAINTAINER= fuz@fuz.su
@@ -29,6 +29,7 @@ _GAMES= battleship \
miketron \
mines \
muncher \
+ nbsdgames \
pipes \
rabbithole \
redsquare \
@@ -36,8 +37,12 @@ _GAMES= battleship \
snakeduel \
sos \
sudoku \
+ tugow
post-install:
+ ${INSTALL_DATA} ${WRKSRC}/nbsdgames.desktop ${STAGEDIR}${PREFIX}/share/applications/
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
+ ${INSTALL_DATA} ${WRKSRC}/nbsdgames.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
.for game in ${_GAMES}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${game}
.endfor
diff --git a/games/nbsdgames/distinfo b/games/nbsdgames/distinfo
index ce609fb54b8d..31e47d0a287d 100644
--- a/games/nbsdgames/distinfo
+++ b/games/nbsdgames/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1626652244
-SHA256 (abakh-nbsdgames-v4.1.2_GH0.tar.gz) = b4ba777791274af7db13d2827b254cf998a757468e119c6ee106ccbeafcd04c1
-SIZE (abakh-nbsdgames-v4.1.2_GH0.tar.gz) = 49789
+TIMESTAMP = 1643821944
+SHA256 (abakh-nbsdgames-v5_GH0.tar.gz) = ca81d8b854a7bf9685bbc58aabc1a24cd617cadb7e9ddac64a513d2c8ddb2e6c
+SIZE (abakh-nbsdgames-v5_GH0.tar.gz) = 58893
diff --git a/games/nbsdgames/files/patch-Makefile b/games/nbsdgames/files/patch-Makefile
index 9d27d42dde0c..120948dc87bf 100644
--- a/games/nbsdgames/files/patch-Makefile
+++ b/games/nbsdgames/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig 2021-05-07 00:50:08 UTC
+--- Makefile.orig 2022-02-02 12:39:13 UTC
+++ Makefile
@@ -6,7 +6,7 @@
GAMES_DIR?=/usr/games
@@ -10,11 +10,11 @@
@@ -16,11 +16,11 @@ SCORE_FILES= pipes_scores jewels_scores miketron_score
- all: $(ALL)
+ all: $(ALL)
scorefiles:
- for sf in $(SCORE_FILES); do touch $(SCORES_DIR)/$$sf ; chmod 664 $(SCORES_DIR)/$$sf; chown :games $(SCORES_DIR)/$$sf ; done;
-- for game in $(ALL); do chown :games $(GAMES_DIR)/$$game; chmod g+s $(GAMES_DIR)/$$game ; done;
+- for game in $(ALL); do chown :games $(GAMES_DIR)/$$game; chmod g $(GAMES_DIR)/$$game ; done;
+ mkdir -p ${DESTDIR}${SCORES_DIR}
+ for sf in $(SCORE_FILES); do touch ${DESTDIR}$(SCORES_DIR)/$$sf.sample; done;
@@ -24,12 +24,14 @@
jewels: jewels.c config.h common.h
$(CC) jewels.c $(LDFLAGS) $(CFLAGS) -o ./jewels
sudoku: sudoku.c config.h
-@@ -60,6 +60,6 @@ clean:
- rm $(ALL)
+@@ -66,8 +66,8 @@ clean:
+ for game in $(ALL); do rm $$game; done;
uninstall:
- for game in $(ALL); do rm $(GAMES_DIR)/$$game; rm $(MAN_DIR)/$$game.6.gz done;
+ for game in $(ALL); do rm $(GAMES_DIR)/$$game; rm $(MAN_DIR)/$$game.6.gz ;done;
-install: $(ALL)
-- cp $(ALL) $(GAMES_DIR)
+- cp $(ALL) $(GAMES_DIR)
+install: $(ALL) manpages scorefiles
-+ cp $(ALL) ${DESTDIR}$(GAMES_DIR)
++ cp $(ALL) ${DESTDIR}$(GAMES_DIR)
+ test:
+ for game in $(ALL); do ./$$game ;done;
diff --git a/games/nbsdgames/pkg-plist b/games/nbsdgames/pkg-plist
index ac26f2075057..528cdc899286 100644
--- a/games/nbsdgames/pkg-plist
+++ b/games/nbsdgames/pkg-plist
@@ -8,6 +8,7 @@ bin/memoblocks
@(,games,2555) bin/miketron
bin/mines
@(,games,2555) bin/muncher
+bin/nbsdgames
@(,games,2555) bin/pipes
bin/rabbithole
bin/redsquare
@@ -15,6 +16,7 @@ bin/reversi
bin/snakeduel
bin/sos
bin/sudoku
+@(,games,2555) bin/tugow
@dir(,games) /var/games/nbsdgames
@sample(,games,0664) /var/games/nbsdgames/darrt_scores.sample
@sample(,games,0664) /var/games/nbsdgames/fisher_scores.sample
@@ -22,6 +24,9 @@ bin/sudoku
@sample(,games,0664) /var/games/nbsdgames/muncher_scores.sample
@sample(,games,0664) /var/games/nbsdgames/miketron_scores.sample
@sample(,games,0664) /var/games/nbsdgames/pipes_scores.sample
+@sample(,games,0664) /var/games/nbsdgames/tugow_scores.sample
+share/applications/nbsdgames.desktop
+share/icons/hicolor/scalable/apps/nbsdgames.svg
share/man/man6/battleship.6.gz
share/man/man6/checkers.6.gz
share/man/man6/darrt.6.gz