git: 691901e18f0f - main - games/banihstypos: Refactor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Jun 2025 21:57:35 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=691901e18f0f1339d27eafd32efda74076186109
commit 691901e18f0f1339d27eafd32efda74076186109
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-06-02 21:53:35 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-06-02 21:57:07 +0000
games/banihstypos: Refactor
- Add LICENSE GPLv2
- Pet portclippy
- Fix DOCS option
- Use OPTIONSNG
---
games/banihstypos/Makefile | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/games/banihstypos/Makefile b/games/banihstypos/Makefile
index 9b68613b355e..77c8f7fa7cc9 100644
--- a/games/banihstypos/Makefile
+++ b/games/banihstypos/Makefile
@@ -1,5 +1,6 @@
PORTNAME= banihstypos
-PORTVERSION= 0.2
+DISTVERSION= 0.2
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.vanheusden.com/banihstypos/
@@ -7,26 +8,26 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Simple game to teach you typing, fast
WWW= http://www.vanheusden.com/banihstypos/
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/license.txt
+
USES= ncurses tar:tgz
+
MAKE_ARGS= LDFLAGS="${LDFLAGS} -lncurses"
+
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
PLIST_FILES= bin/banihstypos
+PORTDOCS= readme.txt
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MDOCS}
-PORTDOCS= readme.txt
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/banihstypos ${STAGEDIR}${PREFIX}/bin
-.if ! ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>