From 861865ec589fdff32dbfc0535db09338eb6c01cc Mon Sep 17 00:00:00 2001 From: Leo Douglas Date: Wed, 14 Jan 2026 18:59:31 +0800 Subject: [PATCH] dev-util/pi-coding-agent-bin: new package, add 0.45.7 Signed-off-by: Leo Douglas --- dev-util/pi-coding-agent-bin/Manifest | 2 ++ dev-util/pi-coding-agent-bin/metadata.xml | 14 ++++++++ .../pi-coding-agent-bin-0.45.7.ebuild | 32 +++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 dev-util/pi-coding-agent-bin/Manifest create mode 100644 dev-util/pi-coding-agent-bin/metadata.xml create mode 100644 dev-util/pi-coding-agent-bin/pi-coding-agent-bin-0.45.7.ebuild diff --git a/dev-util/pi-coding-agent-bin/Manifest b/dev-util/pi-coding-agent-bin/Manifest new file mode 100644 index 0000000000..8f148f7033 --- /dev/null +++ b/dev-util/pi-coding-agent-bin/Manifest @@ -0,0 +1,2 @@ +DIST pi-coding-agent-bin-0.45.7-amd64.tar.gz 47396037 BLAKE2B c2d25a8f068dd42534e8f704ad09cc0efb178cd5c1c5ee79794a489e29a05d424dd1fcc68728dff4d6ee830d7dee847355bb5cd5e7b4b97e3bf7db78812bc08b SHA512 9ca30fb0072da7dd8ec4e01e00e099ea7064c49770f4e467313fb9a07d468cab6e500583470520a692dfc17184e5ad532073e4042f4597870eb3ce396cd11fc0 +DIST pi-coding-agent-bin-0.45.7-arm64.tar.gz 45960600 BLAKE2B ef653ca411f66aff14b696df561fe91941e71d6f9f84a64f721a2b6dbfd0b8fdd47467b06042e79cd6249d8f91d1756acb96fb46ab2f84e3f2509310030f9282 SHA512 fc6d38e6a73fdb67fc1366fce46bca027d11b34efe8e76f8c28ef59eec2f07ebd731597a2883f93e4cabb0c307fd06c08674e43faf5a6435bfc25eddd0b8baef diff --git a/dev-util/pi-coding-agent-bin/metadata.xml b/dev-util/pi-coding-agent-bin/metadata.xml new file mode 100644 index 0000000000..5000cf0f41 --- /dev/null +++ b/dev-util/pi-coding-agent-bin/metadata.xml @@ -0,0 +1,14 @@ + + + + + douglarek@gmail.com + Leo Douglas + + + Use system fd instead of the pi's downloaded one + + + badlogic/pi-mono + + diff --git a/dev-util/pi-coding-agent-bin/pi-coding-agent-bin-0.45.7.ebuild b/dev-util/pi-coding-agent-bin/pi-coding-agent-bin-0.45.7.ebuild new file mode 100644 index 0000000000..9e42094d9c --- /dev/null +++ b/dev-util/pi-coding-agent-bin/pi-coding-agent-bin-0.45.7.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A terminal-based coding agent with multi-model support" +HOMEPAGE="https://github.com/badlogic/pi-mono" +SRC_URI=" + amd64? ( https://github.com/badlogic/pi-mono/releases/download/v${PV}/pi-linux-x64.tar.gz -> ${P}-amd64.tar.gz ) + arm64? ( https://github.com/badlogic/pi-mono/releases/download/v${PV}/pi-linux-arm64.tar.gz -> ${P}-arm64.tar.gz ) +" +S="${WORKDIR}"/pi + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" +IUSE="+system-fd" +RESTRICT="bindist strip" + +RDEPEND=" + system-fd? ( sys-apps/fd ) +" + +QA_PREBUILT="opt/${PN}/pi" + +src_install() { + insinto /opt/${PN} + doins -r . + fperms +x /opt/${PN}/pi + + dosym ../${PN}/pi /opt/bin/pi +}