dev-util/grok-build: drop 1.0.32

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
Florian Albrechtskirchinger committed 2026-09-19 21:33:45 +02:00
1 parent f8bd1357b2
commit c47c998050
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.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
DIST grok-build-1.0.35.gh.tar.gz 16094659 BLAKE2B 347268215d3dfb4b70595c5abd522acea83d14e2c02f939941180607dd3a906c592816e2627df5af69ed02f79340d5806d7e5ff180e51190b6ff6396496ad544 SHA512 07bf9d370a08ba50341b9dbc62023d308ba5d68889c8dcc9386c472253d38234dead04abd629511d830f4e1568d3b92d49619f07297030632308382a5a90a927
DIST grok-build-1.0.38-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="256cf49bfb9b80e5188acd8bb5cb498f2eea074f"
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
}