dev-util/fixjson - 1.1.2-r1 (bennypowers)

Search

Install

Install this version:

emerge -a =dev-util/fixjson-1.1.2-r1

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

autounmask =dev-util/fixjson-1.1.2-r1

Or alternatively:

emerge --autounmask-write -a =dev-util/fixjson-1.1.2-r1

Package Information

Description:
JSON fixer and formatter for humans using relaxed JSON5
Homepage:
https://github.com/rhysd/fixjson
License:
MIT

Ebuild Details

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

EAPI=8

DESCRIPTION="JSON fixer and formatter for humans using relaxed JSON5"
HOMEPAGE="https://github.com/rhysd/fixjson"
SRC_URI="
	mirror://npm/${PN}/-/${PN}-${PV}.tgz -> ${P}.tgz
	https://github.com/bennypowers/gentoo-overlay/releases/download/${PN}/${P}-deps.tar.xz
"
S="${WORKDIR}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND=">=net-libs/nodejs-18"
BDEPEND=">=net-libs/nodejs-18[npm]"

src_unpack() {
	cd "${T}" || die "Could not cd to temporary directory"
	unpack ${P}-deps.tar.xz
}

src_install() {
	npm \
		--offline \
		--verbose \
		--progress false \
		--foreground-scripts \
		--global \
		--prefix "${ED}"/usr \
		--cache "${T}"/npm-cache \
		install "${DISTDIR}"/${P}.tgz || die "npm install failed"

	cd "${ED}"/usr/$(get_libdir)/node_modules/${PN} || die "cd failed"
	einstalldocs
}

Dependencies

RDEPEND

>=net-libs/nodejs-18

BDEPEND

>=net-libs/nodejs-18[npm]