dev-util/bats: bump version to 1.12.0

Signed-off-by: Henning Schild <henning@hennsch.de>
Part-of: https://github.com/gentoo/gentoo/pull/42151
Closes: https://github.com/gentoo/gentoo/pull/42151
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Henning Schild
2025-05-19 16:13:01 +02:00
committed by Sam James
parent 0b9109b57a
commit d87be45583
2 changed files with 44 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST bats-1.11.1.tar.gz 174699 BLAKE2B 3e64257d45344a9e0a77178a77fe9f19f65aae6bb4cbba497e6ee960cb2a1d8bbcc5078b0600024f25da5c298d075c89d1fe054ee0529fb23489af05b97c1e80 SHA512 56faccadebc92555418c6aa6cb1985e7928d6db9c7bdbdd788f3dd55e82ef831d2389aa5b7198dd810fa6fd9dc6cfae78f7a10149e3027ed4f6517ede02dd8c3
DIST bats-1.12.0.tar.gz 175914 BLAKE2B 1c5f93888d1f58d029c2a42b3692529e2c5bb37c3577125125283f28f21bf3b86e5b2b991d73e06530e3db2c1f47a29f2d3a028dc45a46ec7007ef29a9f96bad SHA512 df32f5c69cea53d062da331aa5aa61191bde9f4836fb1a3b149e7a1205351dc29c6797e7329bc98fb793e8f5d5cb9e10dd3d6a106e362c2ce32b089a8c67e210

View File

@@ -0,0 +1,43 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit multiprocessing optfeature
MY_PN="bats-core"
DESCRIPTION="Bats-core: Bash Automated Testing System"
HOMEPAGE="https://github.com/bats-core/bats-core/"
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
DEPEND="app-shells/bash:*"
RDEPEND="${DEPEND}"
src_test() {
local my_jobs=$(get_nproc)
if ! command -v parallel >/dev/null; then
my_jobs=1
fi
bin/bats --tap --jobs "${my_jobs}" test || die "Tests failed"
}
src_install() {
exeinto /usr/libexec/${MY_PN}
doexe libexec/${MY_PN}/*
exeinto /usr/lib/${MY_PN}
doexe lib/${MY_PN}/*
dobin bin/${PN}
dodoc README.md
doman man/${PN}.1 man/${PN}.7
}
pkg_postinst() {
optfeature "Parallel Execution" sys-process/parallel
}