mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
dev-util/claude-code: add 1.0.30
Signed-off-by: Jay Faulkner <jayf@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST claude-code-1.0.28.tgz 55958813 BLAKE2B 3c4316a9e7f6a6f0253bdb942832c186964360f86a2fba8581393230aa5816ec82ca26ead9e188e0313422c110a45d515491fae69ace6ad1ff02d86a44826802 SHA512 a6277ad6e416b8c169dd454f793502d683c615807fcb19863ed137befb6d750dc38cc95c19991c5866efb360305eaba96cd6fa61c488db48fa1db12d6ade0c8b
|
||||
DIST claude-code-1.0.29.tgz 55959581 BLAKE2B c86c08af7ee0ef00506c7453fd64c2bdfe84a74928b73291cc058f51a38220ae783e2fb01b7ec39765d6ba60e652e90be84a08a64a74944575afb1051a802b17 SHA512 647c3ce19253c6d1bf8d32e2a13905d9c93ec21404290bc2ad8be33fe9d99d5162ace3d5d10c2927284ab1d1c552e7e76cee25a800ace1d34d9e1cb4225293cd
|
||||
DIST claude-code-1.0.30.tgz 55958500 BLAKE2B e86ff2c831823194d441bf21f86fe3984ce149c761c417620dbc7dc30ac0fd4e79b629e5851ca4a022aee7bf2c710b07611f43c0cdc1a3490d4163908183533d SHA512 a88b3dd82ab7845c27f7f95906d6bec1625f1a842cadb16e8959b46e4babc062b168957af486ebea161f494fe520a2dc6ef4b282467fb56471150b78e209c585
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit edo
|
||||
|
||||
DESCRIPTION="Claude Code - an agentic coding tool by Anthropic"
|
||||
HOMEPAGE="https://www.anthropic.com/claude-code"
|
||||
SRC_URI="https://registry.npmjs.org/@anthropic-ai/claude-code/-/claude-code-${PV}.tgz"
|
||||
S="${WORKDIR}"
|
||||
|
||||
# NOTE(JayF): claude-code is only usable via paid subscription and has a
|
||||
# clickthrough EULA-type license. Please see $HOMEPAGE for
|
||||
# full details.
|
||||
LICENSE="all-rights-reserved"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
QA_PREBUILT="usr/lib64/node_modules/@anthropic-ai/claude-code/vendor/*"
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="
|
||||
>=net-libs/nodejs-18
|
||||
sys-apps/ripgrep
|
||||
"
|
||||
BDEPEND=">=net-libs/nodejs-18[npm]"
|
||||
|
||||
src_unpack() {
|
||||
# npm installs the tarball directly
|
||||
:
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Skip, nothing to compile here.
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local -a my_npm_opts=(
|
||||
--audit false
|
||||
--color false
|
||||
--foreground-scripts
|
||||
--global
|
||||
--offline
|
||||
--omit dev
|
||||
--prefix "${ED}/usr"
|
||||
--progress false
|
||||
--verbose
|
||||
)
|
||||
edo npm "${my_npm_opts[@]}" install "${DISTDIR}/${P}.tgz"
|
||||
|
||||
rm -r "${ED}/usr/lib64/node_modules/@anthropic-ai/claude-code/vendor/ripgrep" || die
|
||||
insinto /etc/claude-code
|
||||
doins "${FILESDIR}/policies.json"
|
||||
}
|
||||
Reference in New Issue
Block a user