commit:     ae5af2ce56d264a85de6b3a075af899a5e1d1e88
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Wed Oct  8 14:37:33 2025 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Wed Oct  8 14:37:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ae5af2ce

dev-util/gemini-cli: drop 0.1.17, add 0.7.0

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 dev-util/gemini-cli/Manifest                 |  2 +-
 dev-util/gemini-cli/gemini-cli-0.1.17.ebuild | 33 ----------------------------
 dev-util/gemini-cli/gemini-cli-0.7.0.ebuild  | 31 ++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 34 deletions(-)

diff --git a/dev-util/gemini-cli/Manifest b/dev-util/gemini-cli/Manifest
index 521b3f6ca7..13b10422a9 100644
--- a/dev-util/gemini-cli/Manifest
+++ b/dev-util/gemini-cli/Manifest
@@ -1 +1 @@
-DIST gemini-cli-0.1.17.js 12282778 BLAKE2B 
9f9e7dce28595f290a331fd6c73f6dc443eebd896efa34f6bbeac722706350eeacabe62de52a6ad7da3ac1bef5e924fd3103cd865986285568174fedafea8541
 SHA512 
f9d25817d3a309a1057a67f650f676e1aaa64bacaf22468e141960893726b2d41bf23ef3ed7b45236158cc7e28f9dd69630c791027a6e29bf4b22af3fa5d2754
+DIST gemini-cli-0.7.0.js 17375964 BLAKE2B 
f46b7485fec1c8a32dd68cc71a6059c0bec43c5ef6013b5bdc0de981a92f6300ac840a99f46550c7d3ac57d14d8f017492dbeb7aa59493647d1abf66cf96ae89
 SHA512 
9e26563bd816885e77eaeb41ab09528c7c8daf5a8b44dcc5b790a2c90f745c7228a0679daafd5247e1145ea6e0d0295557b0d3865c0e8402fe6763ffb1d7b201

diff --git a/dev-util/gemini-cli/gemini-cli-0.1.17.ebuild 
b/dev-util/gemini-cli/gemini-cli-0.1.17.ebuild
deleted file mode 100644
index 761a15fbef..0000000000
--- a/dev-util/gemini-cli/gemini-cli-0.1.17.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DESCRIPTION="Gemini CLI - a command-line AI workflow tool by Google"
-HOMEPAGE="https://github.com/google-gemini/gemini-cli";
-SRC_URI="https://github.com/google-gemini/gemini-cli/releases/download/v${PV}/gemini.js
 -> ${P}.js"
-S="${WORKDIR}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-RESTRICT="strip"
-
-RDEPEND="
-       >=net-libs/nodejs-20
-"
-
-src_unpack() {
-       # npm installs the tarball directly
-       :
-}
-
-src_compile() {
-       # Skip, nothing to compile here.
-       :
-}
-
-src_install() {
-       newbin "${DISTDIR}/${P}.js" gemini
-}

diff --git a/dev-util/gemini-cli/gemini-cli-0.7.0.ebuild 
b/dev-util/gemini-cli/gemini-cli-0.7.0.ebuild
new file mode 100644
index 0000000000..56d682f9fa
--- /dev/null
+++ b/dev-util/gemini-cli/gemini-cli-0.7.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV="${PV/_pre/-preview}"
+MY_PV="${MY_PV/preview[0-9]*/preview.${MY_PV##*preview}}"
+
+DESCRIPTION="Gemini CLI - a command-line AI workflow tool by Google"
+HOMEPAGE="https://github.com/google-gemini/gemini-cli";
+SRC_URI="https://github.com/google-gemini/gemini-cli/releases/download/v${MY_PV}/gemini.js
 -> ${P}.js"
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm64"
+
+RDEPEND="
+       net-libs/nodejs
+"
+
+src_install() {
+       # nodejs defaults to disabling deprecation warnings when running code
+       # from any path containing a node_modules directory. Since we're 
installing
+       # outside of the realm of npm, explicitly pass an option to disable
+       # deprecation warnings so it behaves the same as it does if installed 
via
+       # npm. It's proprietary; not like Gentoo users can fix the warnings 
anyway.
+       sed -i 's/env node/env -S node --no-deprecation/' "${DISTDIR}/${P}.js" 
|| die
+
+       newbin "${DISTDIR}/${P}.js" gemini
+}

Reply via email to