git: f0c153029e2c - main - irc/weechat: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 22 Jan 2024 20:27:33 UTC
The branch main has been updated by bofh:

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

commit f0c153029e2c7d36720c6e8fa799bb855557eb9e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 20:26:04 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 20:26:42 +0000

    irc/weechat: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 irc/weechat/Makefile  |  3 ++-
 irc/weechat/pkg-plist | 36 ++++++++++++++++++------------------
 2 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 91688c52f84c..108634b32965 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	weechat
 PORTVERSION=	4.2.0
+PORTREVISION=	1
 CATEGORIES=	irc
 MASTER_SITES=	https://weechat.org/files/src/
 
@@ -54,7 +55,7 @@ ICONV_USES=		iconv
 JAVASCRIPT_LIB_DEPENDS=	libv8.so:lang/v8
 LUA_USES=		lua pkgconfig
 MANPAGES_CMAKE_BOOL=	ENABLE_MAN
-MANPAGES_CMAKE_ON=	-DMANDIR=${MANPREFIX}/man
+MANPAGES_CMAKE_ON=	-DMANDIR=${PREFIX}/share/man
 MANPAGES_BUILD_DEPENDS=	${LOCALBASE}/bin/asciidoctor:textproc/rubygem-asciidoctor
 NLS_USES=		gettext
 PERL_USES=		perl5
diff --git a/irc/weechat/pkg-plist b/irc/weechat/pkg-plist
index c3a0de443b88..c6271522debc 100644
--- a/irc/weechat/pkg-plist
+++ b/irc/weechat/pkg-plist
@@ -15,24 +15,24 @@ lib/weechat/plugins/trigger.so
 %%TYPING%%lib/weechat/plugins/typing.so
 lib/weechat/plugins/xfer.so
 libdata/pkgconfig/weechat.pc
-%%MANPAGES%%man/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/man1/weechat-headless.1.gz
-%%MANPAGES%%man/cs/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/cs/man1/weechat-headless.1.gz
-%%MANPAGES%%man/de/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/de/man1/weechat-headless.1.gz
-%%MANPAGES%%man/fr/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/fr/man1/weechat-headless.1.gz
-%%MANPAGES%%man/it/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/it/man1/weechat-headless.1.gz
-%%MANPAGES%%man/ja/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/ja/man1/weechat-headless.1.gz
-%%MANPAGES%%man/pl/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/pl/man1/weechat-headless.1.gz
-%%MANPAGES%%man/ru/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/ru/man1/weechat-headless.1.gz
-%%MANPAGES%%man/sr/man1/weechat.1.gz
-%%HEADLESS%%%%MANPAGES%%man/sr/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/cs/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/cs/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/de/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/de/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/fr/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/fr/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/it/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/it/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/ja/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/ja/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/pl/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/pl/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/ru/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/ru/man1/weechat-headless.1.gz
+%%MANPAGES%%share/man/sr/man1/weechat.1.gz
+%%HEADLESS%%%%MANPAGES%%share/man/sr/man1/weechat-headless.1.gz
 %%ASPELL%%lib/weechat/plugins/spell.so
 %%CHARSET%%lib/weechat/plugins/charset.so
 %%GUILE%%lib/weechat/plugins/guile.so