git: dca5e971221e - main - graphics/hugin: Move man pages to share/man

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 29 Mar 2024 08:21:30 UTC
The branch main has been updated by yasu:

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

commit dca5e971221e1a6f24831e398d35ed2b861eac60
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2024-03-29 08:07:44 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-03-29 08:07:45 +0000

    graphics/hugin: Move man pages to share/man
    
    Approved by:    portmgr (blanket)
---
 graphics/hugin/Makefile                   |  2 +-
 graphics/hugin/files/patch-CMakeLists.txt | 11 ++++++
 graphics/hugin/pkg-plist                  | 64 +++++++++++++++----------------
 3 files changed, 44 insertions(+), 33 deletions(-)

diff --git a/graphics/hugin/Makefile b/graphics/hugin/Makefile
index ee74b4e2391b..b27c4df1e71c 100644
--- a/graphics/hugin/Makefile
+++ b/graphics/hugin/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	hugin
 DISTVERSION=	2023.0.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
 
diff --git a/graphics/hugin/files/patch-CMakeLists.txt b/graphics/hugin/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..8dd103f8290e
--- /dev/null
+++ b/graphics/hugin/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2023-10-24 17:35:08 UTC
++++ CMakeLists.txt
+@@ -552,7 +552,7 @@ IF (NOT MANDIR AND NOT $ENV{MANDIR} STREQUAL "")
+ 
+ IF (NOT MANDIR AND NOT $ENV{MANDIR} STREQUAL "")
+     SET (MANDIR "$ENV{MANDIR}")
+-ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
++ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
+     SET (MANDIR "man")
+ ELSE(NOT MANDIR AND NOT $ENV{MANDIR} STREQUAL "")
+     SET (MANDIR "share/man")
diff --git a/graphics/hugin/pkg-plist b/graphics/hugin/pkg-plist
index 48ef02c6076a..7a740de5af75 100644
--- a/graphics/hugin/pkg-plist
+++ b/graphics/hugin/pkg-plist
@@ -39,38 +39,6 @@ lib/hugin/liblocalfeatures.so.0.0
 %%PYTHON_SITELIBDIR%%/_hsi.so
 %%PYTHON_SITELIBDIR%%/hpi.py
 %%PYTHON_SITELIBDIR%%/hsi.py
-man/man1/PTBatcherGUI.1.gz
-man/man1/align_image_stack.1.gz
-man/man1/autooptimiser.1.gz
-man/man1/calibrate_lens_gui.1.gz
-man/man1/celeste_standalone.1.gz
-man/man1/checkpto.1.gz
-man/man1/cpclean.1.gz
-man/man1/cpfind.1.gz
-man/man1/deghosting_mask.1.gz
-man/man1/fulla.1.gz
-man/man1/geocpset.1.gz
-man/man1/hugin.1.gz
-man/man1/hugin_executor.1.gz
-man/man1/hugin_hdrmerge.1.gz
-man/man1/hugin_lensdb.1.gz
-man/man1/hugin_stacker.1.gz
-man/man1/hugin_stitch_project.1.gz
-man/man1/icpfind.1.gz
-man/man1/linefind.1.gz
-man/man1/nona.1.gz
-man/man1/pano_modify.1.gz
-man/man1/pano_trafo.1.gz
-man/man1/pto_gen.1.gz
-man/man1/pto_lensstack.1.gz
-man/man1/pto_mask.1.gz
-man/man1/pto_merge.1.gz
-man/man1/pto_move.1.gz
-man/man1/pto_template.1.gz
-man/man1/pto_var.1.gz
-man/man1/tca_correct.1.gz
-man/man1/verdandi.1.gz
-man/man1/vig_optimize.1.gz
 share/applications/PTBatcherGUI.desktop
 share/applications/calibrate_lens_gui.desktop
 share/applications/hugin.desktop
@@ -597,6 +565,38 @@ share/locale/sk/LC_MESSAGES/hugin.mo
 share/locale/sv/LC_MESSAGES/hugin.mo
 share/locale/zh_CN/LC_MESSAGES/hugin.mo
 share/locale/zh_TW/LC_MESSAGES/hugin.mo
+share/man/man1/PTBatcherGUI.1.gz
+share/man/man1/align_image_stack.1.gz
+share/man/man1/autooptimiser.1.gz
+share/man/man1/calibrate_lens_gui.1.gz
+share/man/man1/celeste_standalone.1.gz
+share/man/man1/checkpto.1.gz
+share/man/man1/cpclean.1.gz
+share/man/man1/cpfind.1.gz
+share/man/man1/deghosting_mask.1.gz
+share/man/man1/fulla.1.gz
+share/man/man1/geocpset.1.gz
+share/man/man1/hugin.1.gz
+share/man/man1/hugin_executor.1.gz
+share/man/man1/hugin_hdrmerge.1.gz
+share/man/man1/hugin_lensdb.1.gz
+share/man/man1/hugin_stacker.1.gz
+share/man/man1/hugin_stitch_project.1.gz
+share/man/man1/icpfind.1.gz
+share/man/man1/linefind.1.gz
+share/man/man1/nona.1.gz
+share/man/man1/pano_modify.1.gz
+share/man/man1/pano_trafo.1.gz
+share/man/man1/pto_gen.1.gz
+share/man/man1/pto_lensstack.1.gz
+share/man/man1/pto_mask.1.gz
+share/man/man1/pto_merge.1.gz
+share/man/man1/pto_move.1.gz
+share/man/man1/pto_template.1.gz
+share/man/man1/pto_var.1.gz
+share/man/man1/tca_correct.1.gz
+share/man/man1/verdandi.1.gz
+share/man/man1/vig_optimize.1.gz
 share/metainfo/PTBatcherGUI.appdata.xml
 share/metainfo/calibrate_lens_gui.appdata.xml
 share/metainfo/hugin.appdata.xml