git: 9fb65e5f8977 - 2024Q1 - www/node18: Moved man to share/man

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 17:59:19 UTC
The branch 2024Q1 has been updated by sunpoet:

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

commit 9fb65e5f8977290347c7d78d0058442c1e8a0713
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-30 11:36:09 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-09 17:46:44 +0000

    www/node18: Moved man to share/man
    
    Approved by:    portmgr (blanket)
    
    (cherry picked from commit 99ea45a72a2800fc90e98ee225a42c3e88da8602)
---
 www/node18/Makefile                     |  4 ++--
 www/node18/files/patch-tools_install.py | 11 +++++++++++
 www/node18/pkg-plist                    |  2 +-
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/www/node18/Makefile b/www/node18/Makefile
index 590f9fd36e2b..ad9fdd79d206 100644
--- a/www/node18/Makefile
+++ b/www/node18/Makefile
@@ -1,8 +1,7 @@
 PORTNAME=	node
 PORTVERSION=	${NODEJS_PORTVERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 DISTVERSIONPREFIX=	v
-PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	https://nodejs.org/dist/v${PORTVERSION}/
 PKGNAMESUFFIX=	18
@@ -31,6 +30,7 @@ LIB_DEPENDS=	libbrotlidec.so:archivers/brotli \
 
 USES=		compiler:c++11-lib gmake localbase pkgconfig python:build shebangfix tar:xz
 
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_ARGS=	--prefix=${PREFIX:S|^${DESTDIR}||} \
 		--shared-brotli \
 		--shared-cares \
diff --git a/www/node18/files/patch-tools_install.py b/www/node18/files/patch-tools_install.py
new file mode 100644
index 000000000000..3ed0c2a799c5
--- /dev/null
+++ b/www/node18/files/patch-tools_install.py
@@ -0,0 +1,11 @@
+--- tools/install.py.orig	2024-01-30 11:17:06 UTC
++++ tools/install.py
+@@ -186,7 +186,7 @@ def files(action):
+   action(['deps/v8/tools/gdbinit'], 'share/doc/node/')
+   action(['deps/v8/tools/lldb_commands.py'], 'share/doc/node/')
+ 
+-  if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
++  if 'openbsd' in sys.platform:
+     action(['doc/node.1'], 'man/man1/')
+   else:
+     action(['doc/node.1'], 'share/man/man1/')
diff --git a/www/node18/pkg-plist b/www/node18/pkg-plist
index e48d1fb30e30..59f6577332ab 100644
--- a/www/node18/pkg-plist
+++ b/www/node18/pkg-plist
@@ -2326,7 +2326,7 @@ lib/node_modules/corepack/shims/yarn.ps1
 lib/node_modules/corepack/shims/yarnpkg
 lib/node_modules/corepack/shims/yarnpkg.cmd
 lib/node_modules/corepack/shims/yarnpkg.ps1
-@(,,444) man/man1/node.1.gz
+@(,,444) share/man/man1/node.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/gdbinit
 %%PORTDOCS%%%%DOCSDIR%%/lldb_commands.py
 share/systemtap/tapset/node.stp