summaryrefslogtreecommitdiff
path: root/www/yarn-node20/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/yarn-node20/Makefile')
-rw-r--r--www/yarn-node20/Makefile52
1 files changed, 3 insertions, 49 deletions
diff --git a/www/yarn-node20/Makefile b/www/yarn-node20/Makefile
index 8d34f0a20309..e5433dbb11fb 100644
--- a/www/yarn-node20/Makefile
+++ b/www/yarn-node20/Makefile
@@ -1,51 +1,5 @@
-PORTNAME= yarn
-DISTVERSIONPREFIX= v
-PORTVERSION= 1.22.19
-CATEGORIES= www
-MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/
-PKGNAMESUFFIX= ${NODEJS_SUFFIX}
+USES= nodejs:20,run
-MAINTAINER= pizzamig@FreeBSD.org
-COMMENT= Package manager for node, alternative to npm
-WWW= https://classic.yarnpkg.com/
+MASTERDIR= ${.CURDIR}/../yarn-node22
-LICENSE= BSD2CLAUSE
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
-USES?= nodejs:20,run
-USES+= cpe
-CPE_VENDOR= ${PORTNAME}pkg
-
-CONFLICTS_INSTALL= yarn-node[0-9][0-9]
-
-OPTIONS_DEFINE= HADOOPCOMPAT
-HADOOPCOMPAT_DESC= hadoop2 compatibility, the yarn script is excluded
-
-OPTIONS_SUB= yes
-
-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 <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"