From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F00E515806C for ; Sat, 12 Jul 2025 22:12:19 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id DE387341F13 for ; Sat, 12 Jul 2025 22:12:19 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id D48BE11036B; Sat, 12 Jul 2025 22:12:18 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id CA0FB11036B for ; Sat, 12 Jul 2025 22:12:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81E3C341E78 for ; Sat, 12 Jul 2025 22:12:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC0FC1851 for ; Sat, 12 Jul 2025 22:12:16 +0000 (UTC) From: "Jay Faulkner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jay Faulkner" Message-ID: <1752358313.2e760d98fac25e85e1aec58d25cf7d5e75484e52.jayf@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/claude-code/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/claude-code/Manifest dev-util/claude-code/claude-code-1.0.51.ebuild X-VCS-Directories: dev-util/claude-code/ X-VCS-Committer: jayf X-VCS-Committer-Name: Jay Faulkner X-VCS-Revision: 2e760d98fac25e85e1aec58d25cf7d5e75484e52 X-VCS-Branch: master Date: Sat, 12 Jul 2025 22:12:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8fd90f6e-e416-40ca-886d-1bb975d07988 X-Archives-Hash: bad3170cdfb199306edcf0fdc78a68fd commit: 2e760d98fac25e85e1aec58d25cf7d5e75484e52 Author: Jay Faulkner gentoo org> AuthorDate: Sat Jul 12 22:09:27 2025 +0000 Commit: Jay Faulkner gentoo org> CommitDate: Sat Jul 12 22:11:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e760d98 dev-util/claude-code: add 1.0.51 Signed-off-by: Jay Faulkner gentoo.org> dev-util/claude-code/Manifest | 1 + dev-util/claude-code/claude-code-1.0.51.ebuild | 56 ++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-util/claude-code/Manifest b/dev-util/claude-code/Manifest index bd84948e281f..8e894bada46e 100644 --- a/dev-util/claude-code/Manifest +++ b/dev-util/claude-code/Manifest @@ -1 +1,2 @@ DIST claude-code-1.0.43.tgz 56057308 BLAKE2B c906a8c617774860bffb5f97c586b763ccae3daebb691bdfda979aacc9cbf1a22726576b159a593785b8fe8bae2086555f29aa9dc4d0a2f1cc18f20d518b4960 SHA512 567b912b8b3f47d6514e4c07e20523b29e12881417abb634078eceb607972196154189214d6f26f84d088ac1735d7148c9342b1344a87460a9be02e1018cc60a +DIST claude-code-1.0.51.tgz 56074513 BLAKE2B 26010a7b43ec14cd5957ae1d828dc937f7094d16c9099e271ab8404486f074aaccc8a3cd9d42652378e2629adb7c366a91ed08335fb22cabf2535c49ffcf6f08 SHA512 6a79c17387b3ee70cf6e9f9d8ba6e32101a201d99d5659f8937800622a329b6331384977a72e6ced2b2847e74d4a67e07c81d474a0536ed5e75c3e6b9263b968 diff --git a/dev-util/claude-code/claude-code-1.0.51.ebuild b/dev-util/claude-code/claude-code-1.0.51.ebuild new file mode 100644 index 000000000000..dbc6bd6becb3 --- /dev/null +++ b/dev-util/claude-code/claude-code-1.0.51.ebuild @@ -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" +}