app-misc/cc-switch-cli - 5.5.0 (gentoo-zh)

Search

Install

Install this version:

emerge -a =app-misc/cc-switch-cli-5.5.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-misc/cc-switch-cli-5.5.0

Or alternatively:

emerge --autounmask-write -a =app-misc/cc-switch-cli-5.5.0

Package Information

Description:
All-in-One Assistant for Claude Code, Codex, Gemini, OpenCode & OpenClaw
Homepage:
https://github.com/SaladDay/cc-switch-cli
License:
MIT Apache-2.0 BSD CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB

Ebuild Details

Version EAPI Keywords Slot
5.5.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.15.1

EAPI=8

MY_PN="${PN/-cli/}"

CRATES="
"

inherit cargo

DESCRIPTION="All-in-One Assistant for Claude Code, Codex, Gemini, OpenCode & OpenClaw"
HOMEPAGE="https://github.com/SaladDay/cc-switch-cli"
SRC_URI="
	https://github.com/SaladDay/${PN}/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.tar.gz
	https://github.com/gentoo-zh-drafts/${PN}/releases/download/v${PV}/${P}-crates.tar.xz
	${CARGO_CRATE_URIS}
"
S="${WORKDIR}/${P}"

RUST_MIN_VER="1.92.0"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0
	Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"

RDEPEND="app-arch/xz-utils"

# Rust does not use *FLAGS from make.conf; silence Portage warnings.
QA_FLAGS_IGNORED="usr/bin/${PN}"

src_prepare() {
	default

	rm src-tauri/rust-toolchain.toml || die
	sed -i '/^strip = "symbols"/d' src-tauri/Cargo.toml || die
}

src_configure() {
	cargo_src_configure --manifest-path "${S}/src-tauri/Cargo.toml" --bin ${MY_PN}
}

src_install() {
	newbin "src-tauri/$(cargo_target_dir)/${MY_PN}" ${PN}
	einstalldocs
}

Inherited Eclasses

Dependencies

RDEPEND

app-arch/xz-utils

Manifest for 5.5.0

Type File Size Source URLs
DIST cc-switch-cli-5.5.0-crates.tar.xz 33980768 bytes https://github.com/gentoo-zh-drafts/cc-switch-cli/releases/download/v5.5.0/cc-switch-cli-5.5.0-crates.tar.xz
DIST cc-switch-cli-5.5.0.tar.gz 18112054 bytes https://github.com/SaladDay/cc-switch-cli/archive/refs/tags/v5.5.0.tar.gz