From f859a3cbbfb88262abe57618ffc269bb3bfe7f57 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sat, 16 Oct 2021 10:56:22 +0200 Subject: [PATCH] dev-util/bats-support: initial import Signed-off-by: Alessandro Barbieri --- dev-util/bats-support/Manifest | 1 + .../bats-support/bats-support-0.3.0.ebuild | 30 +++++++++++++++++++ dev-util/bats-support/metadata.xml | 23 ++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 dev-util/bats-support/Manifest create mode 100644 dev-util/bats-support/bats-support-0.3.0.ebuild create mode 100644 dev-util/bats-support/metadata.xml diff --git a/dev-util/bats-support/Manifest b/dev-util/bats-support/Manifest new file mode 100644 index 0000000000..82880344ac --- /dev/null +++ b/dev-util/bats-support/Manifest @@ -0,0 +1 @@ +DIST bats-support-0.3.0.tar.gz 10403 BLAKE2B 2cd488f420e2e1975f744aa15fb84e7e34b2226b06dcc6dc2959404e267d0d08b5c218b34da8e14b49ffb5c430545a2153c889904ccd08c74a7861495bca9c3d SHA512 417a8054462a44a6f46e375526cc1c920bae54ea76ddec3ff46603fe68bdb5c58f51bfb1c7e066347a3b71ff4d43986fd5157eb55151e0c4b5d189d81282ea14 diff --git a/dev-util/bats-support/bats-support-0.3.0.ebuild b/dev-util/bats-support/bats-support-0.3.0.ebuild new file mode 100644 index 0000000000..b3ac473cc5 --- /dev/null +++ b/dev-util/bats-support/bats-support-0.3.0.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Supporting library for Bats test helpers" +HOMEPAGE="https://github.com/bats-core/bats-support" +SRC_URI="https://github.com/bats-core/bats-support/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RDEPEND="dev-util/bats" +DEPEND="${RDEPEND}" + +DOCS=( README.md CHANGELOG.md ) +RESTRICT="!test? ( test )" + +src_install() { + insinto "/usr/share/${PN}" + doins *.bash + doins -r src + einstalldocs +} + +src_test() { + bats test || die +} diff --git a/dev-util/bats-support/metadata.xml b/dev-util/bats-support/metadata.xml new file mode 100644 index 0000000000..4705e2ed09 --- /dev/null +++ b/dev-util/bats-support/metadata.xml @@ -0,0 +1,23 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + bats-core/bats-support + + +bats-support is a supporting library providing common functions to test helper libraries written for Bats. + +Features: + +error reporting +output formatting +language tools +See the shared documentation to learn how to install and load this library. + +If you want to use this library in your own helpers or just want to learn about its internals see the developer documentation in the source files. + +