| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # Copyright 1999-2026 Gentoo Authors
- # Distributed under the terms of the GNU General Public License v2
- EAPI=8
- DESCRIPTION="Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models"
- HOMEPAGE="https://github.com/Gitlawb/openclaude"
- EGIT_REPO_URI="https://github.com/Gitlawb/openclaude.git"
- inherit git-r3
- # Base code is Anthropic proprietary; modifications by OpenClaude contributors
- # are offered under MIT where legally permissible. See LICENSE file.
- LICENSE="openclaude"
- SLOT="0"
- KEYWORDS=""
- # bun is required to build from source; install it from a binary or
- # an unofficial overlay (e.g. https://github.com/Gsantomaggio/bun-overlay)
- RDEPEND=">=net-libs/nodejs-20"
- BDEPEND="dev-lang/bun"
- # bun install needs network access to fetch npm packages
- RESTRICT="network-sandbox"
- src_compile() {
- bun install --frozen-lockfile || die "bun install failed"
- bun run build || die "bun build failed"
- }
- src_install() {
- insinto /usr/lib/${PN}
- doins -r dist/ node_modules/
- exeinto /usr/lib/${PN}/bin
- doexe bin/${PN}
- dosym "../lib/${PN}/bin/${PN}" "/usr/bin/${PN}"
- dodoc README.md
- }
|