git: 95891a30fd19 - main - ports-mgmt/pkgs_which: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 21 Jan 2024 02:03:01 UTC
The branch main has been updated by bofh:

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

commit 95891a30fd19ee08fc4a65279e92c04d6e782835
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 01:45:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 02:02:47 +0000

    ports-mgmt/pkgs_which: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 ports-mgmt/pkgs_which/Makefile | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/ports-mgmt/pkgs_which/Makefile b/ports-mgmt/pkgs_which/Makefile
index e45be319ddd4..5802a9117391 100644
--- a/ports-mgmt/pkgs_which/Makefile
+++ b/ports-mgmt/pkgs_which/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pkgs_which
 PORTVERSION=	0.4.1
+PORTREVISION=	1
 CATEGORIES=	ports-mgmt perl5
 MASTER_SITES=	# none
 DISTFILES=	# none
@@ -15,18 +16,16 @@ PLIST_FILES=	bin/${PORTNAME}
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
+DOCS_PLIST_FILES=	share/man/man1/${PORTNAME}.1.gz
 
-.if ${PORT_OPTIONS:MDOCS}
-PLIST_FILES+=	man/man1/${PORTNAME}.1.gz
-.endif
+.include <bsd.port.options.mk>
 
 do-install:
 		${MKDIR} ${STAGEDIR}${PREFIX}/bin
 		${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
 		${MKDIR} ${STAGEDIR}${PREFIX}/man/man1
-		${LOCALBASE}/bin/pod2man ${FILESDIR}/${PORTNAME} >${STAGEDIR}${PREFIX}/man/man1/${PORTNAME}.1
-.endif
+		${LOCALBASE}/bin/pod2man ${FILESDIR}/${PORTNAME} >${STAGEDIR}${PREFIX}/share/man/man1/${PORTNAME}.1
 
 .include <bsd.port.mk>