# 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" BDEPEND="net-libs/nodejs" # npm tarball contains prebuilt dist/cli.mjs; we still need npm install to # fetch the packages kept external during bundling (@aws-sdk/*, @opentelemetry/*, # sharp, google-auth-library, etc.) so Node can resolve them at runtime. RESTRICT="network-sandbox" S="${WORKDIR}/package" src_compile() { npm install --production || die "npm install 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 }