mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
dev-util/gemini-cli: add 0.36.0, drop 0.35.3
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
|||||||
DIST gemini-cli-0.35.3.js 695263 BLAKE2B 2b2084d7129506c98d43e85da7b6707ce93adbf370a8ad6a339dcac938e4942527f843c745ad64ff852152e2bbb844657e18c98492a04bb7d309ef6bab3fe074 SHA512 f456365910fe8f69e4ae93127ab0df22c1df6be15940ab5fc7b117c8788eb1d03b7fb6a7c047b80d1affafa4a5b57b11c1fd4f2a135fb8d586482df6490205a6
|
DIST gemini-cli-0.36.0.zip 19929725 BLAKE2B 28fb956106eed706f36fd69cac8f176a2483a4d47f4666e9c59718781da5a43a5413ff0f261aab786d6a0a75035c2c1fd3ada321dadf252b85858ff55f3e9d0a SHA512 b6e0bc22e11d1ecc8b341dd782b5e2b9657529a195de25e08f151f26d794312904edef2f0f681761bd9c6fb162d38c6df2ca966edd38d58a57423b3cd70d38f3
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
# Copyright 1999-2026 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
|
|
||||||
}
|
|
||||||
29
dev-util/gemini-cli/gemini-cli-0.36.0.ebuild
Normal file
29
dev-util/gemini-cli/gemini-cli-0.36.0.ebuild
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Copyright 1999-2026 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-cli-bundle.zip -> ${P}.zip"
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64 ~arm64"
|
||||||
|
|
||||||
|
BDEPEND="app-arch/unzip"
|
||||||
|
RDEPEND="
|
||||||
|
net-libs/nodejs
|
||||||
|
"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/lib/${PN}
|
||||||
|
doins -r .
|
||||||
|
|
||||||
|
fperms +x /usr/lib/${PN}/gemini.js
|
||||||
|
dosym ../lib/${PN}/gemini.js /usr/bin/gemini
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user