dev-nodejs/shell-quote - 1.8.1 (lanodanOverlay)

Search

Package Information

Description:
quote and parse shell commands
Homepage:
https://github.com/ljharb/shell-quote
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.8.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit nodejs

DESCRIPTION="quote and parse shell commands"
HOMEPAGE="https://github.com/ljharb/shell-quote"
SRC_URI="https://github.com/ljharb/shell-quote/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

RESTRICT="!test? ( test )"

DEPEND="test? ( dev-nodejs/tape-lite )"
BDEPEND="dev-util/esbuild"

src_prepare() {
	default

	#sed -i '/"tests-only": /s;nyc tape;node --test;' package.json || die
	sed -i "s;require('tape');require('tape-lite');;" test/*.js || die
}

src_test() {
	node --test test/*.js || die
}

USE Flags

Dependencies

DEPEND

test? ( dev-nodejs/tape-lite )

BDEPEND

dev-util/esbuild

Manifest for 1.8.1

Type File Size Source URLs
DIST shell-quote-1.8.1.tar.gz 16929 bytes https://github.com/ljharb/shell-quote/archive/refs/tags/v1.8.1.tar.gz