repo/proj/guru:dev commit in: dev-util/grok-build/

"Florian Albrechtskirchinger" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1787044859.d1d54e243c6a0ea6626df47054319c75537c583a.falbrechtskirchinger@gentoo>
commit:     d1d54e243c6a0ea6626df47054319c75537c583a
Author:     Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail <DOT> com>
AuthorDate: Tue Aug 18 04:34:05 2026 +0000
Commit:     Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail <DOT> com>
CommitDate: Tue Aug 18 09:20:59 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d1d54e24

dev-util/grok-build: add 1.0.5

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail.com>

 dev-util/grok-build/Manifest                |   2 +
 dev-util/grok-build/grok-build-1.0.5.ebuild | 112 ++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

diff --git a/dev-util/grok-build/Manifest b/dev-util/grok-build/Manifest
index 06d540dca9..cd0e9ee3d6 100644
--- a/dev-util/grok-build/Manifest
+++ b/dev-util/grok-build/Manifest
@@ -3,4 +3,6 @@ DIST grok-build-1.0.3-crates.tar.xz 91677468 BLAKE2B 3018b0ab4c7c135dff4f30f5c04
 DIST grok-build-1.0.3.gh.tar.gz 14198915 BLAKE2B 8c97851b5bb1f8815d39a3990f457567aa97ce8a0968e43061e2e0c9c147b5418d7a57ea3d93b96b2b008264eb5c044f92245848fbf0bb6bc2d42e1a51720923 SHA512 08728c0f14839439d71d8f69fd2abe185d391a6b8135c1b6cfbb57f1ff1b6308f73a61b360f385a39fd311c6931fbc05ea722abe6900b89d6cff268136339882
 DIST grok-build-1.0.4-crates.tar.xz 91705144 BLAKE2B e5fcd73668373b0227794a3ebb96d41a1ce154ffe29a83ebee9b5bff5fa003c2732c944ac5b471b97f7e81d7ef4f41bd92d0cea75384b599961d5ec348c28f74 SHA512 f8dc9e93e151b95305917aeae1cabda00d0ff8fd274a28bd5779d331b056875fa7ebfbc55e770601cafcb3e2c5d33ca82032bccfc27625c7c5c70849c4f00833
 DIST grok-build-1.0.4.gh.tar.gz 14290525 BLAKE2B db06747919a9d1ee2b180c25627b6e3af2b5ac31fe2c81d6e17630817c7729b586585d1b857d3c67d7ac20e20f51d3f7491fe0dc4034919940d8ec5f0056aa57 SHA512 523a33c18b6eafdaddfbe10dca72448c16b1e931fbec70a0b475a6a7495d1b5351169f3115da31c518c508bba2710d065f6918bba562f58eedd830a10f1a739b
+DIST grok-build-1.0.5-crates.tar.xz 91705144 BLAKE2B e5fcd73668373b0227794a3ebb96d41a1ce154ffe29a83ebee9b5bff5fa003c2732c944ac5b471b97f7e81d7ef4f41bd92d0cea75384b599961d5ec348c28f74 SHA512 f8dc9e93e151b95305917aeae1cabda00d0ff8fd274a28bd5779d331b056875fa7ebfbc55e770601cafcb3e2c5d33ca82032bccfc27625c7c5c70849c4f00833
+DIST grok-build-1.0.5.gh.tar.gz 14374661 BLAKE2B 4ee74d5c7288988eb41be4d14556f93481ff00b67435402844de9601003111edf8910e65d4243023efddb37f97a3e1e4476ace8f5742fde093ffa243edf465a5 SHA512 8f5628711e1e07ee6a77b45afec25684d3b2b733f5b9195c40a45d58dd86ad81e7e155080028753bc2b6479ee4fd8907425ccff3cce637c34deb0ae2f39a8b3c
 DIST nucleo-5b74652e482f7c07d827f18c6d21e7540c242c69.gh.tar.gz 86764 BLAKE2B 006ac7e8c4c7e35a9fd690cd699c7c6d45f9368ed5ac8e1ad2b098128b530ef1f72aeccc6e87dd7d84f98b402f72313be8716f1eeae954b25898359f1037b41a SHA512 a8762638ef79da9dc344664342779c9aecb1b19facc23614d87b639d21b356aab3715cbdb51e541b7dd569a2d4e5cbf97591d4341e3ae538e5aa4a620f4f72f6

diff --git a/dev-util/grok-build/grok-build-1.0.5.ebuild b/dev-util/grok-build/grok-build-1.0.5.ebuild
new file mode 100644
index 0000000000..47f37d5fb8
--- /dev/null
+++ b/dev-util/grok-build/grok-build-1.0.5.ebuild
@@ -0,0 +1,112 @@
+# 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="102bfc687d96b494a12feb66d86d19170df2432d"
+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
+"
+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
+
+	# 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
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.