commit:     3aee4a342f0270b809e0c613c09762f8694c9b00
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 27 06:22:09 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 27 06:46:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aee4a34

dev-util/shunit2: add 2.1.8

- Add test
- Change LICENSE to Apache-2.0
- EAPI=8

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-util/shunit2/Manifest             |  1 +
 dev-util/shunit2/shunit2-2.1.8.ebuild | 37 +++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/dev-util/shunit2/Manifest b/dev-util/shunit2/Manifest
index 69f40733130..295f2a1406c 100644
--- a/dev-util/shunit2/Manifest
+++ b/dev-util/shunit2/Manifest
@@ -1 +1,2 @@
 DIST shunit2-2.1.6.tgz 61558 BLAKE2B 
0568dbe6ff9234346d85925a7f27dc2c8e9003a3266ef0bf7c1bb5f73e06ce758c7ff82933899c9a99e37c189d2efdc111fe5132c69a4d80535dc4d14b7ec8d5
 SHA512 
c78cf349d72a9048e4932108a62b2d1873019b9b1909c3fb1bd7e873e7bb62df58c1941d916508dc60ef6ba0261a2bc6ee9e25d654eefdcce997682f2bc748d7
+DIST shunit2-2.1.8.tar.gz 52458 BLAKE2B 
8b9a6f9d39636816369662a3fe3118901710bbb7b0fb5f3d367b3a7344b0c87d576982f0aedbd71a55ec57d4ad15eb0c57d1345bc6b68087d953373d6de2fb99
 SHA512 
15aaf28996c9fb5ee5419f63b50013a194a7416dea04eb34eae2481f05e0580bd2c6977ad002b421e2785e2024978fda869cad1ef4125857c2a5ea21bf44a06e

diff --git a/dev-util/shunit2/shunit2-2.1.8.ebuild 
b/dev-util/shunit2/shunit2-2.1.8.ebuild
new file mode 100644
index 00000000000..34e9c4ad071
--- /dev/null
+++ b/dev-util/shunit2/shunit2-2.1.8.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Unit-test framework for Bourne-based shell scripts"
+HOMEPAGE="https://github.com/kward/shunit2";
+SRC_URI="https://github.com/kward/shunit2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? (
+               app-shells/dash
+               app-shells/ksh
+               app-shells/zsh
+       )
+"
+
+src_test() {
+       rm shunit2_macros_test.sh || die
+       ./test_runner || die
+}
+
+src_install() {
+       dobin shunit2
+
+       # For backwards compat to <=2.1.5
+       dosym -r /usr/bin/shunit2 /usr/share/shunit2/shunit2
+
+       dodoc -r examples
+       dodoc doc/*.txt
+}

Reply via email to