mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-util/grok-build: add 0.2.109
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
DIST async-openai-95b52ebdedf42143083cf3d6f0e0be7c84e9c808.gh.tar.gz 28205999 BLAKE2B efc04b410749efc8f6e607e8f0dc5162070c47d7c8b61317185fe638f66b6441f08e6d72b5f8237e9ea448c3b750dba4222dab1d092de5f561a0d36478886eda SHA512 9ce341a035dd11070c7b24e03ab0ad0e21f8e49426626f84e22eac716054c47c01ef7b84147231908c999bee46af54007772c0fd53759f68846c752d3dd28652
|
||||
DIST grok-build-0.2.105-crates.tar.xz 91499268 BLAKE2B dddd731beb690b24ef92d3be462ac98b900c9e4297c17c5d94119598302a21cbac410b6a3ef49e9f4f5c42352b29289445a7ad0832117ac44befbd8f9b068412 SHA512 41bcb70e4f35187f8ff6619d1198d18d4b913c3f199d2996e933e3120cd169fd722e6b081ee3a55d6a529e22a98810c0f2218ef85da9036ddce69ef87bf5f87e
|
||||
DIST grok-build-0.2.105.gh.tar.gz 12340715 BLAKE2B f8838ccb187e028dbfde7d9ea6e87eb8d415d8b42925c42ae333bffae5a7814e126ef9ae6497a4eab60e8ffacd9e3e5e607d3e3cddee8a2ecbf8eef8ee8fe792 SHA512 fdfc83345c692d4dc1f06dd8e0a66cdfd9f4789938138357be2a9d6f0d8341eff3faca7bb22ac8a298ac934e6bcb0ecb22221fe4d6afec38adc20fad3b3acfd2
|
||||
DIST grok-build-0.2.106-crates.tar.xz 91499268 BLAKE2B dddd731beb690b24ef92d3be462ac98b900c9e4297c17c5d94119598302a21cbac410b6a3ef49e9f4f5c42352b29289445a7ad0832117ac44befbd8f9b068412 SHA512 41bcb70e4f35187f8ff6619d1198d18d4b913c3f199d2996e933e3120cd169fd722e6b081ee3a55d6a529e22a98810c0f2218ef85da9036ddce69ef87bf5f87e
|
||||
DIST grok-build-0.2.106.gh.tar.gz 12423970 BLAKE2B 7e04d853a7e6f17ba88276c97c46c682a4555489c652e43e6ce80a31c68762dc7b6c30ff1f9685a13253d70d05df4bfdd5197c8c260e09b4f246a1f3991f4841 SHA512 97a740313524f1d27c181a218d4b816a35ff6a757a6463f6d61e86a5caf3e640d070c1123c618d511136dd5c80e56c94d8148d9ebb9ded6ff6d4db70df25c6ec
|
||||
DIST grok-build-0.2.109-crates.tar.xz 91699100 BLAKE2B 24d8caec52c512560e94e4c9fed7109090ec4d9624d07a2f4b9d0a726e69f0a8955223d9ce7831977e83d9436491c9c3ec879c14fb6e2a0bd2766abd0aa804fa SHA512 4800b1aff456206a7ea6cb853303952435a8686d019597768600013fedf128bb0940db6a0113c7e184ed7717c5f97523985fa80a69707a2c1e28e9bcdd4c39ca
|
||||
DIST grok-build-0.2.109.gh.tar.gz 12635136 BLAKE2B db1e19c476a2e7efc501ad87e4369c74f59569db2149242a10f7d0e1e2b6c22fb39b6247b9dc02c99a57adc3915df4d7416a70b5b121903e30903c30bcc8982e SHA512 052b06a79dd3321a72716fb2bb5f9c4287720b03e2254dd202a545897f8cfd9287d15dec2d0ca3a3298fa16ccbeb4b17f02a2469693071c18bd5421aa13dd03a
|
||||
DIST nucleo-5b74652e482f7c07d827f18c6d21e7540c242c69.gh.tar.gz 86764 BLAKE2B 006ac7e8c4c7e35a9fd690cd699c7c6d45f9368ed5ac8e1ad2b098128b530ef1f72aeccc6e87dd7d84f98b402f72313be8716f1eeae954b25898359f1037b41a SHA512 a8762638ef79da9dc344664342779c9aecb1b19facc23614d87b639d21b356aab3715cbdb51e541b7dd569a2d4e5cbf97591d4341e3ae538e5aa4a620f4f72f6
|
||||
|
||||
109
dev-util/grok-build/grok-build-0.2.109.ebuild
Normal file
109
dev-util/grok-build/grok-build-0.2.109.ebuild
Normal file
@@ -0,0 +1,109 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.16.0
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.92.0"
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
declare -A GIT_CRATES=(
|
||||
[async-openai-macros]='https://github.com/our-forks/async-openai;95b52ebdedf42143083cf3d6f0e0be7c84e9c808;async-openai-%commit%/async-openai-macros'
|
||||
[async-openai]='https://github.com/our-forks/async-openai;95b52ebdedf42143083cf3d6f0e0be7c84e9c808;async-openai-%commit%/async-openai'
|
||||
[nucleo-matcher]='https://github.com/helix-editor/nucleo;5b74652e482f7c07d827f18c6d21e7540c242c69;nucleo-%commit%/matcher'
|
||||
[nucleo]='https://github.com/helix-editor/nucleo;5b74652e482f7c07d827f18c6d21e7540c242c69;nucleo-%commit%'
|
||||
)
|
||||
|
||||
inherit cargo check-reqs shell-completion
|
||||
|
||||
# no tagged releases
|
||||
MY_COMMIT="98a7d5949053c02d631757dd9272b09b73c463e0"
|
||||
DESCRIPTION="SpaceXAI's coding agent harness and TUI"
|
||||
HOMEPAGE="
|
||||
https://x.ai/cli
|
||||
https://x.ai/open-source
|
||||
https://github.com/xai-org/grok-build
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/xai-org/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz
|
||||
https://github.com/fasys-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_COMMIT}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 CDLA-Permissive-2.0 EPL-2.0
|
||||
ISC MIT MIT-0 MPL-2.0 MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2
|
||||
ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64" # ~arm64: ugrep
|
||||
# TODO add feature USE flags?
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
sys-apps/bfs
|
||||
sys-apps/ripgrep
|
||||
sys-apps/ugrep
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-libs/protobuf-25.6[protoc]
|
||||
"
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/.*"
|
||||
|
||||
CHECKREQS_DISK_BUILD=10G # 9.7G
|
||||
|
||||
pkg_setup() {
|
||||
check-reqs_pkg_setup
|
||||
rust_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Do not bundle ripgrep
|
||||
local f
|
||||
for f in crates/codegen/xai-grok-{shell,tools}/build.rs; do
|
||||
sed \
|
||||
-e '1i #![allow(unreachable_code)]' \
|
||||
-e '/fn main()/a \ return Ok(());' \
|
||||
-i "$f" || die
|
||||
done
|
||||
|
||||
# Cargo offline fetch workaround
|
||||
local url commit path
|
||||
IFS=";" read -r url commit path <<<"${GIT_CRATES[async-openai]}"
|
||||
local ASYNC_OPENAI_GIT="async-openai = { git = \"${url}.git\", rev = \"${commit}\""
|
||||
local ASYNC_OPENAI_PATH="async-openai = \\{ path = \"${WORKDIR}/async-openai-${commit}/async-openai\""
|
||||
|
||||
sed "s|${ASYNC_OPENAI_GIT}|${ASYNC_OPENAI_PATH}|" \
|
||||
-i "${S}/Cargo.toml" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# TODO more tests
|
||||
cargo_src_test --package xai-grok-pager-bin
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "$(cargo_target_dir)/xai-grok-pager" grok
|
||||
dosym grok /usr/bin/agent
|
||||
|
||||
local grok_bin="${ED}/usr/bin/grok"
|
||||
"${grok_bin}" completions bash > grok || die
|
||||
"${grok_bin}" completions fish > grok.fish || die
|
||||
"${grok_bin}" completions zsh > _grok || die
|
||||
|
||||
dobashcomp grok
|
||||
dofishcomp grok.fish
|
||||
dozshcomp _grok
|
||||
}
|
||||
Reference in New Issue
Block a user