mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
dev-util/claude-code: drop 2.1.14
Signed-off-by: Jay Faulkner <jayf@gentoo.org>
This commit is contained in:
@@ -2,4 +2,3 @@ DIST claude-amd64-glibc-2.1.37 221426063 BLAKE2B ea5c3ad7d32306b3f652ae22a0a127f
|
||||
DIST claude-amd64-musl-2.1.37 213926119 BLAKE2B 0e00db9e4a36c545e7f61adddd91a161913fb7fdead67486581c97cc21fbf46fa61e012e1de43c920184a02d2060f464cf66d0feb85c6a3cac8c2649a1f8d29c SHA512 90ec7c2af87136059afc59a2e4bd030acb7ca2278c34181f267bb46ba45765bc3b7df425467f9e1081501aae8017dcea11164b6655fe5ecca288369c0529211d
|
||||
DIST claude-arm64-glibc-2.1.37 218584946 BLAKE2B e3e40b2a2a8f5d6b717e61953517ed54df0582122bd0d26d9ea298b03f67b127e9f2df20c28cba9aebad917b0435c59df5ef28d0a067be0482e4fadf810c1cb2 SHA512 1ce0fe454b7e9fa3533dca8196da27fb35bdd18197d17aff5401797050f6c7bf5a063e0e6aff8b392f1877eaec0bc3c4a969596dbee55d5313c56dcee27ff8c7
|
||||
DIST claude-arm64-musl-2.1.37 211768338 BLAKE2B 1bd086ba498db1f012391c31cede0c39a2fdb8d8be607dee6000309f3d877834679f24d22cbd5b8c0f414c9807e0594fafca189669343da02883fa68b33da944 SHA512 d105f620e0ffed79367bfa46d230401f02ce6697e44beb861889ee9184575d733653aefd2b4e9931959d8f3b2cabf593b65e7d68076a7594a93796cfc0f2dcee
|
||||
DIST claude-code-2.1.14.tgz 26380819 BLAKE2B c17b811cd9c98ee2aa4616a9811e9015e1988157d35cb1b16cc605d60962e9708b3b4c3f9f01eee2ddcbcb15938fb135b2817ba4588767befb4c98d9c1f55073 SHA512 18ba9b54ef7b37fa85b827f732d58d42f68e35fc12b18263f221135c023f8505742d283a7b1c23574bf5d9889a1dce77b541bb9b835e0dbc48157264f203106a
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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}/package"
|
||||
|
||||
# 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"
|
||||
|
||||
RESTRICT="bindist strip"
|
||||
|
||||
RDEPEND="
|
||||
>=net-libs/nodejs-18
|
||||
sys-apps/ripgrep
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
# Skip, nothing to compile here.
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md LICENSE.md
|
||||
|
||||
# We are using a strategy of "install everything that's left"
|
||||
# so removing these here will prevent duplicates in /opt/claude-code
|
||||
rm -f README.md LICENSE.md package.json || die
|
||||
# remove vendored ripgrep
|
||||
rm -rf vendor/ripgrep || die
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r ./*
|
||||
fperms a+x opt/claude-code/cli.js
|
||||
|
||||
dodir /opt/bin
|
||||
dosym -r /opt/${PN}/cli.js /opt/bin/claude
|
||||
|
||||
# https://bugs.gentoo.org/962002 indicates that Claude doesn't use
|
||||
# path to find the `rg` binary. Gross. So we symlink it into the place
|
||||
# they expect it to be. Thanks to Leo Douglas for the patch.
|
||||
if use amd64; then
|
||||
dodir /opt/${PN}/vendor/ripgrep/x64-linux
|
||||
dosym -r /usr/bin/rg /opt/${PN}/vendor/ripgrep/x64-linux/rg
|
||||
elif use arm64; then
|
||||
dodir /opt/{$PN}/vendor/ripgrep/arm64-linux
|
||||
dosym -r /usr/bin/rg /opt/${PN}/vendor/ripgrep/arm64-linux/rg
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
doins "${FILESDIR}/managed-settings.json"
|
||||
|
||||
# nodejs defaults to disabling deprecation warnings when running code
|
||||
# from any path containing a node_modules directory. Since we're installing
|
||||
# outside of the realm of npm, explicitly pass an option to disable
|
||||
# deprecation warnings so it behaves the same as it does if installed via
|
||||
# npm. It's proprietary; not like Gentoo users can fix the warnings anyway.
|
||||
sed -i 's/env node/env -S node --no-deprecation/' "${ED}/opt/claude-code/cli.js"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if test -f "${ROOT}/etc/${PN}/policies.json"; then
|
||||
mv "${ROOT}/etc/${PN}/policies.json" "${ROOT}/etc/${PN}/managed-settings.json"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user