mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-util/gemini-cli: drop 0.1.17, add 0.7.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
31
dev-util/gemini-cli/gemini-cli-0.7.0.ebuild
Normal file
31
dev-util/gemini-cli/gemini-cli-0.7.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user