git: 378c661e0573 - main - archivers/zstd: Impelled to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 23 Jan 2024 21:51:42 UTC
The branch main has been updated by bofh:

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

commit 378c661e05732249f498ea226cf95436ab2de076
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-23 20:20:24 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-23 21:51:18 +0000

    archivers/zstd: Impelled to share/man
    
    Approved by:    portmgr (blanket)
---
 archivers/zstd/Makefile  |  6 ++++--
 archivers/zstd/pkg-plist | 12 ++++++------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index 8fd5d0424c0d..358612e8f0d9 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	zstd
 PORTVERSION=	1.5.5
+PORTREVISION=	1
 CATEGORIES=	archivers
 MASTER_SITES=	https://github.com/facebook/zstd/releases/download/v${PORTVERSION}/
 
@@ -24,7 +25,8 @@ MAKE_ENV=	INSTALL_DATA="${INSTALL_DATA}" \
 		INSTALL_MAN="${INSTALL_MAN}" \
 		INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
 		INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
-		V=1
+		V=1 \
+		MANDIR=${PREFIX}/share/man
 TEST_TARGET=	shortest
 USE_LDCONFIG=	yes
 
@@ -52,6 +54,6 @@ post-install:
 	${INSTALL_DATA} ${WRKDIR}/zstdConfigVersion.cmake ${STAGEDIR}${PREFIX}/lib/cmake/zstd/zstdConfigVersion.cmake
 	${INSTALL_DATA} ${WRKDIR}/zstdTargets-BUILD_TYPE.cmake ${STAGEDIR}${PREFIX}/lib/cmake/zstd/zstdTargets-${BUILD_TYPE:tl}.cmake
 	${INSTALL_DATA} ${FILESDIR}/zstdTargets.cmake ${STAGEDIR}${PREFIX}/lib/cmake/zstd/zstdTargets.cmake
-	${LN} -s zstd.1.gz ${STAGEDIR}${PREFIX}/man/man1/zstdmt.1.gz
+	${LN} -s zstd.1.gz ${STAGEDIR}${PREFIX}/share/man/man1/zstdmt.1.gz
 
 .include <bsd.port.mk>
diff --git a/archivers/zstd/pkg-plist b/archivers/zstd/pkg-plist
index 8898089ce0c3..2f26988884ce 100644
--- a/archivers/zstd/pkg-plist
+++ b/archivers/zstd/pkg-plist
@@ -17,9 +17,9 @@ lib/libzstd.so
 lib/libzstd.so.1
 lib/libzstd.so.%%PORTVERSION%%
 libdata/pkgconfig/libzstd.pc
-man/man1/unzstd.1.gz
-man/man1/zstd.1.gz
-man/man1/zstdcat.1.gz
-man/man1/zstdgrep.1.gz
-man/man1/zstdless.1.gz
-man/man1/zstdmt.1.gz
+share/man/man1/unzstd.1.gz
+share/man/man1/zstd.1.gz
+share/man/man1/zstdcat.1.gz
+share/man/man1/zstdgrep.1.gz
+share/man/man1/zstdless.1.gz
+share/man/man1/zstdmt.1.gz