Kaynağa Gözat

Add openclaude

k4be 10 saat önce
ebeveyn
işleme
d797749f84

+ 2 - 0
dev-util/openclaude/Manifest

@@ -0,0 +1,2 @@
+DIST openclaude-0.2.3.tgz 4258102 BLAKE2B cbbf7d038e93dbec188b90a1b2c9da9f4d89eb1ee6a56998805b4e65e2802fe66c67c66dd93f7a792fe6c23e915b563a270b8d2ee9b094405af039f9be9c45b5 SHA512 b6d3f0d61ea29b9caeecc140cb27b61961d6d353fb62027e56930f4a8220ed953d33e1d4dc936c151c289b6ad5049104e7be156c7774f9f3b20ebfd62f0e0ebd
+DIST openclaude-0.3.0.tgz 4336172 BLAKE2B d92fdb95c474798e7ef1ae708746acb52ab5e0e66f0e6272cecf18e1087b6ec7377cb30f0cac37f3dd19cd5fa45e03510fde90c8751122c41c072220e33cedbb SHA512 352c7f51cf9834262822cd267f7a54eced45766e1e84240f3ec0389f8292b365678bd9ca9d89f6e93857abd7a57ef1c5f975202e7b8d5ddc7d53fe838c3c3df1

+ 20 - 0
dev-util/openclaude/metadata.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>k4be@k4be.pl</email>
+    <name>k4be</name>
+  </maintainer>
+  <longdescription>
+    OpenClaude is a fork of Claude Code that replaces the Anthropic API backend
+    with support for any OpenAI-compatible LLM provider, including OpenAI,
+    Gemini, DeepSeek, Ollama, and 200+ models via LiteLLM.
+
+    Versioned releases (non-9999) are installed from prebuilt npm tarballs and
+    require only Node.js at runtime. The live ebuild (9999) builds from source
+    and requires dev-lang/bun.
+  </longdescription>
+  <upstream>
+    <remote-id type="github">Gitlawb/openclaude</remote-id>
+  </upstream>
+</pkgmetadata>

+ 33 - 0
dev-util/openclaude/openclaude-0.2.3.ebuild

@@ -0,0 +1,33 @@
+# 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
+}

+ 33 - 0
dev-util/openclaude/openclaude-0.3.0.ebuild

@@ -0,0 +1,33 @@
+# 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
+}

+ 41 - 0
dev-util/openclaude/openclaude-9999.ebuild

@@ -0,0 +1,41 @@
+# 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/
+
+	exeinto /usr/lib/${PN}/bin
+	doexe bin/${PN}
+
+	dosym "../lib/${PN}/bin/${PN}" "/usr/bin/${PN}"
+
+	dodoc README.md
+}

+ 29 - 0
licenses/openclaude

@@ -0,0 +1,29 @@
+NOTICE
+
+This package contains code derived from Anthropic's Claude Code CLI.
+
+The original Claude Code source is proprietary software:
+  Copyright (c) Anthropic PBC. All rights reserved.
+  Subject to Anthropic's Commercial Terms of Service.
+
+Modifications and additions by OpenClaude contributors are offered under
+the MIT License where legally permissible:
+
+  MIT License
+  Copyright (c) 2026 OpenClaude contributors (modifications only)
+
+  Permission is hereby granted, free of charge, to any person obtaining
+  a copy of the modifications made by OpenClaude contributors, to deal
+  in those modifications without restriction, including without limitation
+  the rights to use, copy, modify, merge, publish, distribute, sublicense,
+  and/or sell copies, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included
+  in all copies or substantial portions of the modifications.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
+
+The underlying derived code remains subject to Anthropic's copyright.
+This project does not have Anthropic's authorization to distribute
+their proprietary source. Users and contributors should evaluate their
+own legal position.

+ 4 - 0
profiles/categories

@@ -0,0 +1,4 @@
+app-text
+dev-util
+sys-kernel
+sys-power