aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-01-30 11:36:09 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-01-30 11:49:31 +0000
commit99ea45a72a2800fc90e98ee225a42c3e88da8602 (patch)
treec18953862ae4d7ea1213f225b4730ed7b8a8a806
parent60b114cda41c1f026bf7a985dc7b159f8f2600ee (diff)
downloadports-99ea45a72a2800fc90e98ee225a42c3e88da8602.tar.gz
ports-99ea45a72a2800fc90e98ee225a42c3e88da8602.zip
www/node18: Moved man to share/man
Approved by: portmgr (blanket)
-rw-r--r--www/node18/Makefile4
-rw-r--r--www/node18/files/patch-tools_install.py11
-rw-r--r--www/node18/pkg-plist2
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