mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
Update to gemini-cli-0.36.0.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
COMMENT= Gemini AI agent CLI
|
||||
|
||||
V= 0.35.3
|
||||
V= 0.36.0
|
||||
DISTNAME= gemini-cli-${V}
|
||||
|
||||
CATEGORIES= sysutils misc devel
|
||||
@@ -49,15 +49,13 @@ tarball: package.json
|
||||
@install -d ${DWRKDIST}/{bin,lib/node_modules/@google}
|
||||
@mv ${DWRKDIST}/node_modules/@google/gemini-cli \
|
||||
${DWRKDIST}/lib/node_modules/@google/
|
||||
@ln -s ../lib/node_modules/@google/gemini-cli/dist/index.js \
|
||||
${DWRKDIST}/bin/gemini
|
||||
@rm -r ${DWRKDIST}/{node_modules,package.json,package-lock.json}
|
||||
@cd ${DWRKDIR} && tar czf ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}
|
||||
@echo "===> distfile available at:"
|
||||
@echo ${DWRKDIR}/${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/lib/node_modules/@google/gemini-cli/dist/index.js
|
||||
${SUBST_CMD} ${WRKSRC}/lib/node_modules/@google/gemini-cli/bundle/gemini.js
|
||||
|
||||
do-build:
|
||||
# build native modules for node-pty
|
||||
@@ -68,8 +66,9 @@ do-build:
|
||||
|
||||
do-install:
|
||||
cp -a ${WRKSRC}/* ${PREFIX}
|
||||
chmod +x ${PREFIX}/lib/node_modules/@google/gemini-cli/dist/index.js
|
||||
rm ${PREFIX}/lib/node_modules/@google/gemini-cli/dist/*.tgz \
|
||||
${PREFIX}/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/*.tgz
|
||||
ln -sf ${TRUEPREFIX}/lib/node_modules/@google/gemini-cli/bundle/gemini.js \
|
||||
$${PREFIX}/bin/gemini
|
||||
# rm ${PREFIX}/lib/node_modules/@google/gemini-cli/dist/*.tgz \
|
||||
# ${PREFIX}/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/*.tgz
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (gemini-cli-0.35.3.tar.gz) = Y7fdvqZZzZDrVanDEZQhFDHGwC5kL8V5J+0dM8E+1h0=
|
||||
SIZE (gemini-cli-0.35.3.tar.gz) = 94213904
|
||||
SHA256 (gemini-cli-0.36.0.tar.gz) = WrGfY4lhYsXY7TX5AaK93rPbfWNQzajYy6UO0Pm6Sw4=
|
||||
SIZE (gemini-cli-0.36.0.tar.gz) = 35492983
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
env(1) does not support `-S' on OpenBSD
|
||||
|
||||
Index: lib/node_modules/@google/gemini-cli/bundle/gemini.js
|
||||
--- lib/node_modules/@google/gemini-cli/bundle/gemini.js.orig
|
||||
+++ lib/node_modules/@google/gemini-cli/bundle/gemini.js
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env -S node --no-warnings=DEP0040
|
||||
+#!${LOCALBASE}/bin/node --no-warnings=DEP0040
|
||||
const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirname = (await import('node:path')).dirname(__chunk_filename);
|
||||
import {
|
||||
BuiltinCommandLoader,
|
||||
@@ -1,11 +0,0 @@
|
||||
env(1) does not support `-S' on OpenBSD
|
||||
|
||||
Index: lib/node_modules/@google/gemini-cli/dist/index.js
|
||||
--- lib/node_modules/@google/gemini-cli/dist/index.js.orig
|
||||
+++ lib/node_modules/@google/gemini-cli/dist/index.js
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env -S node --no-warnings=DEP0040
|
||||
+#!${LOCALBASE}/bin/node --no-warnings=DEP0040
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
+430
-49751
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user