summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Schild <henning@hennsch.de>2023-07-17 16:44:22 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-08-11 09:11:47 +0300
commit14cd5014ca9477e8f6f90582b2062a64cd6274c9 (patch)
tree1cbef5230ecfaa7011ff3fc749ec2c6be9b1e4d5 /dev-util
parentgames-engines/fheroes2: disable py3.9 (diff)
downloadgentoo-14cd5014ca9477e8f6f90582b2062a64cd6274c9.tar.gz
gentoo-14cd5014ca9477e8f6f90582b2062a64cd6274c9.tar.bz2
gentoo-14cd5014ca9477e8f6f90582b2062a64cd6274c9.zip
dev-util/bats: bump version to 1.10.0
Signed-off-by: Henning Schild <henning@hennsch.de> Closes: https://github.com/gentoo/gentoo/pull/31929 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/bats/Manifest1
-rw-r--r--dev-util/bats/bats-1.10.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-util/bats/Manifest b/dev-util/bats/Manifest
index fb6caf46d4ae..dff19cb010de 100644
--- a/dev-util/bats/Manifest
+++ b/dev-util/bats/Manifest
@@ -1 +1,2 @@
+DIST bats-1.10.0.tar.gz 159353 BLAKE2B 4d9e07f4b3da1cfadfd0ecbe00d611bc9a6ff8a6b55dba58e8ba4647e10265564d0cd64eb82a2b3ba483bc307b909f25913416057dc54ba8224c92cbff39c70e SHA512 31d98e26ff79354e8afd8eba2b19b1ca15ea4f1fbd16ad3936572688f49b33d68d38b6410c794f672572ee72cb535b11901759db67d4fa5656be2d0f6e050a99
DIST bats-1.9.0.tar.gz 151817 BLAKE2B 33ff5ec2b89a1605de2b838f3e6f68c1fc4dc15b6617fe001e87c387ccc4013d643b697fbbc7358950aaae556b36a614baa0ae8b38865d7428b3d8ee544516fa SHA512 743a1b3907c3a24eccd5d6fbfbdea3aec472ecf2b5c8cdd428d9dff8daa7f029ec30a2873f1beec2d758173e6f5ec892c03623dc70e56d73665c83343c9808fd
diff --git a/dev-util/bats/bats-1.10.0.ebuild b/dev-util/bats/bats-1.10.0.ebuild
new file mode 100644
index 000000000000..e29cd9e8ea34
--- /dev/null
+++ b/dev-util/bats/bats-1.10.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2023 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
+}