git: 18561bab2aac - main - graphics/xmedcon: Sanitize MANPREFIX

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

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

commit 18561bab2aac3e6e3464920da924af23139f4eaf
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 00:22:40 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 00:29:01 +0000

    graphics/xmedcon: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 graphics/xmedcon/Makefile  |  4 +++-
 graphics/xmedcon/pkg-plist | 20 ++++++++++----------
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/graphics/xmedcon/Makefile b/graphics/xmedcon/Makefile
index 68b3a288fe16..62d53172eac0 100644
--- a/graphics/xmedcon/Makefile
+++ b/graphics/xmedcon/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xmedcon
 PORTVERSION=	0.23.0
+PORTREVISION=	1
 DISTVERSIONSUFFIX=	-gtk2
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/XMedCon-Source/${PORTVERSION}
@@ -17,6 +18,7 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 USES=		gnome libtool pkgconfig tar:bzip2
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 CONFIGURE_ARGS=	--includedir=${PREFIX}/include/xmedcon \
 		--enable-llcheck
 INSTALL_TARGET=	install-strip
@@ -91,6 +93,6 @@ post-install-X11-on:
 .for file in xmedcon.png xmedconrc xmedconrc.linux
 	${INSTALL_DATA} ${WRKSRC}/etc/${file} ${STAGEDIR}${PREFIX}/etc
 .endfor
-	${INSTALL_MAN} ${WRKSRC}/man/xmedcon.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/man/xmedcon.1 ${STAGEDIR}${PREFIX}/share/man/man1
 
 .include <bsd.port.mk>
diff --git a/graphics/xmedcon/pkg-plist b/graphics/xmedcon/pkg-plist
index 912fd8491041..2ce37b175181 100644
--- a/graphics/xmedcon/pkg-plist
+++ b/graphics/xmedcon/pkg-plist
@@ -44,14 +44,14 @@ lib/libmdc.a
 lib/libmdc.so
 lib/libmdc.so.3.0.0
 lib/libmdc.so.3
-man/man1/medcon.1.gz
-%%X11%%man/man1/xmedcon.1.gz
-man/man1/xmedcon-config.1.gz
-man/man3/medcon.3.gz
-man/man4/m-acr.4.gz
-man/man4/m-anlz.4.gz
-man/man4/m-ecat.4.gz
-man/man4/m-gif.4.gz
-man/man4/m-intf.4.gz
-man/man4/m-inw.4.gz
+share/man/man1/medcon.1.gz
+%%X11%%share/man/man1/xmedcon.1.gz
+share/man/man1/xmedcon-config.1.gz
+share/man/man3/medcon.3.gz
+share/man/man4/m-acr.4.gz
+share/man/man4/m-anlz.4.gz
+share/man/man4/m-ecat.4.gz
+share/man/man4/m-gif.4.gz
+share/man/man4/m-intf.4.gz
+share/man/man4/m-inw.4.gz
 share/aclocal/xmedcon.m4