dev-util/claude-code: drop 1.0.89, 1.0.89-r1

No longer going to keep >1 version of claude-code, in line with how most
other -bin style packages are managed. This is not a -bin package
per-se, but it's non-oss that's directly extracted and came from a
vendor so I'm applying the same conventions.

Signed-off-by: Jay Faulkner <jayf@gentoo.org>
This commit is contained in:
Jay Faulkner
2025-08-25 08:45:59 -07:00
parent 04d01cb41d
commit a305ff20d1
3 changed files with 0 additions and 121 deletions

View File

@@ -1,2 +1 @@
DIST claude-code-1.0.89.tgz 35984824 BLAKE2B 30bdbc526309b96456a479e3d2754f4b0347c05f724667afe06e3738175fcabf4428f111a282b4bfd1ac5db4f96a8cfbce44c2441dce8328ba691e0065367b74 SHA512 14acc5034c21435a15a9dab71c6ee01376a88dc65f1b1ae1cdaf73ece3035059b860c0031d0c67e935b15acb39761cd7cdeeef77e40e9fc0ae1feb879e102be3
DIST claude-code-1.0.90.tgz 35984624 BLAKE2B f0261cf439f6ee1f1a596112cc4d863456b2bedc693cc68273fd4cee68db24eae2524f24b1f5b66fd767f2d1eddecd3fdbe0b83aa7467436776380faf8ee567e SHA512 c1a0bb182e1f9dfca21551534bb128e0c012fe2118a7233aec96455ebf81d3b6ce923058b41a9787befe67f6ed73223c371bd4b699c54b4479157914fed282c2

View File

@@ -1,64 +0,0 @@
# Copyright 1999-2025 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"
IUSE="jetbrains vscode"
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
# Install extentions these under /opt, and let users configure their
# IDEs appropriately if they have opted-into having them installed.
# Normally I wouldn't allow a few megs of data to be USE-flag-toggled,
# but removing these cuts the already-small package size in half, so
# it seems worth it.
use jetbrains || rm -r vendor/${PN}-jetbrains-plugin || die
use vscode || rm -r vendor/${PN}.vsix || 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
insinto /etc/${PN}
doins "${FILESDIR}/policies.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"
}

View File

@@ -1,56 +0,0 @@
# 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="bindist 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"
}