summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-10-27 22:35:19 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-10-27 22:35:19 +0800
commit6bf543ecb5d3cde2bc7dce5aa127e0a8347bd071 (patch)
tree266184ea7cbffbebfc12a6fdb352aed6068f5015 /www
parentjava/openjdk25: New port (diff)
www/corepack: Add corepack 0.34.1
Corepack is a zero-runtime-dependency Node.js script that acts as a bridge between Node.js projects and the package managers they are intended to be used with during development. In practical terms, Corepack lets you use Yarn, npm, and pnpm without having to install them.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/corepack/Makefile27
-rw-r--r--www/corepack/distinfo3
-rw-r--r--www/corepack/pkg-descr4
-rw-r--r--www/corepack/pkg-plist55
5 files changed, 90 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index bf605da21389..9f9598c3f450 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -127,6 +127,7 @@
SUBDIR += codeigniter
SUBDIR += colly
SUBDIR += coppermine
+ SUBDIR += corepack
SUBDIR += cpp-httplib
SUBDIR += cpr
SUBDIR += crawl
diff --git a/www/corepack/Makefile b/www/corepack/Makefile
new file mode 100644
index 000000000000..a9167edffde6
--- /dev/null
+++ b/www/corepack/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= corepack
+PORTVERSION= 0.34.1
+DISTVERSIONPREFIX= v
+CATEGORIES= www
+MASTER_SITES= https://github.com/nodejs/corepack/releases/download/v${PORTVERSION}/
+DIST_SUBDIR= corepack/${PORTVERSION}
+DISTNAME= corepack
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Zero-runtime-dependency package acting as bridge between Node projects and their package managers
+WWW= https://github.com/nodejs/corepack
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/package/LICENSE.md
+
+USES= tar:tgz
+
+NO_ARCH= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/
+ cd ${WRKSRC}/package/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/node_modules/corepack/
+ ${LN} -s ../lib/node_modules/corepack/dist/corepack.js ${STAGEDIR}${PREFIX}/bin/corepack
+
+.include <bsd.port.mk>
diff --git a/www/corepack/distinfo b/www/corepack/distinfo
new file mode 100644
index 000000000000..7b6ab0a21af7
--- /dev/null
+++ b/www/corepack/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760838164
+SHA256 (corepack/0.34.1/corepack.tgz) = 306cff21cdbca7336f54060830a293710d4b6ede4d8b607bc7884aeccf081333
+SIZE (corepack/0.34.1/corepack.tgz) = 227508
diff --git a/www/corepack/pkg-descr b/www/corepack/pkg-descr
new file mode 100644
index 000000000000..bac445daebd3
--- /dev/null
+++ b/www/corepack/pkg-descr
@@ -0,0 +1,4 @@
+Corepack is a zero-runtime-dependency Node.js script that acts as a bridge
+between Node.js projects and the package managers they are intended to be used
+with during development. In practical terms, Corepack lets you use Yarn, npm,
+and pnpm without having to install them.
diff --git a/www/corepack/pkg-plist b/www/corepack/pkg-plist
new file mode 100644
index 000000000000..a4f78bc1b7ed
--- /dev/null
+++ b/www/corepack/pkg-plist
@@ -0,0 +1,55 @@
+bin/corepack
+lib/node_modules/corepack/CHANGELOG.md
+lib/node_modules/corepack/LICENSE.md
+lib/node_modules/corepack/README.md
+@(,,755) lib/node_modules/corepack/dist/corepack.js
+lib/node_modules/corepack/dist/lib/corepack.cjs
+@(,,755) lib/node_modules/corepack/dist/npm.js
+@(,,755) lib/node_modules/corepack/dist/npx.js
+@(,,755) lib/node_modules/corepack/dist/pnpm.js
+@(,,755) lib/node_modules/corepack/dist/pnpx.js
+@(,,755) lib/node_modules/corepack/dist/yarn.js
+@(,,755) lib/node_modules/corepack/dist/yarnpkg.js
+lib/node_modules/corepack/package.json
+@(,,755) lib/node_modules/corepack/shims/corepack
+@(,,755) lib/node_modules/corepack/shims/corepack.cmd
+@(,,755) lib/node_modules/corepack/shims/corepack.ps1
+lib/node_modules/corepack/shims/nodewin/corepack
+lib/node_modules/corepack/shims/nodewin/corepack.cmd
+lib/node_modules/corepack/shims/nodewin/corepack.ps1
+lib/node_modules/corepack/shims/nodewin/npm
+lib/node_modules/corepack/shims/nodewin/npm.cmd
+lib/node_modules/corepack/shims/nodewin/npm.ps1
+lib/node_modules/corepack/shims/nodewin/npx
+lib/node_modules/corepack/shims/nodewin/npx.cmd
+lib/node_modules/corepack/shims/nodewin/npx.ps1
+lib/node_modules/corepack/shims/nodewin/pnpm
+lib/node_modules/corepack/shims/nodewin/pnpm.cmd
+lib/node_modules/corepack/shims/nodewin/pnpm.ps1
+lib/node_modules/corepack/shims/nodewin/pnpx
+lib/node_modules/corepack/shims/nodewin/pnpx.cmd
+lib/node_modules/corepack/shims/nodewin/pnpx.ps1
+lib/node_modules/corepack/shims/nodewin/yarn
+lib/node_modules/corepack/shims/nodewin/yarn.cmd
+lib/node_modules/corepack/shims/nodewin/yarn.ps1
+lib/node_modules/corepack/shims/nodewin/yarnpkg
+lib/node_modules/corepack/shims/nodewin/yarnpkg.cmd
+lib/node_modules/corepack/shims/nodewin/yarnpkg.ps1
+@(,,755) lib/node_modules/corepack/shims/npm
+@(,,755) lib/node_modules/corepack/shims/npm.cmd
+@(,,755) lib/node_modules/corepack/shims/npm.ps1
+@(,,755) lib/node_modules/corepack/shims/npx
+@(,,755) lib/node_modules/corepack/shims/npx.cmd
+@(,,755) lib/node_modules/corepack/shims/npx.ps1
+@(,,755) lib/node_modules/corepack/shims/pnpm
+@(,,755) lib/node_modules/corepack/shims/pnpm.cmd
+@(,,755) lib/node_modules/corepack/shims/pnpm.ps1
+@(,,755) lib/node_modules/corepack/shims/pnpx
+@(,,755) lib/node_modules/corepack/shims/pnpx.cmd
+@(,,755) lib/node_modules/corepack/shims/pnpx.ps1
+@(,,755) lib/node_modules/corepack/shims/yarn
+@(,,755) lib/node_modules/corepack/shims/yarn.cmd
+@(,,755) lib/node_modules/corepack/shims/yarn.ps1
+@(,,755) lib/node_modules/corepack/shims/yarnpkg
+@(,,755) lib/node_modules/corepack/shims/yarnpkg.cmd
+@(,,755) lib/node_modules/corepack/shims/yarnpkg.ps1