git: 43ad0ddb8449 - main - sysutils/fusefs-encfs: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 17:50:19 UTC
The branch main has been updated by bofh:

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

commit 43ad0ddb84492385451851d9ffd3ecb004f807e5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-25 17:42:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-25 17:49:55 +0000

    sysutils/fusefs-encfs: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 sysutils/fusefs-encfs/Makefile                   |  2 +-
 sysutils/fusefs-encfs/files/patch-CMakeLists.txt | 12 ++++++++++++
 sysutils/fusefs-encfs/pkg-plist                  |  6 +++---
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/sysutils/fusefs-encfs/Makefile b/sysutils/fusefs-encfs/Makefile
index 07147e6d2357..e6df15617147 100644
--- a/sysutils/fusefs-encfs/Makefile
+++ b/sysutils/fusefs-encfs/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	encfs
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.9.5
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	sysutils
 PKGNAMEPREFIX=	fusefs-
 
diff --git a/sysutils/fusefs-encfs/files/patch-CMakeLists.txt b/sysutils/fusefs-encfs/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..f4e66aaaa10b
--- /dev/null
+++ b/sysutils/fusefs-encfs/files/patch-CMakeLists.txt
@@ -0,0 +1,12 @@
+--- CMakeLists.txt.orig	2024-02-25 17:41:27 UTC
++++ CMakeLists.txt
+@@ -346,9 +346,6 @@ if (POD2MAN)
+ 
+ if (POD2MAN)
+   set (MAN_DESTINATION "share/man/man1")
+-  if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+-    set (MAN_DESTINATION "man/man1")
+-  endif()
+ 
+   add_custom_target (encfs-man ALL
+     COMMAND ${POD2MAN} -u --section=1 --release=${ENCFS_VERSION} --center=${ENCFS_NAME}
diff --git a/sysutils/fusefs-encfs/pkg-plist b/sysutils/fusefs-encfs/pkg-plist
index 2cc2113efa86..e75b46eceeaa 100644
--- a/sysutils/fusefs-encfs/pkg-plist
+++ b/sysutils/fusefs-encfs/pkg-plist
@@ -1,9 +1,9 @@
 bin/encfs
 bin/encfsctl
 bin/encfssh
-%%MANPAGES%%man/man1/encfs.1.gz
-%%MANPAGES%%man/man1/encfsctl.1.gz
-%%MANPAGES%%man/man1/encfssh.1.gz
+%%MANPAGES%%share/man/man1/encfs.1.gz
+%%MANPAGES%%share/man/man1/encfsctl.1.gz
+%%MANPAGES%%share/man/man1/encfssh.1.gz
 %%NLS%%share/locale/ar/LC_MESSAGES/encfs.mo
 %%NLS%%share/locale/be/LC_MESSAGES/encfs.mo
 %%NLS%%share/locale/bg/LC_MESSAGES/encfs.mo