git: 5a142601f023 - main - misc/magicpoint: use ${PREFIX}/share/man

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Thu, 11 Jan 2024 17:28:01 UTC
The branch main has been updated by dinoex:

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

commit 5a142601f023a33980bcfa6fc1522cb68a616393
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-01-11 17:27:52 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-01-11 17:27:52 +0000

    misc/magicpoint: use ${PREFIX}/share/man
---
 misc/magicpoint/Makefile  |  5 +++--
 misc/magicpoint/pkg-plist | 12 ++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/misc/magicpoint/Makefile b/misc/magicpoint/Makefile
index fd447b48478d..164fc757ba9e 100644
--- a/misc/magicpoint/Makefile
+++ b/misc/magicpoint/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	magicpoint
 PORTVERSION=	1.13a
-PORTREVISION=	19
+PORTREVISION=	20
 CATEGORIES?=	misc
 MASTER_SITES=	ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/
 
@@ -22,6 +22,7 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-vflib --enable-locale --disable-freetype
 CONFIGURE_ENV=	mgp_cv_path_perl=${PERL}
 CPPFLAGS+=	-I..
+MAKE_ARGS+=	MANPATH="${PREFIX}/share/man"
 LATE_INSTALL_ARGS=	install.man
 
 PORTDOCS=	${DOCS} sample emacs-lisp scripts
@@ -68,7 +69,7 @@ post-build:
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/contrib/xmindpath/xmindpath.1 \
-		${STAGEDIR}${PREFIX}/man/man1/
+		${STAGEDIR}${PREFIX}/share/man/man1/
 	${INSTALL} ${WRKSRC}/contrib/xmindpath/xmindpath \
 		${STAGEDIR}${PREFIX}/bin/
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xmindpath
diff --git a/misc/magicpoint/pkg-plist b/misc/magicpoint/pkg-plist
index 9d184d2dee8b..106a2ecc7916 100644
--- a/misc/magicpoint/pkg-plist
+++ b/misc/magicpoint/pkg-plist
@@ -8,9 +8,9 @@ lib/X11/mgp/default.mgp
 lib/X11/mgp/mgp1.jpg
 lib/X11/mgp/mgp2.jpg
 lib/X11/mgp/mgp3.jpg
-man/man1/mgp.1.gz
-man/man1/mgp2ps.1.gz
-man/man1/mgpembed.1.gz
-man/man1/mgpnet.1.gz
-man/man1/xwintoppm.1.gz
-man/man1/xmindpath.1.gz
+share/man/man1/mgp.1.gz
+share/man/man1/mgp2ps.1.gz
+share/man/man1/mgpembed.1.gz
+share/man/man1/mgpnet.1.gz
+share/man/man1/xwintoppm.1.gz
+share/man/man1/xmindpath.1.gz