www/yarn-node*: Reorganize yarn-node* as node22 is the new default
This commit is contained in:
parent
e7287e317e
commit
ef17b830d6
@ -1,5 +1,5 @@
|
|||||||
USES= nodejs:18,run
|
USES= nodejs:18,run
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../yarn-node20
|
MASTERDIR= ${.CURDIR}/../yarn-node22
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|||||||
@ -1,51 +1,5 @@
|
|||||||
PORTNAME= yarn
|
USES= nodejs:20,run
|
||||||
DISTVERSIONPREFIX= v
|
|
||||||
PORTVERSION= 1.22.19
|
|
||||||
CATEGORIES= www
|
|
||||||
MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/
|
|
||||||
PKGNAMESUFFIX= ${NODEJS_SUFFIX}
|
|
||||||
|
|
||||||
MAINTAINER= pizzamig@FreeBSD.org
|
MASTERDIR= ${.CURDIR}/../yarn-node22
|
||||||
COMMENT= Package manager for node, alternative to npm
|
|
||||||
WWW= https://classic.yarnpkg.com/
|
|
||||||
|
|
||||||
LICENSE= BSD2CLAUSE
|
.include "${MASTERDIR}/Makefile"
|
||||||
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>
|
|
||||||
|
|||||||
@ -1,5 +1,51 @@
|
|||||||
USES= nodejs:22,run
|
PORTNAME= yarn
|
||||||
|
DISTVERSIONPREFIX= v
|
||||||
|
PORTVERSION= 1.22.19
|
||||||
|
CATEGORIES= www
|
||||||
|
MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/
|
||||||
|
PKGNAMESUFFIX= ${NODEJS_SUFFIX}
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../yarn-node20
|
MAINTAINER= pizzamig@FreeBSD.org
|
||||||
|
COMMENT= Package manager for node, alternative to npm
|
||||||
|
WWW= https://classic.yarnpkg.com/
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
LICENSE= BSD2CLAUSE
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
USES?= nodejs:22,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>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
USES= nodejs:23,run
|
USES= nodejs:23,run
|
||||||
|
|
||||||
MASTERDIR= ${.CURDIR}/../yarn-node20
|
MASTERDIR= ${.CURDIR}/../yarn-node22
|
||||||
|
|
||||||
.include "${MASTERDIR}/Makefile"
|
.include "${MASTERDIR}/Makefile"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user