git: 2bd39856c28a - main - devel/libdevq: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 23 Feb 2024 12:52:20 UTC
The branch main has been updated by bofh:

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

commit 2bd39856c28ad057f0773ff53aad37e4f81e37e3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-23 12:41:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-23 12:51:53 +0000

    devel/libdevq: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 devel/libdevq/Makefile  | 6 ++++++
 devel/libdevq/pkg-plist | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/devel/libdevq/Makefile b/devel/libdevq/Makefile
index a155aa845f13..93998e385eb5 100644
--- a/devel/libdevq/Makefile
+++ b/devel/libdevq/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libdevq
 PORTVERSION=	0.0.4
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/freebsd/${PORTNAME}/releases/download/${PORTVERSION}/
 
@@ -10,6 +11,7 @@ WWW=		https://github.com/freebsd/libdevq
 LICENSE=	BSD2CLAUSE
 
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 USES=		autoreconf libtool pathfix tar:xz
 USE_LDCONFIG=	yes
 INSTALL_TARGET=	install-strip
@@ -21,4 +23,8 @@ OPTIONS_SUB=	yes
 PROGRAMS_DESC=	Build diagnostic programs
 PROGRAMS_CONFIGURE_ENABLE=programs
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|^mandir=.*|mandir=${PREFIX}/share/man|' \
+		${WRKSRC}/Makefile.am
+
 .include <bsd.port.mk>
diff --git a/devel/libdevq/pkg-plist b/devel/libdevq/pkg-plist
index 1a41d2f60e44..077b207a314e 100644
--- a/devel/libdevq/pkg-plist
+++ b/devel/libdevq/pkg-plist
@@ -5,4 +5,4 @@ lib/libdevq.so
 lib/libdevq.so.0
 lib/libdevq.so.0.0.0
 libdata/pkgconfig/libdevq-1.0.pc
-man/man3/libdevq.3.gz
+share/man/man3/libdevq.3.gz