git: 5c99d2c5f620 - main - games/star_traders: new port: text-based game

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Sun, 19 May 2024 05:23:23 UTC
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5c99d2c5f6207b05f9cb749ee47c987f14b796ab

commit 5c99d2c5f6207b05f9cb749ee47c987f14b796ab
Author:     Petteri Valkonen <petteri.valkonen@iki.fi>
AuthorDate: 2024-05-19 05:17:22 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-05-19 05:21:07 +0000

    games/star_traders: new port: text-based game
    
    Star Traders is a simple text-based game of interstellar trading,
    where the objective is to create companies, buy and sell shares,
    borrow and repay money, in order to become the wealthiest player
    (the winner).
    
    WWW: https://www.zap.org.au/projects/trader/
    
    PR:             278349
    Approved by:    submitter is maintainer, diizzy (mentor)
    Differential Revision:  https://reviews.freebsd.org/D45091
---
 games/Makefile               |  1 +
 games/star_traders/Makefile  | 27 +++++++++++++++++++++++++++
 games/star_traders/distinfo  |  3 +++
 games/star_traders/pkg-descr |  3 +++
 games/star_traders/pkg-plist | 35 +++++++++++++++++++++++++++++++++++
 5 files changed, 69 insertions(+)

diff --git a/games/Makefile b/games/Makefile
index cec5a5bac674..29ea9c1b82ef 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -932,6 +932,7 @@
     SUBDIR += species
     SUBDIR += spellcast
     SUBDIR += spicetrade
+    SUBDIR += star_traders
     SUBDIR += starfighter
     SUBDIR += starlanes
     SUBDIR += steelstorm
diff --git a/games/star_traders/Makefile b/games/star_traders/Makefile
new file mode 100644
index 000000000000..bb958312be87
--- /dev/null
+++ b/games/star_traders/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	star_traders
+DISTVERSION=	7.20
+CATEGORIES=	games
+MASTER_SITES=	https://ftp.zap.org.au/pub/trader/unix/
+DISTNAME=	trader-${DISTVERSION}
+
+MAINTAINER=	petteri.valkonen@iki.fi
+COMMENT=	Simple text-based game of interstellar trading
+WWW=		https://www.zap.org.au/projects/trader
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		iconv ncurses tar:xz
+GNU_CONFIGURE=	yes
+
+INSTALL_TARGET=	install-strip
+
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+OPTIONS_DEFINE=		NLS
+OPTIONS_DEFAULT=	NLS
+OPTIONS_SUB=		yes
+NLS_USES=		gettext-runtime
+NLS_CONFIGURE_OFF=	--disable-nls
+
+.include <bsd.port.mk>
diff --git a/games/star_traders/distinfo b/games/star_traders/distinfo
new file mode 100644
index 000000000000..27096719f034
--- /dev/null
+++ b/games/star_traders/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1711991778
+SHA256 (trader-7.20.tar.xz) = bad368c471d7f4c371fbe8f5da24872f9e3ad609ddb7dad0e015c960c88b3aa9
+SIZE (trader-7.20.tar.xz) = 689256
diff --git a/games/star_traders/pkg-descr b/games/star_traders/pkg-descr
new file mode 100644
index 000000000000..4cdc91915244
--- /dev/null
+++ b/games/star_traders/pkg-descr
@@ -0,0 +1,3 @@
+Star Traders is a simple text-based game of interstellar trading, where
+the objective is to create companies, buy and sell shares, borrow and
+repay money, in order to become the wealthiest player (the winner).
diff --git a/games/star_traders/pkg-plist b/games/star_traders/pkg-plist
new file mode 100644
index 000000000000..bd3e88baf103
--- /dev/null
+++ b/games/star_traders/pkg-plist
@@ -0,0 +1,35 @@
+bin/trader
+share/man/man6/trader.6.gz
+share/applications/au.org.zap.trader.desktop
+share/icons/hicolor/128x128/apps/trader.png
+share/icons/hicolor/16x16/apps/trader.png
+share/icons/hicolor/22x22/apps/trader.png
+share/icons/hicolor/24x24/apps/trader.png
+share/icons/hicolor/256x256/apps/trader.png
+share/icons/hicolor/32x32/apps/trader.png
+share/icons/hicolor/48x48/apps/trader.png
+share/icons/hicolor/512x512/apps/trader.png
+share/icons/hicolor/64x64/apps/trader.png
+share/icons/hicolor/96x96/apps/trader.png
+share/icons/hicolor/scalable/apps/trader.svg
+%%NLS%%share/locale/da/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/de/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/en@quot/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/en_AU/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/en_CA/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/en_US/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/trader.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/trader.mo
+share/metainfo/au.org.zap.trader.metainfo.xml