git: 4580d42d30b4 - main - misc/utftools: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Feb 2024 20:44:08 UTC
The branch main has been updated by bofh:

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

commit 4580d42d30b4ac84fb07fc0c6c6962e132e73c7c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-24 20:34:11 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-24 20:43:22 +0000

    misc/utftools: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 misc/utftools/Makefile  | 5 ++++-
 misc/utftools/pkg-plist | 8 ++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/misc/utftools/Makefile b/misc/utftools/Makefile
index 011f2a44b100..062622e537aa 100644
--- a/misc/utftools/Makefile
+++ b/misc/utftools/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	utftools
 PORTVERSION=	1.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	misc
 MASTER_SITES=	http://www.cs.yorku.ca/pub/wily/misc/
 
@@ -18,6 +18,9 @@ BUILD_DEPENDS=	${LOCALBASE}/lib/libutf.a:misc/libutf
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--libdir=${LOCALBASE}/lib --includedir=${LOCALBASE}/include
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|man$$|share/man|' ${WRKSRC}/Makefile.in
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
 
diff --git a/misc/utftools/pkg-plist b/misc/utftools/pkg-plist
index 620fcb4a7e1a..61f933f11414 100644
--- a/misc/utftools/pkg-plist
+++ b/misc/utftools/pkg-plist
@@ -2,7 +2,7 @@ bin/utf8-expand
 bin/utf8-fmt
 bin/utf8-unexpand
 bin/utf8-wc
-man/man1/utf8-expand.1.gz
-man/man1/utf8-fmt.1.gz
-man/man1/utf8-unexpand.1.gz
-man/man1/utf8-wc.1.gz
+share/man/man1/utf8-expand.1.gz
+share/man/man1/utf8-fmt.1.gz
+share/man/man1/utf8-unexpand.1.gz
+share/man/man1/utf8-wc.1.gz