dev-util/grok-build: drop 1.0.24

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
Florian Albrechtskirchinger committed 2026-09-17 21:23:31 +02:00
1 parent 6c43df20ad
commit 075df63cd7
2 files changed
-118

No files matched your search

-2
View File
@@ -1,6 +1,4 @@
DIST async-openai-95b52ebdedf42143083cf3d6f0e0be7c84e9c808.gh.tar.gz 28205999 BLAKE2B efc04b410749efc8f6e607e8f0dc5162070c47d7c8b61317185fe638f66b6441f08e6d72b5f8237e9ea448c3b750dba4222dab1d092de5f561a0d36478886eda SHA512 9ce341a035dd11070c7b24e03ab0ad0e21f8e49426626f84e22eac716054c47c01ef7b84147231908c999bee46af54007772c0fd53759f68846c752d3dd28652
DIST grok-build-1.0.24-crates.tar.xz 95670580 BLAKE2B dc3223f413825b9acad1314017dc493429bb50f6d0c11be65c79d09aee757ad4ccd8234fbc56c573d2422ae5c5a0246be530ad21dd175ab5ed18bc414aca2215 SHA512 ae33ce5a2340499809f38d9bc0de568d7a41c6a82e89c48d8fb7f99c2bb5f50813c616b812a71687594091c33177613e6f68347bc0bb1619ce6d4a7a6d662870
DIST grok-build-1.0.24.gh.tar.gz 15282296 BLAKE2B 58be7b132f090b5de6be8b9f5b4f5d902ac7266dc94e17601c199faa04d94c5eebe31174678be680f814f0b62a985902cccb8502bacc4b2b37415a9850bca190 SHA512 439c0f1c85edbb330b64b2925c1c320d55d4c505a47524339e55810f47a044a3d149652661381a7650b427e3700cac6cfceff222f679f38a0887b02cb769c552
DIST grok-build-1.0.32-crates.tar.xz 96212156 BLAKE2B e1ac09a71ad95b65ea172818774d27c7c132f07164ab0ce245365d902874050291a29e1e48387546e54136f3e3e49834df92e28e0cf9e3ef55a207598470a107 SHA512 7fc64a328ddeb0432f659c3d4bc2e641ba0b43cf4c079f49cbac3656d0541dd99a3589cfe2d12b71fa26a82a13c2e62982dfc5442246b44bae3b13c11298615d
DIST grok-build-1.0.32.gh.tar.gz 15926966 BLAKE2B 1e526d156207f0e21ec630d48ee0f114a474e8f917bca20d29fac69c8db875e9fb2f96bc33b797df24112fec0c8f1c57b7ec2f945ea45c1d13d407de771888e1 SHA512 63d5f049e88059dcc63746e1bd2308ce981f0fe73c1334d6701e727f9cffa67aa724b3230954bdd6f5707d295a0cb2cef3a1aa5aa319f98e1461325e282a7928
DIST grok-build-1.0.35-crates.tar.xz 96597092 BLAKE2B 4f720b9ce2f21493edb2fbfedab6af02fa045e2ceeeaea63857c56064a315b665235a0c5300776008068fdd33f817960c86d0e14ec5be5d773d885c3285702f1 SHA512 9bd8d7180f84dc95e1d171c1beb91c73a41d28dafd3e1bdfe2a5d2424b220a3114a855718cb890ee409868d17c1898492bcbab3dfd1dbd6118237c446d1af06b
@@ -1,116 +0,0 @@
# 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 linux-info shell-completion
# no tagged releases
MY_COMMIT="f21225f2d463e1629769c7b4939807923c0ef83e"
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?
DEPEND="
sys-apps/bfs
sys-apps/ripgrep
sys-apps/ugrep
virtual/zlib:=
"
RDEPEND="${DEPEND}"
BDEPEND="
>=dev-libs/protobuf-25.6[protoc]
"
QA_FLAGS_IGNORED="usr/bin/.*"
CHECKREQS_DISK_BUILD=10G # 9.7G
pkg_setup() {
local CONFIG_CHECK="~SECURITY_LANDLOCK"
check-reqs_pkg_setup
linux-info_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
# Disable auto-updates
sed \
-e '1i #![allow(unreachable_code)]' \
-e '/fn env_installer(/a \ return Some("portage");' \
-i crates/codegen/xai-grok-update/src/auto_update.rs || die
# 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
}