git: fae91286a237 - main - Mk/Uses/nodejs.mk: Add node22 and update current
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 May 2024 06:29:58 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=fae91286a237f78187ebb8c2c5cf6bd14e1ceccc commit fae91286a237f78187ebb8c2c5cf6bd14e1ceccc Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-16 06:17:29 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-16 06:21:56 +0000 Mk/Uses/nodejs.mk: Add node22 and update current Node.js 22 is the new current. Reference: https://github.com/nodejs/Release/blob/main/README.md#release-schedule https://github.com/nodejs/Release/commit/17c98b429783838c7c19471c598a03082fcf4f7b --- Mk/Uses/nodejs.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mk/Uses/nodejs.mk b/Mk/Uses/nodejs.mk index e92b2f34f2a3..e6fe010026eb 100644 --- a/Mk/Uses/nodejs.mk +++ b/Mk/Uses/nodejs.mk @@ -7,7 +7,7 @@ # - build use node as build-time dependency # - run use node as runtime dependency # - env set the environment (NODEJS_VERSION and NODEJS_SUFFIX) -# - version available version: lts, current, 18, 20, 21 +# - version available version: lts, current, 18, 20, 21, 22 # # Note: # - The supported versions follow upstream release schedule @@ -22,13 +22,13 @@ .if !defined(_INCLUDE_USES_NODEJS_MK) _INCLUDE_USES_NODEJS_MK= yes -_VALID_NODEJS_VERSIONS= 18 20 21 current lts +_VALID_NODEJS_VERSIONS= 18 20 21 22 current lts . if ! ${_VALID_NODEJS_VERSIONS:M${NODEJS_DEFAULT}} IGNORE= Invalid default nodejs version ${NODEJS_DEFAULT}; valid versions are ${_VALID_NODEJS_VERSIONS} . endif -. if !empty(nodejs_ARGS:Nbuild:Nenv:Nrun:Nlts:Ncurrent:N18:N20:N21) +. if !empty(nodejs_ARGS:Nbuild:Nenv:Nrun:Nlts:Ncurrent:N18:N20:N21:N22) IGNORE= USES=nodejs has invalid arguments ${nodejs_ARGS} . endif @@ -47,7 +47,7 @@ _NODEJS_VER= ${version} _NODEJS_VER= ${NODEJS_DEFAULT} . endif -NODEJS_VERSION= ${_NODEJS_VER:S|current|21|:S|lts|20|} +NODEJS_VERSION= ${_NODEJS_VER:S|current|22|:S|lts|20|} NODEJS_SUFFIX= -node${NODEJS_VERSION} . if ${nodejs_ARGS:M*build*}