Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/zile/
Date: Thu, 08 Feb 2018 21:13:57
Message-Id: 1518124417.bb5c2d4765d595b56004ddd06acd8b671d049aec.ulm@gentoo
1 commit: bb5c2d4765d595b56004ddd06acd8b671d049aec
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 8 21:13:04 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 8 21:13:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb5c2d47
7
8 app-editors/zile: Run tests with a sane terminal type.
9
10 Closes: https://bugs.gentoo.org/646912
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 app-editors/zile/zile-2.3.24-r2.ebuild | 11 +++++++++++
14 app-editors/zile/zile-2.4.13.ebuild | 11 +++++++++++
15 app-editors/zile/zile-2.4.14.ebuild | 11 +++++++++++
16 3 files changed, 33 insertions(+)
17
18 diff --git a/app-editors/zile/zile-2.3.24-r2.ebuild b/app-editors/zile/zile-2.3.24-r2.ebuild
19 index bc74d29787a..f60cd5b9ec3 100644
20 --- a/app-editors/zile/zile-2.3.24-r2.ebuild
21 +++ b/app-editors/zile/zile-2.3.24-r2.ebuild
22 @@ -29,6 +29,17 @@ src_configure() {
23 CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
24 }
25
26 +src_test() {
27 + if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then
28 + # We have a sane terminal that can move the cursor
29 + emake check
30 + else
31 + ewarn "Terminal type \"${TERM}\" is too stupid to run zile"
32 + ewarn "Running the tests with TERM=vt100 instead"
33 + TERM=vt100 emake check
34 + fi
35 +}
36 +
37 src_install() {
38 emake DESTDIR="${D}" install
39
40
41 diff --git a/app-editors/zile/zile-2.4.13.ebuild b/app-editors/zile/zile-2.4.13.ebuild
42 index d6136b4f5a1..52a77f4ede3 100644
43 --- a/app-editors/zile/zile-2.4.13.ebuild
44 +++ b/app-editors/zile/zile-2.4.13.ebuild
45 @@ -33,6 +33,17 @@ src_configure() {
46 CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
47 }
48
49 +src_test() {
50 + if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then
51 + # We have a sane terminal that can move the cursor
52 + emake check
53 + else
54 + ewarn "Terminal type \"${TERM}\" is too stupid to run zile"
55 + ewarn "Running the tests with unset TERM instead"
56 + ( unset TERM; emake check )
57 + fi
58 +}
59 +
60 src_install() {
61 emake DESTDIR="${D}" install
62
63
64 diff --git a/app-editors/zile/zile-2.4.14.ebuild b/app-editors/zile/zile-2.4.14.ebuild
65 index 3438a470a0a..6b6774de68e 100644
66 --- a/app-editors/zile/zile-2.4.14.ebuild
67 +++ b/app-editors/zile/zile-2.4.14.ebuild
68 @@ -34,6 +34,17 @@ src_configure() {
69 CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
70 }
71
72 +src_test() {
73 + if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then
74 + # We have a sane terminal that can move the cursor
75 + emake check
76 + else
77 + ewarn "Terminal type \"${TERM}\" is too stupid to run zile"
78 + ewarn "Running the tests with unset TERM instead"
79 + ( unset TERM; emake check )
80 + fi
81 +}
82 +
83 src_install() {
84 emake DESTDIR="${D}" install