mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-util/bats-assert: add 2.2.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST bats-assert-2.1.0.tar.gz 17670 BLAKE2B 936c1dc1b594c2792e5fcc85b90c3bfe270157efb4a1bc25c91de1f4ef721f0a6734b40b53725eb84a225701366f6d75140df348832bca0bffaf565ea5b9e75e SHA512 797689b91df5018b717c09578e1c0f6fea11f344c2e5985ec5eaca89bab39aafa7d88b31043a34576bcdf0ab5cf160c9624ee3167bd0854d7b16aa947b3928e4
|
||||
DIST bats-assert-2.2.0.tar.gz 23987 BLAKE2B 2f3171ad65db9f58f1e3a4408060edc87f3f1f0f96c9c300744b8492f11808da28c9edd5bdd71492eb4608775555df8c103c5843bfa86b78d7525964cfe528a4 SHA512 d4ae612466a4b29f2261228170c7af9ef06842536fcd5f3d39215648af66b1b96452fb78f81f6a0e0a7b12c7eb6167521a8f205a33da825cec28397696672cbe
|
||||
|
||||
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