shells/mksh: Generate man-compatible page

Currently the mksh man page will not display on a base FreeBSD install,
stating that groff is required to format the page:
$ man mksh
This manpage needs groff(1) to be rendered
First install groff(1):
pkg install groff
Renames the src mksh.1 and passes it through mandoc to generate a
man-compatible page to then be installed with the package.

PR:		286190
Approved by:	Rares Aioanei <schaiba@gmail.com> (maintainer)
This commit is contained in:
Michael Proto 2025-04-21 20:51:26 +02:00 committed by Zsolt Udvari
parent 7c3b6b4d95
commit 1181481c79

View file

@ -1,7 +1,7 @@
PORTNAME= mksh
PORTVERSION= 59c
PORTREVISION= 1
DISTVERSIONPREFIX= R
PORTREVISION= 2
CATEGORIES= shells
MASTER_SITES= https://www.mirbsd.org/MirOS/dist/mir/mksh/ \
https://pub.allbsd.org/MirOS/dist/mir/mksh/
@ -27,6 +27,8 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mksh ${STAGEDIR}${PREFIX}/bin
${MV} ${WRKSRC}/mksh.1 ${WRKSRC}/mksh.1.orig
${CAT} ${WRKSRC}/mksh.1.orig | mandoc -T man >${WRKSRC}/mksh.1
${INSTALL_MAN} ${WRKSRC}/mksh.1 ${STAGEDIR}${PREFIX}/share/man/man1
do-install-EXAMPLES-on: