git: ce6106abeeae - main - japanese/kakasi: properly move manpages to share/man

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Fri, 12 Jan 2024 16:25:09 UTC
The branch main has been updated by bapt:

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

commit ce6106abeeae5733fcf3bf1765b82b5a0b1b8d41
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-01-12 16:24:27 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-01-12 16:24:58 +0000

    japanese/kakasi: properly move manpages to share/man
    
    Reported by:    antoine
---
 japanese/kakasi/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/japanese/kakasi/Makefile b/japanese/kakasi/Makefile
index 88c67d9fb87b..fd669e65ce50 100644
--- a/japanese/kakasi/Makefile
+++ b/japanese/kakasi/Makefile
@@ -11,6 +11,7 @@ WWW=		http://kakasi.namazu.org/
 LICENSE=	GPLv2
 
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 USES=		iconv libtool
 USE_LDCONFIG=	yes
 
@@ -28,8 +29,9 @@ post-patch:
 	@${REINPLACE_CMD} -e 's/-Wno-unused-result//' ${WRKSRC}/configure
 
 post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/man/ja/man1/
 	${INSTALL_MAN} ${WRKSRC}/man/kakasi.1.ja \
-		${STAGEDIR}${PREFIX}/man/ja/man1/kakasi.1
+		${STAGEDIR}${PREFIX}/share/man/ja/man1/kakasi.1
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}