summaryrefslogtreecommitdiff
path: root/dev-util/bats
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-22 23:59:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-22 23:59:31 +0100
commit1f00990debeffd0052c194989d0a02baac23eb96 (patch)
treeecc3dfafe935354404f7a0689a6ad809ebaba580 /dev-util/bats
parent02eb6576978c38afed5787f6f2dbab8353379d66 (diff)
gentoo auto-resync : 22:04:2024 - 23:59:31
Diffstat (limited to 'dev-util/bats')
-rw-r--r--dev-util/bats/Manifest2
-rw-r--r--dev-util/bats/bats-1.11.0.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/bats/Manifest b/dev-util/bats/Manifest
index 0334a079df2a..18ffd1cf304b 100644
--- a/dev-util/bats/Manifest
+++ b/dev-util/bats/Manifest
@@ -1,3 +1,5 @@
DIST bats-1.10.0.tar.gz 159353 BLAKE2B 4d9e07f4b3da1cfadfd0ecbe00d611bc9a6ff8a6b55dba58e8ba4647e10265564d0cd64eb82a2b3ba483bc307b909f25913416057dc54ba8224c92cbff39c70e SHA512 31d98e26ff79354e8afd8eba2b19b1ca15ea4f1fbd16ad3936572688f49b33d68d38b6410c794f672572ee72cb535b11901759db67d4fa5656be2d0f6e050a99
+DIST bats-1.11.0.tar.gz 172044 BLAKE2B a86737e8f38e59031f926ce36e70417517095e2f34a9c6a8f1564879297dd097a44839343b66909e00338e53e8516a473e7b4bffc399166df87912e1e645809b SHA512 8f8dc767ba2d1551288942b50fdc73ef1f31e4dd1c6d7d539968454d286fff6509ed85d8728b4779d9b085e265ddf77e89a8cd8746f3afab0c7c3542eeacbd51
EBUILD bats-1.10.0.ebuild 952 BLAKE2B 8da03cbb70b7f02340941a7c3f464431fa8ec4403a95895c98cdcfb8cc577785b37663126c6219b288ef4822a1bc087ec3c452542db1d03939293da5980ccf20 SHA512 cfe52be91208981b2f92a7d6e50bbabcf946be544e9238c1ce2b80c87766856803e736392a3eef1cb6d66ddc96f24a53b3724eaf1ebdfb7799b5bc8ef3c21ce9
+EBUILD bats-1.11.0.ebuild 958 BLAKE2B 76e6cfd255bffaa1d3b0fe43f213d42549cbd3cdbcb53a78a74f288aef8b84e2cd88ca0794d07438f56b0e591368314bebfbc4c2e3fd539e459ca1dae8df31cd SHA512 cfb4bf4439882dce267f70edbda74f0c4a6e8977b20680f8a9ad09161b5ad4eb64d2024171c0f2e1e0db6bd9d5af96aef49f9d2cd9fb92d0b1891d10ac4e75cf
MISC metadata.xml 960 BLAKE2B 1eef5273fa063fbeb31bf73be2dd264f83a37a75ae5bfc116cfe6e97a0707349b9fdd6e0700505d7f698e63eeffeec2f72f9f9e853be3c3eb70ea80891fddde0 SHA512 906495ef8f00981f362302c4cc0f24aca8a9a7d4898e4f729941836b3bb126590c7d4863b37b6d216c1485cc96502c330ca03801c9cb271793ebd298285f8923
diff --git a/dev-util/bats/bats-1.11.0.ebuild b/dev-util/bats/bats-1.11.0.ebuild
new file mode 100644
index 000000000000..8685cf2be8b8
--- /dev/null
+++ b/dev-util/bats/bats-1.11.0.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"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+DEPEND="app-shells/bash:*"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+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
+}