openclaude-0.3.0.ebuild 878 B

123456789101112131415161718192021222324252627282930313233
  1. # Copyright 1999-2026 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. DESCRIPTION="Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models"
  5. HOMEPAGE="https://github.com/Gitlawb/openclaude"
  6. SRC_URI="https://registry.npmjs.org/@gitlawb/openclaude/-/openclaude-${PV}.tgz -> ${P}.tgz"
  7. # Base code is Anthropic proprietary; modifications by OpenClaude contributors
  8. # are offered under MIT where legally permissible. See LICENSE file.
  9. LICENSE="openclaude"
  10. SLOT="0"
  11. KEYWORDS="~amd64"
  12. RDEPEND=">=net-libs/nodejs-20"
  13. # npm tarball already contains prebuilt dist/cli.mjs — no build step needed
  14. S="${WORKDIR}/package"
  15. src_compile() { :; }
  16. src_install() {
  17. insinto /usr/lib/${PN}
  18. doins -r dist/
  19. exeinto /usr/lib/${PN}/bin
  20. doexe bin/${PN}
  21. dosym "../lib/${PN}/bin/${PN}" "/usr/bin/${PN}"
  22. dodoc README.md
  23. }