openclaude-9999.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. EGIT_REPO_URI="https://github.com/Gitlawb/openclaude.git"
  7. inherit git-r3
  8. # Base code is Anthropic proprietary; modifications by OpenClaude contributors
  9. # are offered under MIT where legally permissible. See LICENSE file.
  10. LICENSE="openclaude"
  11. SLOT="0"
  12. KEYWORDS=""
  13. # bun is required to build from source; install it from a binary or
  14. # an unofficial overlay (e.g. https://github.com/Gsantomaggio/bun-overlay)
  15. RDEPEND=">=net-libs/nodejs-20"
  16. BDEPEND="dev-lang/bun"
  17. # bun install needs network access to fetch npm packages
  18. RESTRICT="network-sandbox"
  19. src_compile() {
  20. bun install --frozen-lockfile || die "bun install failed"
  21. bun run build || die "bun build failed"
  22. }
  23. src_install() {
  24. insinto /usr/lib/${PN}
  25. doins -r dist/
  26. exeinto /usr/lib/${PN}/bin
  27. doexe bin/${PN}
  28. dosym "../lib/${PN}/bin/${PN}" "/usr/bin/${PN}"
  29. dodoc README.md
  30. }