git: 951554d100ce - main - sysutils/kiconvtool: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 21 Jan 2024 17:53:51 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=951554d100ce860923f43205d167b1d2d8c9d347

commit 951554d100ce860923f43205d167b1d2d8c9d347
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 17:22:24 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 17:53:29 +0000

    sysutils/kiconvtool: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 sysutils/kiconvtool/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sysutils/kiconvtool/Makefile b/sysutils/kiconvtool/Makefile
index f073de0a8ba1..39e3db1f4a66 100644
--- a/sysutils/kiconvtool/Makefile
+++ b/sysutils/kiconvtool/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kiconvtool
 PORTVERSION=	0.99
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -14,6 +15,10 @@ GH_ACCOUNT=	AMDmi3
 USES=		iconv	# used by libkiconv, actually
 
 PLIST_FILES=	sbin/${PORTNAME} etc/rc.d/kiconv \
-		man/man8/${PORTNAME}.8.gz
+		share/man/man8/${PORTNAME}.8.gz
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|man/man|share/man/man|g' \
+		${WRKSRC}/Makefile
 
 .include <bsd.port.mk>