pkgsrc-WIP-changes archive

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

trader: update to 7.16.



Module Name:	pkgsrc-wip
Committed By:	Frederic Cambus <fred%statdns.com@localhost>
Pushed By:	fcambus
Date:		Mon Feb 15 09:35:04 2021 +0100
Changeset:	40d5a9bd3b177047733947eee82da99d591c64f8

Modified Files:
	trader/Makefile
	trader/PLIST
	trader/distinfo
Added Files:
	trader/patches/patch-src_utils.c
Removed Files:
	trader/patches/patch-src_trader.c

Log Message:
trader: update to 7.16.

Version 7.16 (19th January, 2021)
---------------------------------

Added code to allow the ``TEXTDOMAINDIR`` environment variable to specify
where compiled translations are located.  Updated the documentation to
mention this new feature.

Added an application metadata file that conforms to the AppStream 0.12
specification.  Updated all translations to suit, using parts of existing
strings.

Updated the German translation, with thanks to Mario Blättermann.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=40d5a9bd3b177047733947eee82da99d591c64f8

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

diffstat:
 trader/Makefile                   |  2 +-
 trader/PLIST                      |  1 +
 trader/distinfo                   | 10 +++++-----
 trader/patches/patch-src_trader.c | 20 --------------------
 trader/patches/patch-src_utils.c  | 20 ++++++++++++++++++++
 5 files changed, 27 insertions(+), 26 deletions(-)

diffs:
diff --git a/trader/Makefile b/trader/Makefile
index 4675d78673..a3d1ca04ff 100644
--- a/trader/Makefile
+++ b/trader/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	trader-7.15
+DISTNAME=	trader-7.16
 CATEGORIES=	games
 MASTER_SITES=	https://ftp.zap.org.au/pub/trader/unix/
 
diff --git a/trader/PLIST b/trader/PLIST
index 7eaabe1e29..4aa066b7eb 100644
--- a/trader/PLIST
+++ b/trader/PLIST
@@ -30,3 +30,4 @@ share/locale/pt_BR/LC_MESSAGES/trader.mo
 share/locale/ru/LC_MESSAGES/trader.mo
 share/locale/sr/LC_MESSAGES/trader.mo
 share/locale/sv/LC_MESSAGES/trader.mo
+share/metainfo/trader.appdata.xml
diff --git a/trader/distinfo b/trader/distinfo
index 7ce37a8f7a..15ac9dcb98 100644
--- a/trader/distinfo
+++ b/trader/distinfo
@@ -1,7 +1,7 @@
 $NetBSD$
 
-SHA1 (trader-7.15.tar.gz) = 16c22694663685f62b11049c8787b39574ccc0a8
-RMD160 (trader-7.15.tar.gz) = 7f582b52be57c1fe8cba67d06076a3312c21030b
-SHA512 (trader-7.15.tar.gz) = 37cb302f23de1a8b68c75dce790d56abe63ba34d4dd1653c4af13044c66c8e08101d2ff724951489a5631384833ba2fda3d4d18730a46f97a115ff5dd6b45a75
-Size (trader-7.15.tar.gz) = 1251007 bytes
-SHA1 (patch-src_trader.c) = 7c5d5fb01b23bea6ab686ff825af5b555c579a66
+SHA1 (trader-7.16.tar.gz) = c98d61bf884f0ddd76b87e82552c0e864890cf12
+RMD160 (trader-7.16.tar.gz) = 460e358223a98c966ab109c9ddd1ed234de0407b
+SHA512 (trader-7.16.tar.gz) = a5565f26844c8aa98e18c0e90c75f2e0c4cafb43123b7d6be6228d278912ca76048d41d4d6711a31c9f6e22d5f62b9ba18105366fc4a1ea1cedeac1ba3fec794
+Size (trader-7.16.tar.gz) = 1259294 bytes
+SHA1 (patch-src_utils.c) = a093b98f155b9532e56b9158da2f6dd3d48c55ef
diff --git a/trader/patches/patch-src_trader.c b/trader/patches/patch-src_trader.c
deleted file mode 100644
index 05b80bfc83..0000000000
--- a/trader/patches/patch-src_trader.c
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD$
-
-Do not use err_exit() to generate error messages when locale initialization
-fails as in this case curs_set() is called before initscr(), which causes
-trader to crash when built with NetBSD curses.
-
---- src/trader.c.orig	2021-01-12 23:39:07.351997639 +0000
-+++ src/trader.c
-@@ -151,8 +151,9 @@ int main (int argc, char *argv[])
- 
-     // Initialise the locale
-     if (setlocale(LC_ALL, "") == NULL) {
--	err_exit("could not set locale "
--		 "(check LANG, LC_ALL and LANGUAGE in environment)");
-+	fprintf(stderr, "%s: %s\n", program_name, "could not set locale "
-+		"(check LANG, LC_ALL and LANGUAGE in environment)");
-+	exit(EXIT_FAILURE);
-     }
- 
-     // Use correct message catalogs for the locale
diff --git a/trader/patches/patch-src_utils.c b/trader/patches/patch-src_utils.c
new file mode 100644
index 0000000000..0dcb7e1d08
--- /dev/null
+++ b/trader/patches/patch-src_utils.c
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Do not use err_exit() to generate error messages when locale initialization
+fails as in this case curs_set() is called before initscr(), which causes
+trader to crash when built with NetBSD curses.
+
+--- src/utils.c.orig	2021-01-19 05:42:38.000000000 +0000
++++ src/utils.c
+@@ -591,8 +591,9 @@ extern void init_locale (void)
+ 
+     // Initialise the current locale
+     if (setlocale(LC_ALL, "") == NULL) {
+-	err_exit("could not set locale "
+-		 "(check LANG, LC_ALL and LANGUAGE in environment)");
++	fprintf(stderr, "%s: %s\n", program_name, "could not set locale "
++		"(check LANG, LC_ALL and LANGUAGE in environment)");
++	exit(EXIT_FAILURE);
+     }
+ 
+     // Use correct message catalogs for the locale


Home | Main Index | Thread Index | Old Index