summaryrefslogtreecommitdiff
path: root/dev-util/claude-code
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-util/claude-code
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-util/claude-code')
-rw-r--r--dev-util/claude-code/Manifest4
-rw-r--r--dev-util/claude-code/claude-code-2.1.162.ebuild63
-rw-r--r--dev-util/claude-code/files/managed-settings-native.json7
-rw-r--r--dev-util/claude-code/files/managed-settings.json5
-rw-r--r--dev-util/claude-code/metadata.xml15
5 files changed, 94 insertions, 0 deletions
diff --git a/dev-util/claude-code/Manifest b/dev-util/claude-code/Manifest
new file mode 100644
index 000000000000..a33e97a8facc
--- /dev/null
+++ b/dev-util/claude-code/Manifest
@@ -0,0 +1,4 @@
+DIST claude-amd64-glibc-2.1.162 244000464 BLAKE2B 2e51e627ef065ff1ac1aa8f953f3855847e3c8199e06f0a98fccd6ef69b1fb770198797180ef55e2fed6ff9e8f6c55e3d1216060609537df6d79d33725274168 SHA512 4c374719a15af89895af33dae3bf6d937a2f7671a4babf3389e1df33f50d250a915e3dadf3382daada86bae5d01c7123e67d5c1f401f7af37f9fa99ff7ef857f
+DIST claude-amd64-musl-2.1.162 238394416 BLAKE2B 350f4e6f5892972dfc1324e0759ebd30fd3c9d4abac0f1385480808baf36360c663eb685fca57854c4653ceb7f2774cdda4f53fb15fb2caab41eda8d6f7d1e24 SHA512 647a9de269533f463b2ed20d81158b0b9143ed08182f5ef229b07578f25ff68252f2331d4214f5ae62ba299a9d272a75f18dcefbd94e8f0b4081662a7fdf8874
+DIST claude-arm64-glibc-2.1.162 243906184 BLAKE2B 310ff0384f66f56d7a2d637340b461cc3a3cff4eb2d378352db2f54f09ee3fc05bbc8ddb73d80508f0be0bd2c6de32186397982637e17f1a7714172a3c2b05bc SHA512 b649a1f086909eb84a4e981bb9897f06819550ea894288a31013c2461828a2233395938174c508ce8650706ed6baa77b42010c26c046add7b9ec406bdb7ae31c
+DIST claude-arm64-musl-2.1.162 236760920 BLAKE2B 7a6b2ef40ad064b3287e4ab793d59dc089a9c4e8259782d196d48340c897a93ad2daba8a49b2b9be56cb3d6b6ae3241a8ca7f560d45d6a75acadc5b23723c69c SHA512 c2a6958c615220a1b6c3e5d01ba975799c21b860f407b99b85e2630f09effd8a43a4680da3c48a9f4021a760e17407bd47bb36029f52b56d19c9fa1ef7f86874
diff --git a/dev-util/claude-code/claude-code-2.1.162.ebuild b/dev-util/claude-code/claude-code-2.1.162.ebuild
new file mode 100644
index 000000000000..db11a157b462
--- /dev/null
+++ b/dev-util/claude-code/claude-code-2.1.162.ebuild
@@ -0,0 +1,63 @@
+# 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://claude.com/product/claude-code"
+
+# NOTE(JayF): Claude code's official install method is now curl|bash
+# the script is simple: it fetches the latest version,
+# downloads a manifest of files for that version, and
+# downloads a single binary claude executable matching.
+# All this from an unbranded GCS bucket (yikes).
+# https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh
+GCS_BUCKET="https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases"
+SRC_URI="
+ amd64? (
+ elibc_glibc? ( ${GCS_BUCKET}/${PV}/linux-x64/claude -> claude-amd64-glibc-${PV} )
+ elibc_musl? ( ${GCS_BUCKET}/${PV}/linux-x64-musl/claude -> claude-amd64-musl-${PV} )
+ )
+ arm64? (
+ elibc_glibc? ( ${GCS_BUCKET}/${PV}/linux-arm64/claude -> claude-arm64-glibc-${PV} )
+ elibc_musl? ( ${GCS_BUCKET}/${PV}/linux-arm64-musl/claude -> claude-arm64-musl-${PV} )
+ )"
+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 arm64"
+QA_PREBUILT="opt/bin/claude"
+
+RDEPEND="sys-apps/ripgrep"
+
+IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2"
+REQUIRED_USE="amd64? ( cpu_flags_x86_avx cpu_flags_x86_avx2 )"
+
+RESTRICT="bindist mirror strip"
+
+src_compile() {
+ # Skip, nothing to compile here.
+ :
+}
+
+src_install() {
+ # NOTE(JayF) Literally the file we download is all there is to
+ # install. It's just a binary. No docs. Nothing else.
+ exeinto /opt/bin
+ newexe "${DISTDIR}/${A[0]}" claude
+
+ insinto /etc/${PN}
+ newins "${FILESDIR}/managed-settings-native.json" managed-settings.json
+}
+
+pkg_postinst() {
+ if ! grep -q DISABLE_INSTALLATION_CHECKS /etc/claude-code/managed-settings.json; then
+ ewarn "Ensure you run etc-update or dispatch-conf before executing claude."
+ ewarn "Failure to properly integrate changes to /etc/claude-code/managed-settings.json"
+ ewarn "may lead to claude installing itself to your homedir without asking."
+ fi
+}
diff --git a/dev-util/claude-code/files/managed-settings-native.json b/dev-util/claude-code/files/managed-settings-native.json
new file mode 100644
index 000000000000..76c9967e3e8e
--- /dev/null
+++ b/dev-util/claude-code/files/managed-settings-native.json
@@ -0,0 +1,7 @@
+{
+ "env": {
+ "DISABLE_AUTOUPDATER": "1",
+ "DISABLE_INSTALLATION_CHECKS": "1"
+ },
+ "installMethod": "native"
+}
diff --git a/dev-util/claude-code/files/managed-settings.json b/dev-util/claude-code/files/managed-settings.json
new file mode 100644
index 000000000000..42ff91c3fc2c
--- /dev/null
+++ b/dev-util/claude-code/files/managed-settings.json
@@ -0,0 +1,5 @@
+{
+ "env": {
+ "DISABLE_AUTOUPDATER": "1"
+ }
+}
diff --git a/dev-util/claude-code/metadata.xml b/dev-util/claude-code/metadata.xml
new file mode 100644
index 000000000000..2cd6dd43cef2
--- /dev/null
+++ b/dev-util/claude-code/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jayf@gentoo.org</email>
+ <name>Jay Faulkner</name>
+ </maintainer>
+ <longdescription>
+ Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster through natural language commands.
+ </longdescription>
+ <upstream>
+ <doc>https://code.claude.com/docs/en/overview</doc>
+ </upstream>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>