mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 11:04:10 -04:00
dev-util/bats-assert: add 2.2.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
40
dev-util/bats-assert/bats-assert-2.2.0.ebuild
Normal file
40
dev-util/bats-assert/bats-assert-2.2.0.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Common assertions for Bats"
|
||||
HOMEPAGE="https://github.com/bats-core/bats-assert"
|
||||
SRC_URI="https://github.com/bats-core/bats-assert/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="CC0-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-util/bats
|
||||
dev-util/bats-support
|
||||
"
|
||||
BDEPEND="test? ( ${RDEPEND} )"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# skip broken tests on bash 5.3
|
||||
# https://github.com/bats-core/bats-assert/issues/83
|
||||
sed -i "/@test .* not a valid extended regular expression/a skip 'broken on bash 5.3'" test/*.bats || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/${PN}"
|
||||
doins load.bash
|
||||
doins -r src
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
BATS_LIB_PATH=/usr/share bats test || die
|
||||
}
|
||||
Reference in New Issue
Block a user