git: b19405d0a40b - main - textproc/docbook2mdoc: Sanitize MANPREFIX

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

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

commit b19405d0a40b87f9ef91c7d14eedf82557ef74cc
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-22 01:58:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-22 10:42:25 +0000

    textproc/docbook2mdoc: Sanitize MANPREFIX
    
    Approved by:    portmgr (blanket)
---
 textproc/docbook2mdoc/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/textproc/docbook2mdoc/Makefile b/textproc/docbook2mdoc/Makefile
index e1449af5ed19..358b1fac999c 100644
--- a/textproc/docbook2mdoc/Makefile
+++ b/textproc/docbook2mdoc/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	docbook2mdoc
 PORTVERSION=	1.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc
 MASTER_SITES=	http://mdocml.bsd.lv/docbook2mdoc/snapshots/
 
@@ -13,8 +13,12 @@ LICENSE=	ISCL
 USES=	tar:tgz
 
 PLIST_FILES=	bin/docbook2mdoc \
-		man/man1/docbook2mdoc.1.gz
+		share/man/man1/docbook2mdoc.1.gz
 
 MAKE_ARGS=	PREFIX="${PREFIX}"
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|man/man1|share/man/man1|g' \
+		${WRKSRC}/Makefile
+
 .include <bsd.port.mk>