dev-util/claude-code-bin - 2.1.178 (headspace)

Search

Install

Install this version:

emerge -a =dev-util/claude-code-bin-2.1.178

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/claude-code-bin-2.1.178

Or alternatively:

emerge --autounmask-write -a =dev-util/claude-code-bin-2.1.178

Package Information

Description:
An agentic coding tool that lives in your terminal
Homepage:
https://github.com/anthropics/claude-code
License:
all-rights-reserved

Ebuild Details

Version EAPI Keywords Slot
2.1.178 8 ~amd64 0
View Raw Ebuild
EAPI=8

DESCRIPTION="An agentic coding tool that lives in your terminal"
HOMEPAGE="https://github.com/anthropics/claude-code"
SRC_URI="https://downloads.claude.ai/claude-code-releases/${PV}/linux-x64/claude -> ${P}"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror bindist"

RDEPEND="
  app-shells/bash
  dev-vcs/git
  sys-apps/ripgrep
  net-misc/wget
"
BDEPEND=""
S="${WORKDIR}/${P}"

QA_PREBUILT="opt/claude-code/bin/claude"

src_unpack() {
  mkdir -p "${S}"
  cp "${DISTDIR}/${P}" "${S}/claude"
}

src_install() {
  exeinto /opt/claude-code/bin
  newexe "${S}/claude" claude

  dosym /opt/claude-code/bin/claude /usr/bin/claude

  newenvd "${FILESDIR}/50claude-code" 50claude-code
}

Dependencies

RDEPEND

  app-shells/bash
  dev-vcs/git
  sys-apps/ripgrep
  net-misc/wget