dev-util/rulesync - 16.26.1 (mndz)

Search

Install

Install this version:

emerge -a =dev-util/rulesync-16.26.1

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

autounmask =dev-util/rulesync-16.26.1

Or alternatively:

emerge --autounmask-write -a =dev-util/rulesync-16.26.1

Package Information

Description:
Unified AI-agent configuration generator CLI
Homepage:
https://github.com/dyoshikawa/rulesync
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
16.26.1 8 ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x64-macos ~x86 0
View Raw Ebuild
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Unified AI-agent configuration generator CLI"
HOMEPAGE="https://github.com/dyoshikawa/rulesync"
SRC_URI="
	https://registry.npmjs.org/rulesync/-/rulesync-${PV}.tgz
		-> ${P}.tgz
	https://github.com/0x6d6e647a/mndz-overlay-assets/releases/download/rulesync-${PV}/rulesync-${PV}-deps.tar.xz
"
S="${WORKDIR}/package"

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

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x64-macos ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND=">=net-libs/nodejs-22.0.0[npm]"
BDEPEND="${RDEPEND}"

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"
}

src_test() {
	# Published npm package omits unit tests (files filter excludes them).
	# Offline CLI smoke using the same deps cache layout as src_install.
	local prefix="${T}/rulesync-test-prefix"
	npm \
		--offline \
		--progress false \
		--global \
		--prefix "${prefix}/usr" \
		--cache "${T}/npm-cache" \
		install "${DISTDIR}/${P}.tgz" || die "npm install for tests failed"
	"${prefix}/usr/bin/rulesync" --help >/dev/null || die "rulesync --help failed"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/rulesync | euse -E <flag> -p dev-util/rulesync | euse -D <flag> -p dev-util/rulesync

Global/Standard Flags

Dependencies

RDEPEND

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

BDEPEND

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

Manifest for 16.26.1

Type File Size Source URLs
DIST rulesync-16.26.1-deps.tar.xz 30369488 bytes https://github.com/0x6d6e647a/mndz-overlay-assets/releases/download/rulesync-16.26.1/rulesync-16.26.1-deps.tar.xz
DIST rulesync-16.26.1.tgz 3442177 bytes https://registry.npmjs.org/rulesync/-/rulesync-16.26.1.tgz