mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-util/gemini-cli: add 0.37.1, drop 0.36.0
Use make_wrapper instead of dosym so that Node.js ESM relative imports resolve from the real install path rather than the /usr/bin symlink. Closes: https://bugs.gentoo.org/971954 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST gemini-cli-0.36.0.zip 19929725 BLAKE2B 28fb956106eed706f36fd69cac8f176a2483a4d47f4666e9c59718781da5a43a5413ff0f261aab786d6a0a75035c2c1fd3ada321dadf252b85858ff55f3e9d0a SHA512 b6e0bc22e11d1ecc8b341dd782b5e2b9657529a195de25e08f151f26d794312904edef2f0f681761bd9c6fb162d38c6df2ca966edd38d58a57423b3cd70d38f3
|
||||
DIST gemini-cli-0.37.1.zip 23665418 BLAKE2B 37d0fc693b620f316bfd4f24dcbae3cf135d850c6d0b6236c190e6a26c4eb06a1e6c2fed655a1a19fb668fe0877a393def2fd37ac4c93c1810aeae3ab465aaf8 SHA512 fb6d8eb2d55fab1e0d2af6ca53bf966c881ba6a5ceee274c3065cea2cd8f0dd89b72801440643d1f70198d6d38b512def11ebb467b4fd21155e60bed80ff17f7
|
||||
|
||||
@@ -6,6 +6,8 @@ EAPI=8
|
||||
MY_PV="${PV/_pre/-preview}"
|
||||
MY_PV="${MY_PV/preview[0-9]*/preview.${MY_PV##*preview}}"
|
||||
|
||||
inherit wrapper
|
||||
|
||||
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"
|
||||
@@ -25,5 +27,7 @@ src_install() {
|
||||
doins -r .
|
||||
|
||||
fperms +x /usr/lib/${PN}/gemini.js
|
||||
dosym ../lib/${PN}/gemini.js /usr/bin/gemini
|
||||
# Use a wrapper instead of a symlink so that Node.js ESM relative
|
||||
# imports resolve from the real install path, not the /usr/bin symlink.
|
||||
make_wrapper gemini "node /usr/lib/${PN}/gemini.js"
|
||||
}
|
||||
Reference in New Issue
Block a user