summaryrefslogtreecommitdiff
path: root/dev-util/bats
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-06 02:07:39 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-06 02:07:39 +0000
commitd285f0ab4ab38d4ea1cd0757a465db5f06764e06 (patch)
tree1fec673dcd26669902404a2986868912c5b41860 /dev-util/bats
parenta6764d56b1c85c8272783500983011c143c72d80 (diff)
gentoo auto-resync : 06:12:2024 - 02:07:38
Diffstat (limited to 'dev-util/bats')
-rw-r--r--dev-util/bats/Manifest2
-rw-r--r--dev-util/bats/bats-1.11.1.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/bats/Manifest b/dev-util/bats/Manifest
index 4989b28580a9..514558e5de06 100644
--- a/dev-util/bats/Manifest
+++ b/dev-util/bats/Manifest
@@ -1,3 +1,5 @@
DIST bats-1.11.0.tar.gz 172044 BLAKE2B a86737e8f38e59031f926ce36e70417517095e2f34a9c6a8f1564879297dd097a44839343b66909e00338e53e8516a473e7b4bffc399166df87912e1e645809b SHA512 8f8dc767ba2d1551288942b50fdc73ef1f31e4dd1c6d7d539968454d286fff6509ed85d8728b4779d9b085e265ddf77e89a8cd8746f3afab0c7c3542eeacbd51
+DIST bats-1.11.1.tar.gz 174699 BLAKE2B 3e64257d45344a9e0a77178a77fe9f19f65aae6bb4cbba497e6ee960cb2a1d8bbcc5078b0600024f25da5c298d075c89d1fe054ee0529fb23489af05b97c1e80 SHA512 56faccadebc92555418c6aa6cb1985e7928d6db9c7bdbdd788f3dd55e82ef831d2389aa5b7198dd810fa6fd9dc6cfae78f7a10149e3027ed4f6517ede02dd8c3
EBUILD bats-1.11.0.ebuild 952 BLAKE2B c9e854e3d4c19831c39df962422c61c44b6ea672b18f27bc61c8b2dc96c2ab22dbc7c2b7fae7a918a770b8f93886724e2b4f1c57a9787c2afc129f719c357bd5 SHA512 773d5ea9376ae243ec5c5d79c3c4da6b52b84b3f7025c9e03fe3be9309c9274fa83908c5fe2a136a8ae1a00e110d0d58eb8fcd65099fcf6bbc617ab4cbc2c2f3
+EBUILD bats-1.11.1.ebuild 958 BLAKE2B b8435e6685ac30545c4c30af85d64304a3c5384eab54d6372b1bb92c6b1fdd0c1fc9a0e9f570d7a17cbef9bd32a77ff77b40967268e99bdf9e65d86ba00ea9fa SHA512 48c41b499edbc7f9729a052c609dc43d2c80322c73593aabc3d5efeb91b6339c4eea51fa863ddd09be1acbce7651ef061473eec3ad52454db442c5da302df726
MISC metadata.xml 960 BLAKE2B 1eef5273fa063fbeb31bf73be2dd264f83a37a75ae5bfc116cfe6e97a0707349b9fdd6e0700505d7f698e63eeffeec2f72f9f9e853be3c3eb70ea80891fddde0 SHA512 906495ef8f00981f362302c4cc0f24aca8a9a7d4898e4f729941836b3bb126590c7d4863b37b6d216c1485cc96502c330ca03801c9cb271793ebd298285f8923
diff --git a/dev-util/bats/bats-1.11.1.ebuild b/dev-util/bats/bats-1.11.1.ebuild
new file mode 100644
index 000000000000..cf782a5559be
--- /dev/null
+++ b/dev-util/bats/bats-1.11.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 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
+}