From ef17b830d649cd5c0c4e659015e47bc934b8ced3 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Wed, 4 Dec 2024 01:29:26 +0800 Subject: www/yarn-node*: Reorganize yarn-node* as node22 is the new default --- www/yarn-node18/Makefile | 2 +- www/yarn-node20/Makefile | 52 +++-------------------------------------------- www/yarn-node20/distinfo | 3 --- www/yarn-node20/pkg-descr | 4 ---- www/yarn-node20/pkg-plist | 12 ----------- www/yarn-node22/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++--- www/yarn-node22/distinfo | 3 +++ www/yarn-node22/pkg-descr | 4 ++++ www/yarn-node22/pkg-plist | 12 +++++++++++ www/yarn-node23/Makefile | 2 +- 10 files changed, 73 insertions(+), 73 deletions(-) delete mode 100644 www/yarn-node20/distinfo delete mode 100644 www/yarn-node20/pkg-descr delete mode 100644 www/yarn-node20/pkg-plist create mode 100644 www/yarn-node22/distinfo create mode 100644 www/yarn-node22/pkg-descr create mode 100644 www/yarn-node22/pkg-plist diff --git a/www/yarn-node18/Makefile b/www/yarn-node18/Makefile index 6e7609f00c8e..20ad43db95ec 100644 --- a/www/yarn-node18/Makefile +++ b/www/yarn-node18/Makefile @@ -1,5 +1,5 @@ USES= nodejs:18,run -MASTERDIR= ${.CURDIR}/../yarn-node20 +MASTERDIR= ${.CURDIR}/../yarn-node22 .include "${MASTERDIR}/Makefile" 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 +.include "${MASTERDIR}/Makefile" diff --git a/www/yarn-node20/distinfo b/www/yarn-node20/distinfo deleted file mode 100644 index 7dd276a3014a..000000000000 --- a/www/yarn-node20/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1674865425 -SHA256 (yarn-v1.22.19.tar.gz) = 732620bac8b1690d507274f025f3c6cfdc3627a84d9642e38a07452cc00e0f2e -SIZE (yarn-v1.22.19.tar.gz) = 1244259 diff --git a/www/yarn-node20/pkg-descr b/www/yarn-node20/pkg-descr deleted file mode 100644 index 50f1b63d7d7b..000000000000 --- a/www/yarn-node20/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -Yarn is a new node package manager that replaces the existing workflow for the -npm client or other package managers while remaining compatible with the npm -registry. It has the same feature set as existing workflows while operating -faster, more securely, and more reliably. diff --git a/www/yarn-node20/pkg-plist b/www/yarn-node20/pkg-plist deleted file mode 100644 index db77c3ec95bd..000000000000 --- a/www/yarn-node20/pkg-plist +++ /dev/null @@ -1,12 +0,0 @@ -%%NO_HADOOPCOMPAT%%bin/yarn -bin/yarn.js -bin/yarnpkg -lib/node_modules/yarn/LICENSE -lib/node_modules/yarn/README.md -@(,,755) lib/node_modules/yarn/bin/yarn -@(,,755) lib/node_modules/yarn/bin/yarn.js -@(,,755) lib/node_modules/yarn/bin/yarnpkg -@(,,755) lib/node_modules/yarn/lib/cli.js -lib/node_modules/yarn/lib/v8-compile-cache.js -lib/node_modules/yarn/package.json -lib/node_modules/yarn/preinstall.js diff --git a/www/yarn-node22/Makefile b/www/yarn-node22/Makefile index 53fde2b308e0..c302c2681dda 100644 --- a/www/yarn-node22/Makefile +++ b/www/yarn-node22/Makefile @@ -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 diff --git a/www/yarn-node22/distinfo b/www/yarn-node22/distinfo new file mode 100644 index 000000000000..7dd276a3014a --- /dev/null +++ b/www/yarn-node22/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1674865425 +SHA256 (yarn-v1.22.19.tar.gz) = 732620bac8b1690d507274f025f3c6cfdc3627a84d9642e38a07452cc00e0f2e +SIZE (yarn-v1.22.19.tar.gz) = 1244259 diff --git a/www/yarn-node22/pkg-descr b/www/yarn-node22/pkg-descr new file mode 100644 index 000000000000..50f1b63d7d7b --- /dev/null +++ b/www/yarn-node22/pkg-descr @@ -0,0 +1,4 @@ +Yarn is a new node package manager that replaces the existing workflow for the +npm client or other package managers while remaining compatible with the npm +registry. It has the same feature set as existing workflows while operating +faster, more securely, and more reliably. diff --git a/www/yarn-node22/pkg-plist b/www/yarn-node22/pkg-plist new file mode 100644 index 000000000000..db77c3ec95bd --- /dev/null +++ b/www/yarn-node22/pkg-plist @@ -0,0 +1,12 @@ +%%NO_HADOOPCOMPAT%%bin/yarn +bin/yarn.js +bin/yarnpkg +lib/node_modules/yarn/LICENSE +lib/node_modules/yarn/README.md +@(,,755) lib/node_modules/yarn/bin/yarn +@(,,755) lib/node_modules/yarn/bin/yarn.js +@(,,755) lib/node_modules/yarn/bin/yarnpkg +@(,,755) lib/node_modules/yarn/lib/cli.js +lib/node_modules/yarn/lib/v8-compile-cache.js +lib/node_modules/yarn/package.json +lib/node_modules/yarn/preinstall.js diff --git a/www/yarn-node23/Makefile b/www/yarn-node23/Makefile index 6d92a1e1ed13..52b8b5d5cc34 100644 --- a/www/yarn-node23/Makefile +++ b/www/yarn-node23/Makefile @@ -1,5 +1,5 @@ USES= nodejs:23,run -MASTERDIR= ${.CURDIR}/../yarn-node20 +MASTERDIR= ${.CURDIR}/../yarn-node22 .include "${MASTERDIR}/Makefile" -- cgit v1.2.3