From 3b08f674e3f771b49370edb144dab0958c8cf721 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 31 Aug 2021 08:59:54 +0100 Subject: gentoo resync : 31.08.2021 --- dev-util/shunit2/shunit2-2.1.8.ebuild | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 dev-util/shunit2/shunit2-2.1.8.ebuild (limited to 'dev-util/shunit2/shunit2-2.1.8.ebuild') 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 000000000000..34e9c4ad0714 --- /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 +} -- cgit v1.2.3