Install this version:
emerge -a =app-misc/magpie-bin-0.1.2549
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/magpie-bin-0.1.2549
Or alternatively:
emerge --autounmask-write -a =app-misc/magpie-bin-0.1.2549
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop xdg
MY_PN="${PN%-bin}"
DESCRIPTION="Model and account manager with a local gateway for AI coding agents"
HOMEPAGE="https://github.com/yetone/magpie https://usemagpie.ai"
SRC_URI="
amd64? ( https://github.com/yetone/magpie/releases/download/v${PV}/magpie-linux-amd64 -> ${P}-amd64 )
arm64? ( https://github.com/yetone/magpie/releases/download/v${PV}/magpie-linux-arm64 -> ${P}-arm64 )
https://raw.githubusercontent.com/yetone/magpie/v${PV}/build/icon/magpie.svg -> ${P}.svg
https://raw.githubusercontent.com/yetone/magpie/v${PV}/LICENSE -> ${P}-LICENSE
"
S="${WORKDIR}"
LICENSE="Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="strip"
RDEPEND="
dev-libs/glib:2
dev-libs/wayland
dev-util/desktop-file-utils
media-libs/fontconfig:1.0
net-libs/libsoup:3.0
net-libs/webkit-gtk:4.1
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-misc/xdg-utils
"
QA_PREBUILT="usr/bin/${MY_PN}"
src_install() {
newbin "${DISTDIR}/${P}-${ARCH}" "${MY_PN}"
newicon -s scalable "${DISTDIR}/${P}.svg" "${MY_PN}.svg"
make_desktop_entry --eapi9 "${MY_PN}" -a "%u" -n magpie -i "${MY_PN}" \
-c "Development;Utility;" -e "MimeType=x-scheme-handler/magpie;" -e "Terminal=false"
newdoc "${DISTDIR}/${P}-LICENSE" LICENSE
}
pkg_postinst() {
xdg_pkg_postinst
elog "Disable upstream automatic updates with: magpie update auto off"
elog "Use Portage to update magpie; do not use its built-in updater."
}
dev-libs/glib:2 dev-libs/wayland dev-util/desktop-file-utils media-libs/fontconfig:1.0 net-libs/libsoup:3.0 net-libs/webkit-gtk:4.1 x11-libs/gdk-pixbuf:2 x11-libs/gtk+:3 x11-libs/libX11 x11-misc/xdg-utils
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | magpie-bin-0.1.2549-LICENSE | 1063 bytes | https://raw.githubusercontent.com/yetone/magpie/v0.1.2549/LICENSE |
| DIST | magpie-bin-0.1.2549-amd64 | 71557464 bytes | https://github.com/yetone/magpie/releases/download/v0.1.2549/magpie-linux-amd64 |
| DIST | magpie-bin-0.1.2549-arm64 | 65975584 bytes | https://github.com/yetone/magpie/releases/download/v0.1.2549/magpie-linux-arm64 |
| DIST | magpie-bin-0.1.2549.svg | 6604 bytes | https://raw.githubusercontent.com/yetone/magpie/v0.1.2549/build/icon/magpie.svg |