dev-util/ccusage-bin - 20.0.20 (bentoo)

Search

Install

Install this version:

emerge -a =dev-util/ccusage-bin-20.0.20

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

autounmask =dev-util/ccusage-bin-20.0.20

Or alternatively:

emerge --autounmask-write -a =dev-util/ccusage-bin-20.0.20

Package Information

Description:
ccusage, a token usage and cost analyser for Claude Code and other agents
Homepage:
https://ccusage.com/ https://github.com/ccusage/ccusage
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
20.0.20 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN="${PN%-bin}"

DESCRIPTION="ccusage, a token usage and cost analyser for Claude Code and other agents"
HOMEPAGE="https://ccusage.com/ https://github.com/ccusage/ccusage"
# GitHub publishes no Linux asset. Upstream distributes through npm, where the
# main "ccusage" package is a 20 KB wrapper that refuses to run on its own --
# it prints "native binary is not available" and exits 1. The real payload is
# the per-platform package pinned below.
CCUSAGE_BASE="https://registry.npmjs.org/@${MY_PN}"
SRC_URI="
	amd64? (
		${CCUSAGE_BASE}/${MY_PN}-linux-x64/-/${MY_PN}-linux-x64-${PV}.tgz
			-> ${P}-amd64.tgz
	)
	arm64? (
		${CCUSAGE_BASE}/${MY_PN}-linux-arm64/-/${MY_PN}-linux-arm64-${PV}.tgz
			-> ${P}-arm64.tgz
	)
"
S="${WORKDIR}/package"

LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="bindist mirror strip"

QA_PREBUILT="*"

src_install() {
	# The binary is static-pie and self-contained: it needs neither Node nor
	# the JavaScript wrapper, so it goes straight into /usr/bin rather than
	# under /opt with a launcher. npm ships it mode 0644; doexe restores the
	# executable bit.
	exeinto /usr/bin
	doexe bin/${MY_PN}
}

Manifest for 20.0.20

Type File Size Source URLs
DIST ccusage-bin-20.0.20-amd64.tgz 2244899 bytes https://registry.npmjs.org/@ccusage/ccusage-linux-x64/-/ccusage-linux-x64-20.0.20.tgz
DIST ccusage-bin-20.0.20-arm64.tgz 2161726 bytes https://registry.npmjs.org/@ccusage/ccusage-linux-arm64/-/ccusage-linux-arm64-20.0.20.tgz