git: 3f13bdd46363 - main - games/gbrainy: Update to 2.4.5

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 03 Sep 2022 14:27:00 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f13bdd463630c08626ee1eae13183651b03ad71

commit 3f13bdd463630c08626ee1eae13183651b03ad71
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-03 11:41:35 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-03 14:26:45 +0000

    games/gbrainy: Update to 2.4.5
    
     - add NLS knob
    
    ChangeLog:      https://gitlab.gnome.org/GNOME/gbrainy/-/blob/master/NEWS
---
 games/gbrainy/Makefile                             |  9 ++-
 games/gbrainy/distinfo                             |  6 +-
 games/gbrainy/files/NLS_OFF-patch-Makefile.in      | 13 +++
 ...{patch-Makefile.in => NLS_ON-patch-Makefile.in} |  4 +-
 games/gbrainy/pkg-plist                            | 94 +++++++++++-----------
 5 files changed, 72 insertions(+), 54 deletions(-)

diff --git a/games/gbrainy/Makefile b/games/gbrainy/Makefile
index 18801757f8f8..b5551cc91fd3 100644
--- a/games/gbrainy/Makefile
+++ b/games/gbrainy/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	gbrainy
-DISTVERSION=	2.4.4
+DISTVERSION=	2.4.5
 PORTEPOCH=	2
 CATEGORIES=	games
 MASTER_SITES=	https://gent.softcatala.org/jmas/gbrainy/
@@ -20,7 +20,12 @@ USE_GNOME=	intltool
 SHEBANG_FILES=	src/Clients/Classical/gbrainy.in
 
 GNU_CONFIGURE=	yes
-
 MAKE_ENV+=	MONO_REGISTRY_PATH=${WRKDIR}
 
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_EXTRA_PATCHES=	${PATCHDIR}/NLS_ON-patch-Makefile.in
+NLS_EXTRA_PATCHES_OFF=	${PATCHDIR}/NLS_OFF-patch-Makefile.in
+
 .include <bsd.port.mk>
diff --git a/games/gbrainy/distinfo b/games/gbrainy/distinfo
index ae946e1a4641..848347ab8917 100644
--- a/games/gbrainy/distinfo
+++ b/games/gbrainy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1642859065
-SHA256 (gbrainy-2.4.4.tar.gz) = 1f67c220dd04c332260d810c25cb94384cca4547bcf933db3997ac69667457e9
-SIZE (gbrainy-2.4.4.tar.gz) = 3030763
+TIMESTAMP = 1662143020
+SHA256 (gbrainy-2.4.5.tar.gz) = 575207bbdddcdae959efa99e45f27f7d135479e128a7be8cdff3284d361e0b7d
+SIZE (gbrainy-2.4.5.tar.gz) = 3041816
diff --git a/games/gbrainy/files/NLS_OFF-patch-Makefile.in b/games/gbrainy/files/NLS_OFF-patch-Makefile.in
new file mode 100644
index 000000000000..f4eb48e8942b
--- /dev/null
+++ b/games/gbrainy/files/NLS_OFF-patch-Makefile.in
@@ -0,0 +1,13 @@
+--- Makefile.in.orig	2022-09-02 19:38:04 UTC
++++ Makefile.in
+@@ -383,9 +383,7 @@ SUBDIRS = \
+ 	src		\
+ 	tests		\
+ 	data		\
+-	tools		\
+-	po		\
+-	help
++	tools
+ 
+ CLEANFILES = \
+ 	intltool-extract	\
diff --git a/games/gbrainy/files/patch-Makefile.in b/games/gbrainy/files/NLS_ON-patch-Makefile.in
similarity index 58%
rename from games/gbrainy/files/patch-Makefile.in
rename to games/gbrainy/files/NLS_ON-patch-Makefile.in
index 59a94c4a0a3e..d5affe8605ca 100644
--- a/games/gbrainy/files/patch-Makefile.in
+++ b/games/gbrainy/files/NLS_ON-patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig	2021-01-31 04:07:09 UTC
+--- Makefile.in.orig	2022-09-02 19:36:11 UTC
 +++ Makefile.in
-@@ -385,8 +385,7 @@ SUBDIRS = \
+@@ -384,8 +384,7 @@ SUBDIRS = \
  	tests		\
  	data		\
  	tools		\
diff --git a/games/gbrainy/pkg-plist b/games/gbrainy/pkg-plist
index 72b9748d66fc..3fe3cf21aaae 100644
--- a/games/gbrainy/pkg-plist
+++ b/games/gbrainy/pkg-plist
@@ -35,53 +35,53 @@ share/icons/hicolor/16x16/apps/gbrainy.png
 share/icons/hicolor/32x32/apps/gbrainy.png
 share/icons/hicolor/48x48/apps/gbrainy.png
 share/icons/hicolor/scalable/apps/gbrainy.svg
-share/locale/af/LC_MESSAGES/gbrainy.mo
-share/locale/ar/LC_MESSAGES/gbrainy.mo
-share/locale/ast/LC_MESSAGES/gbrainy.mo
-share/locale/bs/LC_MESSAGES/gbrainy.mo
-share/locale/ca/LC_MESSAGES/gbrainy.mo
-share/locale/ca@valencia/LC_MESSAGES/gbrainy.mo
-share/locale/cs/LC_MESSAGES/gbrainy.mo
-share/locale/da/LC_MESSAGES/gbrainy.mo
-share/locale/de/LC_MESSAGES/gbrainy.mo
-share/locale/el/LC_MESSAGES/gbrainy.mo
-share/locale/en_GB/LC_MESSAGES/gbrainy.mo
-share/locale/eo/LC_MESSAGES/gbrainy.mo
-share/locale/es/LC_MESSAGES/gbrainy.mo
-share/locale/eu/LC_MESSAGES/gbrainy.mo
-share/locale/fi/LC_MESSAGES/gbrainy.mo
-share/locale/fr/LC_MESSAGES/gbrainy.mo
-share/locale/gl/LC_MESSAGES/gbrainy.mo
-share/locale/hi/LC_MESSAGES/gbrainy.mo
-share/locale/hr/LC_MESSAGES/gbrainy.mo
-share/locale/hu/LC_MESSAGES/gbrainy.mo
-share/locale/id/LC_MESSAGES/gbrainy.mo
-share/locale/it/LC_MESSAGES/gbrainy.mo
-share/locale/ko/LC_MESSAGES/gbrainy.mo
-share/locale/lv/LC_MESSAGES/gbrainy.mo
-share/locale/nb/LC_MESSAGES/gbrainy.mo
-share/locale/nl/LC_MESSAGES/gbrainy.mo
-share/locale/oc/LC_MESSAGES/gbrainy.mo
-share/locale/pl/LC_MESSAGES/gbrainy.mo
-share/locale/pt/LC_MESSAGES/gbrainy.mo
-share/locale/pt_BR/LC_MESSAGES/gbrainy.mo
-share/locale/ro/LC_MESSAGES/gbrainy.mo
-share/locale/ru/LC_MESSAGES/gbrainy.mo
-share/locale/sk/LC_MESSAGES/gbrainy.mo
-share/locale/sl/LC_MESSAGES/gbrainy.mo
-share/locale/sr/LC_MESSAGES/gbrainy.mo
-share/locale/sr@latin/LC_MESSAGES/gbrainy.mo
-share/locale/sv/LC_MESSAGES/gbrainy.mo
-share/locale/ta/LC_MESSAGES/gbrainy.mo
-share/locale/te/LC_MESSAGES/gbrainy.mo
-share/locale/th/LC_MESSAGES/gbrainy.mo
-share/locale/tr/LC_MESSAGES/gbrainy.mo
-share/locale/ug/LC_MESSAGES/gbrainy.mo
-share/locale/uk/LC_MESSAGES/gbrainy.mo
-share/locale/vi/LC_MESSAGES/gbrainy.mo
-share/locale/zh_CN/LC_MESSAGES/gbrainy.mo
-share/locale/zh_HK/LC_MESSAGES/gbrainy.mo
-share/locale/zh_TW/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/af/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ast/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/bs/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ca@valencia/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/da/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/el/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/hi/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/id/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/oc/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/sr@latin/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ta/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/te/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/th/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/ug/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/zh_HK/LC_MESSAGES/gbrainy.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gbrainy.mo
 share/metainfo/gbrainy.appdata.xml
 share/pixmaps/gbrainy.png
 share/pixmaps/gbrainy.svg