# $FreeBSD: head/www/yarn/Makefile 569118 2021-03-24 13:34:35Z rene $ PORTNAME= yarn DISTVERSIONPREFIX= v DISTVERSION= 1.22.10 CATEGORIES= www MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/ MAINTAINER= pizzamig@FreeBSD.org COMMENT= Package manager for node, alternative to npm LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE CONFLICTS_INSTALL?= yarn-node14 yarn-node12 yarn-node10 OPTIONS_DEFINE= HADOOPCOMPAT OPTIONS_SINGLE= BACKEND OPTIONS_SINGLE_BACKEND= NODE10 NODE12 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 NODE12_DESC= Use www/node12 as backend NODE10_DESC= Use www/node10 as backend OPTIONS_SUB= yes NODE_RUN_DEPENDS= node>=0.8.0:www/node NODE14_RUN_DEPENDS= node14>=14.0.0:www/node14 NODE12_RUN_DEPENDS= node12>=12.0.0:www/node12 NODE10_RUN_DEPENDS= node10>=10.0.0:www/node10 HADOOPCOMPAT_CONFLICTS_INSTALL_OFF= hadoop2* NO_ARCH= yes NO_BUILD= yes post-patch: @${RM} ${WRKSRC}/bin/*.cmd @${REINPLACE_CMD} -i '' \ -e 's|"installationMethod": "tar"|"installationMethod": "pkg"|g' \ ${WRKSRC}/package.json @${REINPLACE_CMD} -i '' -e 's%Linux)%Linux|FreeBSD)%g' \ ${WRKSRC}/bin/yarn do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn (cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/node_modules/yarn) ${RLN} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn/bin/yarn.js \ ${STAGEDIR}${PREFIX}/bin/yarn.js ${RLN} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn/bin/yarnpkg \ ${STAGEDIR}${PREFIX}/bin/yarnpkg do-install-HADOOPCOMPAT-off: ${RLN} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn/bin/yarn \ ${STAGEDIR}${PREFIX}/bin/yarn .include .if ${PORT_OPTIONS:MNODE10} DEPRECATED= Uses EOL Python 2.7 via www/node10 EXPIRATION_DATE=2021-06-23 .endif .if ${PORT_OPTIONS:MNODE12} DEPRECATED= Uses EOL Python 2.7 via www/node12 EXPIRATION_DATE=2021-06-23 .endif .include