From 95891a30fd19ee08fc4a65279e92c04d6e782835 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 21 Jan 2024 02:45:58 +0100 Subject: [PATCH] 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 +DOCS_PLIST_FILES= share/man/man1/${PORTNAME}.1.gz -.if ${PORT_OPTIONS:MDOCS} -PLIST_FILES+= man/man1/${PORTNAME}.1.gz -.endif +.include 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