mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
dev-util/grok-build: drop 1.0.38
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
1 parent
98b481b170
commit
8b01dffb0e
2 files changed
-118
No files matched your search
@@ -1,6 +1,4 @@
|
||||
DIST async-openai-95b52ebdedf42143083cf3d6f0e0be7c84e9c808.gh.tar.gz 28205999 BLAKE2B efc04b410749efc8f6e607e8f0dc5162070c47d7c8b61317185fe638f66b6441f08e6d72b5f8237e9ea448c3b750dba4222dab1d092de5f561a0d36478886eda SHA512 9ce341a035dd11070c7b24e03ab0ad0e21f8e49426626f84e22eac716054c47c01ef7b84147231908c999bee46af54007772c0fd53759f68846c752d3dd28652
|
||||
DIST grok-build-1.0.38-crates.tar.xz 96597092 BLAKE2B 4f720b9ce2f21493edb2fbfedab6af02fa045e2ceeeaea63857c56064a315b665235a0c5300776008068fdd33f817960c86d0e14ec5be5d773d885c3285702f1 SHA512 9bd8d7180f84dc95e1d171c1beb91c73a41d28dafd3e1bdfe2a5d2424b220a3114a855718cb890ee409868d17c1898492bcbab3dfd1dbd6118237c446d1af06b
|
||||
DIST grok-build-1.0.38.gh.tar.gz 16232245 BLAKE2B 156e53430e4e7684816771e2451aefff39b9dbc1748871fec07c3a10ec47e101daab3f063307ada9f69820be62782a6384caf1be3a2d0fc3926c64cb918f4c07 SHA512 00f4130e8244744dfe90e8e4b8bf0554eb5867a8aa277ace8f24a11c9f1ffc1abf5553435d1563dd707ff7667c441fef955f83d67842f096cd33256d85287305
|
||||
DIST grok-build-1.0.41-crates.tar.xz 96647812 BLAKE2B 180d08804ea666b9a706d6207bc6769febbfbb068f7d97b6a4abcedf183402ad43f80f6e492e55b74bbefc404dc6eb1f03616239d25acbbbbf2222ec4a6faf70 SHA512 f59cc016e6fa245b724a4b1462e0e46e7700ca6f922f82e5c5bba44f13ae499a16d8b2dd2214d5828be9d7d2727dfdd33508913a424ca7cc57696aa92b56b010
|
||||
DIST grok-build-1.0.41.gh.tar.gz 16379423 BLAKE2B 704d8a3c4177d658e64dd23f224b3b2da7395b1a9860e35a0fb3e3d6611c0b70629fdf241f0cea75278ba98e95546e41af221b2b0e924d3851d4c8296655d054 SHA512 f0e77a55b6560b1990f3b662cd9a52e1e43198fd029fdfa5de5496b433220c3f0b2540060293db57537ede73f7dfec152e593af6f1f3b2dc922f95b8fcef81a2
|
||||
DIST grok-build-1.0.45-crates.tar.xz 96716708 BLAKE2B 51299088d141d707be3b552c2c7795156dcda2cb11e8c64abf5254cb8a6de8bc3a0e2616ed76306d9a418e4a73cf5d68cc3f491480a579482ce34157d5f18ad1 SHA512 a620794661246bf87b3af88d4f562155fd61c5dba5dc0501f5c8633582b5ba6b6dd93bba9cf90c3c6bdbead7d24f22df98366522a79358d95e1e970dc865fd9e
|
||||
|
||||
@@ -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="406ef9f0da17962c973149b4b1042136485545ab"
|
||||
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
|
||||
}
|
||||
Reference in new issue
Block a user