www/yarn: make yarn-node16 available

Currently many node packages do not support node 17 which is
used for www/node.
This for example fixes the usage of www/gitlab-ce which cannot
run the upgrade step if node 17 is used.

PR:		259475
PR:		259476
PR:		259477
Approved by:	pizzamig (maintainer)
This commit is contained in:
Jose Luis Duran 2021-10-28 06:11:15 +02:00 committed by Matthias Fechner
parent a269704700
commit d2948b522a
4 changed files with 19 additions and 3 deletions

View File

@ -2360,6 +2360,7 @@
SUBDIR += yanopaste
SUBDIR += yarn
SUBDIR += yarn-node14
SUBDIR += yarn-node16
SUBDIR += yarr
SUBDIR += yaws
SUBDIR += you-get

View File

@ -4,7 +4,7 @@ PKGNAMESUFFIX= -node14
CONFLICTS_INSTALL= yarn
OPTIONS_EXCLUDE= NODE
OPTIONS_EXCLUDE= NODE NODE16
OPTIONS_SLAVE= NODE14
MASTERDIR= ${.CURDIR}/../yarn

12
www/yarn-node16/Makefile Normal file
View File

@ -0,0 +1,12 @@
# Created by: Luca Pizzamiglio <pizzamig@FreeBSD.org>
PKGNAMESUFFIX= -node16
CONFLICTS_INSTALL= yarn
OPTIONS_EXCLUDE= NODE NODE14
OPTIONS_SLAVE= NODE16
MASTERDIR= ${.CURDIR}/../yarn
.include "${MASTERDIR}/Makefile"

View File

@ -1,6 +1,7 @@
PORTNAME= yarn
DISTVERSIONPREFIX= v
DISTVERSION= 1.22.17
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/
@ -13,20 +14,22 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe
CPE_VENDOR= ${PORTNAME}pkg
CONFLICTS_INSTALL?= yarn-node14 yarn-node10
CONFLICTS_INSTALL?= yarn-node16 yarn-node14 yarn-node10
OPTIONS_DEFINE= HADOOPCOMPAT
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND= NODE14 NODE
OPTIONS_SINGLE_BACKEND= NODE16 NODE14 NODE
OPTIONS_DEFAULT= NODE
HADOOPCOMPAT_DESC= hadoop2 compatibility, the yarn script is excluded
NODE_DESC= Use www/node as backend
NODE14_DESC= Use www/node14 as backend
NODE16_DESC= Use www/node16 as backend
OPTIONS_SUB= yes
NODE_RUN_DEPENDS= node>=0.8.0:www/node
NODE14_RUN_DEPENDS= node14>=14.0.0:www/node14
NODE16_RUN_DEPENDS= node16>=16.0.0:www/node16
HADOOPCOMPAT_CONFLICTS_INSTALL_OFF= hadoop2*