git: fa8e8f7483cd - main - games/jaggedalliance2: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Feb 2024 07:08:44 UTC
The branch main has been updated by bofh:

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

commit fa8e8f7483cdfd9e799ea5561f9cb7f39f2d8298
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-24 07:07:40 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-24 07:08:12 +0000

    games/jaggedalliance2: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 games/jaggedalliance2/Makefile                   |  2 +-
 games/jaggedalliance2/files/patch-CMakeLists.txt | 11 +++++++++++
 games/jaggedalliance2/pkg-plist                  |  2 +-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/games/jaggedalliance2/Makefile b/games/jaggedalliance2/Makefile
index b79f130685bd..c41994318371 100644
--- a/games/jaggedalliance2/Makefile
+++ b/games/jaggedalliance2/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	ja2
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.21.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 
 MAINTAINER=	timp87@gmail.com
diff --git a/games/jaggedalliance2/files/patch-CMakeLists.txt b/games/jaggedalliance2/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..fbfde265234b
--- /dev/null
+++ b/games/jaggedalliance2/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2024-02-24 07:03:02 UTC
++++ CMakeLists.txt
+@@ -482,7 +482,7 @@ if (UNIX AND NOT MINGW AND NOT APPLE AND NOT ANDROID)
+         FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/icons/logo.svg
+         RENAME ja2-stracciatella.svg
+         DESTINATION share/icons/hicolor/scalable/apps)
+-    if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly|OpenBSD")
++    if(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly|OpenBSD")
+         install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/distr-files-linux/ja2_manpage DESTINATION man/man6 RENAME ja2.6)
+     else()
+         install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/distr-files-linux/ja2_manpage DESTINATION share/man/man6 RENAME ja2.6)
diff --git a/games/jaggedalliance2/pkg-plist b/games/jaggedalliance2/pkg-plist
index 8220212ef795..20cadc25cdec 100644
--- a/games/jaggedalliance2/pkg-plist
+++ b/games/jaggedalliance2/pkg-plist
@@ -1,6 +1,6 @@
 share/icons/hicolor/scalable/apps/ja2-stracciatella.svg
 share/applications/ja2-stracciatella.desktop
-man/man6/ja2.6.gz
+share/man/man6/ja2.6.gz
 bin/ja2-resource-pack
 bin/ja2-launcher
 bin/ja2