Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/bats-support/
Date: Sat, 16 Oct 2021 10:21:42
Message-Id: 1634379664.f859a3cbbfb88262abe57618ffc269bb3bfe7f57.Alessandro-Barbieri@gentoo
1 commit: f859a3cbbfb88262abe57618ffc269bb3bfe7f57
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Oct 16 08:56:22 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Oct 16 10:21:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f859a3cb
7
8 dev-util/bats-support: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-util/bats-support/Manifest | 1 +
13 dev-util/bats-support/bats-support-0.3.0.ebuild | 30 +++++++++++++++++++++++++
14 dev-util/bats-support/metadata.xml | 23 +++++++++++++++++++
15 3 files changed, 54 insertions(+)
16
17 diff --git a/dev-util/bats-support/Manifest b/dev-util/bats-support/Manifest
18 new file mode 100644
19 index 000000000..82880344a
20 --- /dev/null
21 +++ b/dev-util/bats-support/Manifest
22 @@ -0,0 +1 @@
23 +DIST bats-support-0.3.0.tar.gz 10403 BLAKE2B 2cd488f420e2e1975f744aa15fb84e7e34b2226b06dcc6dc2959404e267d0d08b5c218b34da8e14b49ffb5c430545a2153c889904ccd08c74a7861495bca9c3d SHA512 417a8054462a44a6f46e375526cc1c920bae54ea76ddec3ff46603fe68bdb5c58f51bfb1c7e066347a3b71ff4d43986fd5157eb55151e0c4b5d189d81282ea14
24
25 diff --git a/dev-util/bats-support/bats-support-0.3.0.ebuild b/dev-util/bats-support/bats-support-0.3.0.ebuild
26 new file mode 100644
27 index 000000000..b3ac473cc
28 --- /dev/null
29 +++ b/dev-util/bats-support/bats-support-0.3.0.ebuild
30 @@ -0,0 +1,30 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DESCRIPTION="Supporting library for Bats test helpers"
37 +HOMEPAGE="https://github.com/bats-core/bats-support"
38 +SRC_URI="https://github.com/bats-core/bats-support/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +
40 +LICENSE="CC0-1.0"
41 +SLOT="0"
42 +KEYWORDS="~amd64"
43 +IUSE="test"
44 +
45 +RDEPEND="dev-util/bats"
46 +DEPEND="${RDEPEND}"
47 +
48 +DOCS=( README.md CHANGELOG.md )
49 +RESTRICT="!test? ( test )"
50 +
51 +src_install() {
52 + insinto "/usr/share/${PN}"
53 + doins *.bash
54 + doins -r src
55 + einstalldocs
56 +}
57 +
58 +src_test() {
59 + bats test || die
60 +}
61
62 diff --git a/dev-util/bats-support/metadata.xml b/dev-util/bats-support/metadata.xml
63 new file mode 100644
64 index 000000000..4705e2ed0
65 --- /dev/null
66 +++ b/dev-util/bats-support/metadata.xml
67 @@ -0,0 +1,23 @@
68 +<?xml version="1.0" encoding="UTF-8"?>
69 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
70 +<pkgmetadata>
71 + <maintainer type="person">
72 + <email>lssndrbarbieri@×××××.com</email>
73 + <name>Alessandro Barbieri</name>
74 + </maintainer>
75 + <upstream>
76 + <remote-id type="github">bats-core/bats-support</remote-id>
77 + </upstream>
78 + <longdescription lang="en">
79 +bats-support is a supporting library providing common functions to test helper libraries written for Bats.
80 +
81 +Features:
82 +
83 +error reporting
84 +output formatting
85 +language tools
86 +See the shared documentation to learn how to install and load this library.
87 +
88 +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.
89 + </longdescription>
90 +</pkgmetadata>