# 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" SRC_URI="https://registry.npmjs.org/@gitlawb/openclaude/-/openclaude-${PV}.tgz -> ${P}.tgz" # Base code is Anthropic proprietary; modifications by OpenClaude contributors # are offered under MIT where legally permissible. See LICENSE file. LICENSE="openclaude" SLOT="0" KEYWORDS="~amd64" RDEPEND=">=net-libs/nodejs-20" # npm tarball already contains prebuilt dist/cli.mjs — no build step needed S="${WORKDIR}/package" src_compile() { :; } src_install() { insinto /usr/lib/${PN} doins -r dist/ exeinto /usr/lib/${PN}/bin doexe bin/${PN} dosym "../lib/${PN}/bin/${PN}" "/usr/bin/${PN}" dodoc README.md }