aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2022-06-01 18:27:26 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2022-06-03 17:01:42 +0000
commit25bb8b00152f9e06ea3cba953dede66df54a5e1c (patch)
tree1e79854cd5988cc4a62160f05e4de7e52bc2d794
parent573dcf82344654d829bee348c5cc5ba447e0bb92 (diff)
downloadports-25bb8b00152f9e06ea3cba953dede66df54a5e1c.tar.gz
ports-25bb8b00152f9e06ea3cba953dede66df54a5e1c.zip
Mk/Uses/nodejs.mk: Handle www/node update to v18
PR: 263590 Sponsored by: The FreeBSD Foundation
-rw-r--r--Mk/Uses/nodejs.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mk/Uses/nodejs.mk b/Mk/Uses/nodejs.mk
index a54751b1b4dd..8a5a7eefefb6 100644
--- a/Mk/Uses/nodejs.mk
+++ b/Mk/Uses/nodejs.mk
@@ -3,7 +3,7 @@
# Feature: nodejs
# Usage: USES=nodejs or USES=nodejs:args
# Valid ARGS: build and/or run <version>
-# version: lts, current, 14, 16, 17
+# version: lts, current, 14, 16, 18
# Default is: build,run
# Note: if you define a version, you must provide run and/or build
#
@@ -12,7 +12,7 @@
.if !defined(_INCLUDE_USES_NODEJS_MK)
_INCLUDE_USES_NODEJS_MK= yes
-_VALID_NODEJS_VERSION= 14 16 17 lts current
+_VALID_NODEJS_VERSION= 14 16 18 lts current
_NODEJS_VERSION_SUFFIX= ${NODEJS_DEFAULT}
. if ! ${_VALID_NODEJS_VERSION:M${_NODEJS_VERSION_SUFFIX}}
@@ -29,18 +29,18 @@ _NODEJS_VERSION_SUFFIX= 14
_NODEJS_VERSION_SUFFIX= 16
. elif ${nodejs_ARGS:Mlts}
_NODEJS_VERSION_SUFFIX= lts
-. elif ${nodejs_ARGS:M17}
-_NODEJS_VERSION_SUFFIX= 17
+. elif ${nodejs_ARGS:M18}
+_NODEJS_VERSION_SUFFIX= 18
. elif ${nodejs_ARGS:Mcurrent}
_NODEJS_VERSION_SUFFIX= current
. elif defined(NODEJS_DEFAULT)
. endif
-# The nodejs 17 version is named www/node
+# The nodejs 18 version is named www/node
. if ${_NODEJS_VERSION_SUFFIX:Mcurrent}
_NODEJS_VERSION_SUFFIX=
. endif
-. if ${_NODEJS_VERSION_SUFFIX:M17}
+. if ${_NODEJS_VERSION_SUFFIX:M18}
_NODEJS_VERSION_SUFFIX=
. endif
# The nodejs LTS is version 16