1 |
commit: 3aee4a342f0270b809e0c613c09762f8694c9b00 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 27 06:22:09 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 27 06:46:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aee4a34 |
7 |
|
8 |
dev-util/shunit2: add 2.1.8 |
9 |
|
10 |
- Add test |
11 |
- Change LICENSE to Apache-2.0 |
12 |
- EAPI=8 |
13 |
|
14 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
15 |
|
16 |
dev-util/shunit2/Manifest | 1 + |
17 |
dev-util/shunit2/shunit2-2.1.8.ebuild | 37 +++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 38 insertions(+) |
19 |
|
20 |
diff --git a/dev-util/shunit2/Manifest b/dev-util/shunit2/Manifest |
21 |
index 69f40733130..295f2a1406c 100644 |
22 |
--- a/dev-util/shunit2/Manifest |
23 |
+++ b/dev-util/shunit2/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST shunit2-2.1.6.tgz 61558 BLAKE2B 0568dbe6ff9234346d85925a7f27dc2c8e9003a3266ef0bf7c1bb5f73e06ce758c7ff82933899c9a99e37c189d2efdc111fe5132c69a4d80535dc4d14b7ec8d5 SHA512 c78cf349d72a9048e4932108a62b2d1873019b9b1909c3fb1bd7e873e7bb62df58c1941d916508dc60ef6ba0261a2bc6ee9e25d654eefdcce997682f2bc748d7 |
26 |
+DIST shunit2-2.1.8.tar.gz 52458 BLAKE2B 8b9a6f9d39636816369662a3fe3118901710bbb7b0fb5f3d367b3a7344b0c87d576982f0aedbd71a55ec57d4ad15eb0c57d1345bc6b68087d953373d6de2fb99 SHA512 15aaf28996c9fb5ee5419f63b50013a194a7416dea04eb34eae2481f05e0580bd2c6977ad002b421e2785e2024978fda869cad1ef4125857c2a5ea21bf44a06e |
27 |
|
28 |
diff --git a/dev-util/shunit2/shunit2-2.1.8.ebuild b/dev-util/shunit2/shunit2-2.1.8.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..34e9c4ad071 |
31 |
--- /dev/null |
32 |
+++ b/dev-util/shunit2/shunit2-2.1.8.ebuild |
33 |
@@ -0,0 +1,37 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+DESCRIPTION="Unit-test framework for Bourne-based shell scripts" |
40 |
+HOMEPAGE="https://github.com/kward/shunit2" |
41 |
+SRC_URI="https://github.com/kward/shunit2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~ppc ~x86" |
46 |
+IUSE="test" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+BDEPEND=" |
50 |
+ test? ( |
51 |
+ app-shells/dash |
52 |
+ app-shells/ksh |
53 |
+ app-shells/zsh |
54 |
+ ) |
55 |
+" |
56 |
+ |
57 |
+src_test() { |
58 |
+ rm shunit2_macros_test.sh || die |
59 |
+ ./test_runner || die |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ dobin shunit2 |
64 |
+ |
65 |
+ # For backwards compat to <=2.1.5 |
66 |
+ dosym -r /usr/bin/shunit2 /usr/share/shunit2/shunit2 |
67 |
+ |
68 |
+ dodoc -r examples |
69 |
+ dodoc doc/*.txt |
70 |
+} |