git: 4c3b98b490a4 - main - games/dobutsu: Update to 4

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 20 Oct 2022 22:17:12 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c3b98b490a408fa2c08b2d9cff9e22a0a15649d

commit 4c3b98b490a408fa2c08b2d9cff9e22a0a15649d
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-20 22:15:00 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-10-20 22:16:58 +0000

    games/dobutsu: Update to 4
    
    ChangeLog:      https://github.com/clausecker/dobutsu/blob/master/CHANGES
    PR:             267226
---
 games/dobutsu/Makefile  | 9 ++++++---
 games/dobutsu/distinfo  | 6 +++---
 games/dobutsu/pkg-plist | 1 +
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/games/dobutsu/Makefile b/games/dobutsu/Makefile
index d9ec0fcdd2a0..62cc444e9a1b 100644
--- a/games/dobutsu/Makefile
+++ b/games/dobutsu/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	dobutsu
-DISTVERSION=	3
+DISTVERSION=	4
 CATEGORIES=	games
-MASTER_SITES=	http://fuz.su/~fuz/dobutsu/
+MASTER_SITES=	http://fuz.su/pub/dobutsu/
 
 MAINTAINER=	fuz@fuz.su
 COMMENT=	Tablebase and Engine for Dobutsu Shogi
@@ -18,9 +18,12 @@ MAKE_ARGS=	CC="${CC}" \
 		PREFIX="${PREFIX}" \
 		RLCFLAGS= \
 		STAGING=${STAGEDIR}
-CFLAGS=		-DNDEBUG
+CFLAGS+=	${WITH_DEBUG:D:U-DNDEBUG}
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/dobutsu
 
+do-test:
+	${WRKSRC}/validatetb ${WRKSRC}/dobutsu.tb.xz
+
 .include <bsd.port.mk>
diff --git a/games/dobutsu/distinfo b/games/dobutsu/distinfo
index 7728aba44f87..cd2576403a71 100644
--- a/games/dobutsu/distinfo
+++ b/games/dobutsu/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1642684426
-SHA256 (dobutsu-3.tar.xz) = 9fab93ee8814cdf5671636fb8831ce3bfb45afb8061aff17d09dc1adab3efdfb
-SIZE (dobutsu-3.tar.xz) = 40248
+TIMESTAMP = 1666101552
+SHA256 (dobutsu-4.tar.xz) = a3160ac0753255758b173c5d96e903dde93b35d9cc71b0afd1923db7167eea1f
+SIZE (dobutsu-4.tar.xz) = 40428
diff --git a/games/dobutsu/pkg-plist b/games/dobutsu/pkg-plist
index 7a772f0c66df..d4d49b564cb5 100644
--- a/games/dobutsu/pkg-plist
+++ b/games/dobutsu/pkg-plist
@@ -2,6 +2,7 @@ bin/dobutsu
 libexec/dobutsu
 %%DATADIR%%/dobutsu.tb.xz
 share/locale/de/LC_MESSAGES/dobutsu.mo
+share/locale/en/LC_MESSAGES/dobutsu.mo
 share/locale/lv/LC_MESSAGES/dobutsu.mo
 share/man/de.UTF-8/man6/dobutsu.6.gz
 share/man/man6/dobutsu.6.gz