1 |
commit: 41ea1f45ef8603a287ff4723df43dac0103843ce |
2 |
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 4 12:09:21 2022 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 4 12:10:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41ea1f45 |
7 |
|
8 |
dev-util/shc-4.0.3: fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836761 |
11 |
Reported-by: Agostino Sarubbo <ago <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org> |
14 |
|
15 |
dev-util/shc/shc-4.0.3.ebuild | 24 ++++++++++++++++++++++++ |
16 |
1 file changed, 24 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/shc/shc-4.0.3.ebuild b/dev-util/shc/shc-4.0.3.ebuild |
19 |
index 4bc77efcd7a9..818f2d0868eb 100644 |
20 |
--- a/dev-util/shc/shc-4.0.3.ebuild |
21 |
+++ b/dev-util/shc/shc-4.0.3.ebuild |
22 |
@@ -11,6 +11,30 @@ LICENSE="GPL-2" |
23 |
SLOT="0" |
24 |
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" |
25 |
|
26 |
+IUSE="test" |
27 |
+ |
28 |
+DEPEND="test? ( |
29 |
+ app-shells/bash:0 |
30 |
+ app-shells/dash |
31 |
+ app-shells/ksh |
32 |
+ app-shells/tcsh |
33 |
+ app-shells/zsh |
34 |
+)" |
35 |
+RDEPEND="" |
36 |
+ |
37 |
+src_prepare() { |
38 |
+ # ash requires sys-apps/busybox[make-symlinks], so exclude it too |
39 |
+ # Exclude app-shells/rc from tests |
40 |
+ # Fix path for app-shells/tcsh |
41 |
+ sed -i \ |
42 |
+ -e "s:'/bin/ash'::" \ |
43 |
+ -e "s:'/usr/bin/rc'::" \ |
44 |
+ -e "s:/usr/bin/tcsh:/bin/tcsh:" \ |
45 |
+ test/ttest.sh || die |
46 |
+ |
47 |
+ default |
48 |
+} |
49 |
+ |
50 |
src_install() { |
51 |
dobin src/shc |
52 |
doman shc.1 |