app-misc/xdg-ninja - 9999 (gentoo-zh)

Search

Install

Install this version:

emerge -a =app-misc/xdg-ninja-9999

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

autounmask =app-misc/xdg-ninja-9999

Or alternatively:

emerge --autounmask-write -a =app-misc/xdg-ninja-9999

Package Information

Description:
Check the home directory for files that violate the XDG specification
Homepage:
https://github.com/b3nj5m1n/xdg-ninja
License:
MIT

Ebuild Details

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

EAPI=8

inherit git-r3 optfeature

DESCRIPTION="Check the home directory for files that violate the XDG specification"
HOMEPAGE="https://github.com/b3nj5m1n/xdg-ninja"
EGIT_REPO_URI="https://github.com/b3nj5m1n/${PN}.git"

LICENSE="MIT"
SLOT="0"

RDEPEND="app-misc/jq"

src_test() {
	sh -n xdg-ninja.sh || die
	find programs -type f -exec jq empty {} + || die
}

src_install() {
	newbin xdg-ninja.sh xdg-ninja
	insinto /usr/share/${PN}
	doins -r programs
	doman man/xdg-ninja.1
	dodoc README.md
}

pkg_postinst() {
	optfeature "Markdown rendering" sys-apps/bat dev-python/pygments app-text/highlight
}

Inherited Eclasses

Dependencies

RDEPEND

app-misc/jq