app-misc/openclaude: add 0.13.0

OpenClaude is an open-source coding-agent CLI for cloud and local LLM providers.

- Fetches pre-built npm tarball from registry.npmjs.org
- Vendor tarball with production node_modules hosted on gentoo-zh-drafts
- Runtime deps: nodejs>=22, git, ripgrep
This commit is contained in:
Yongxiang Liang authored and jinqiang zhang committed 2026-05-24 08:10:22 +08:00
1 parent f412ed0b8c
commit b1089b8196
5 files changed
+86

No files matched your search

+1
View File
@@ -74,6 +74,7 @@ jobs:
skel.ChangeLog
skel.metadata.xml
.github
licenses
metadata
profiles
scripts
+2
View File
@@ -0,0 +1,2 @@
DIST openclaude-0.13.0-node_modules.tar.gz 28411408 BLAKE2B 9354fbcd0897be69cf15349f47ae73ad353c5e225a3f0c000cc432cf8b0a7890751e4614f223b279c5b9c6831bf94430e20daa3bd4bd3a2f77cf9774ffccc011 SHA512 45c0f406b89cdf8b1f22085e592a8c3108f365b0978e8a6da8bd8f245dd6569136c8ea162396f4556800f9c1991eb37c18b787105428a0dc780d374a3107bc76
DIST openclaude-0.13.0.tgz 6709089 BLAKE2B e82318424547a1c929ddae6bcbcb759c8d33e04f1bf0c40e81e9776de5fe5b66097a43b3e2042d3542eefa1962171f5366eecf034b5f0193f1ac7e4555541551 SHA512 4803de50e853af48db7d25aec43124659b8856a861124bb3db511678b6b0c2cd6d6025f365ca3288289e6d4cd1d7fb7a90bcb166208cf7731874ae4131ab8e60
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">Gitlawb/openclaude</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,47 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Open-source coding-agent CLI for cloud and local LLM providers"
HOMEPAGE="https://github.com/Gitlawb/openclaude"
# Scoped npm package: @gitlawb/openclaude
# Bundled dist/cli.mjs still has dynamic imports requiring node_modules at runtime.
# Vendor tarball with production node_modules is hosted on gentoo-zh-drafts.
SRC_URI="
https://registry.npmjs.org/@gitlawb/${PN}/-/${P}.tgz
https://github.com/gentoo-zh-drafts/openclaude/releases/download/v${PV}/${P}-node_modules.tar.gz
"
S="${WORKDIR}/package"
LICENSE="openclaude"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="bindist mirror strip"
QA_PREBUILT="
usr/lib/node_modules/@gitlawb/${PN}/node_modules/*
usr/lib64/node_modules/@gitlawb/${PN}/node_modules/*
"
RDEPEND="
>=net-libs/nodejs-22
dev-vcs/git
sys-apps/ripgrep
"
src_install() {
local install_dir="/usr/$(get_libdir)/node_modules/@gitlawb/${PN}"
insinto "${install_dir#${EPREFIX}}"
doins -r "${S}"/*
# Explicitly set execute permission only on files known to need it.
# If openclaude fails at runtime with EACCES, add the missing path here.
fperms +x "${install_dir}/bin/openclaude"
fperms +x "${install_dir}/node_modules/@vscode/ripgrep-linux-x64/bin/rg"
fperms +x "${install_dir}/node_modules/@anthropic-ai/sandbox-runtime/dist/vendor/seccomp/x64/apply-seccomp"
fperms +x "${install_dir}/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp"
dosym "../$(get_libdir)/node_modules/@gitlawb/${PN}/bin/openclaude" "/usr/bin/openclaude"
}
+29
View File
@@ -0,0 +1,29 @@
NOTICE
This repository 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.