public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/zile/
Date: Thu,  8 Feb 2018 21:13:53 +0000 (UTC)	[thread overview]
Message-ID: <1518124417.bb5c2d4765d595b56004ddd06acd8b671d049aec.ulm@gentoo> (raw)

commit:     bb5c2d4765d595b56004ddd06acd8b671d049aec
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  8 21:13:04 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Feb  8 21:13:37 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb5c2d47

app-editors/zile: Run tests with a sane terminal type.

Closes: https://bugs.gentoo.org/646912
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-editors/zile/zile-2.3.24-r2.ebuild | 11 +++++++++++
 app-editors/zile/zile-2.4.13.ebuild    | 11 +++++++++++
 app-editors/zile/zile-2.4.14.ebuild    | 11 +++++++++++
 3 files changed, 33 insertions(+)

diff --git a/app-editors/zile/zile-2.3.24-r2.ebuild b/app-editors/zile/zile-2.3.24-r2.ebuild
index bc74d29787a..f60cd5b9ec3 100644
--- a/app-editors/zile/zile-2.3.24-r2.ebuild
+++ b/app-editors/zile/zile-2.3.24-r2.ebuild
@@ -29,6 +29,17 @@ src_configure() {
 		CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
 }
 
+src_test() {
+	if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then
+		# We have a sane terminal that can move the cursor
+		emake check
+	else
+		ewarn "Terminal type \"${TERM}\" is too stupid to run zile"
+		ewarn "Running the tests with TERM=vt100 instead"
+		TERM=vt100 emake check
+	fi
+}
+
 src_install() {
 	emake DESTDIR="${D}" install
 

diff --git a/app-editors/zile/zile-2.4.13.ebuild b/app-editors/zile/zile-2.4.13.ebuild
index d6136b4f5a1..52a77f4ede3 100644
--- a/app-editors/zile/zile-2.4.13.ebuild
+++ b/app-editors/zile/zile-2.4.13.ebuild
@@ -33,6 +33,17 @@ src_configure() {
 		CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
 }
 
+src_test() {
+	if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then
+		# We have a sane terminal that can move the cursor
+		emake check
+	else
+		ewarn "Terminal type \"${TERM}\" is too stupid to run zile"
+		ewarn "Running the tests with unset TERM instead"
+		( unset TERM; emake check )
+	fi
+}
+
 src_install() {
 	emake DESTDIR="${D}" install
 

diff --git a/app-editors/zile/zile-2.4.14.ebuild b/app-editors/zile/zile-2.4.14.ebuild
index 3438a470a0a..6b6774de68e 100644
--- a/app-editors/zile/zile-2.4.14.ebuild
+++ b/app-editors/zile/zile-2.4.14.ebuild
@@ -34,6 +34,17 @@ src_configure() {
 		CURSES_LIB="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
 }
 
+src_test() {
+	if tput cup 0 0 >/dev/null || tput cuu1 >/dev/null; then
+		# We have a sane terminal that can move the cursor
+		emake check
+	else
+		ewarn "Terminal type \"${TERM}\" is too stupid to run zile"
+		ewarn "Running the tests with unset TERM instead"
+		( unset TERM; emake check )
+	fi
+}
+
 src_install() {
 	emake DESTDIR="${D}" install
 


             reply	other threads:[~2018-02-08 21:13 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-08 21:13 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-05 20:41 [gentoo-commits] repo/gentoo:master commit in: app-editors/zile/ Ulrich Müller
2023-01-01 14:48 David Seifert
2022-06-08  8:31 Yixun Lan
2022-04-14  8:11 Agostino Sarubbo
2022-04-02  7:46 Arthur Zamarin
2022-03-29  7:27 Agostino Sarubbo
2022-03-28  6:53 Agostino Sarubbo
2022-03-28  6:52 Agostino Sarubbo
2022-03-26 16:54 Arthur Zamarin
2022-03-22  8:27 Ulrich Müller
2022-03-21  9:18 Jakov Smolić
2022-03-19 19:21 Agostino Sarubbo
2022-03-19  7:56 Agostino Sarubbo
2022-03-19  7:53 Agostino Sarubbo
2022-03-18 18:09 Sam James
2022-02-20  9:35 Ulrich Müller
2022-02-14 15:59 Ulrich Müller
2021-02-15  8:44 Ulrich Müller
2021-02-15  1:49 Sam James
2021-02-14  2:10 Sam James
2021-02-07  1:07 Sam James
2021-02-04 14:09 Sam James
2021-02-04  8:12 Agostino Sarubbo
2021-02-04  8:00 Sam James
2021-01-06 13:03 Fabian Groffen
2021-01-02 14:02 Ulrich Müller
2019-09-13 21:24 Ulrich Müller
2019-09-13 18:13 Mikle Kolyada
2019-08-25 16:29 Aaron Bauman
2019-08-23 16:33 Agostino Sarubbo
2019-08-23 12:53 Agostino Sarubbo
2019-08-19 11:37 Agostino Sarubbo
2019-08-19  5:43 Agostino Sarubbo
2019-08-18 10:10 Sergei Trofimovich
2019-08-17 22:55 Ulrich Müller
2018-06-04 19:25 Mart Raudsepp
2018-04-01 15:54 Ulrich Müller
2018-04-01 14:22 Sergei Trofimovich
2018-03-28  5:05 Markus Meier
2018-03-04 17:07 Tobias Klausmann
2018-02-22  9:05 Agostino Sarubbo
2018-02-08 22:13 Sergei Trofimovich
2018-02-07 22:27 Ulrich Müller
2018-02-07  6:04 Thomas Deutschmann
2018-02-06 20:58 Ulrich Müller
2018-02-06 20:58 Ulrich Müller
2018-02-06 20:58 Ulrich Müller
2018-01-29 21:23 Ulrich Müller
2018-01-29 21:23 Ulrich Müller
2017-07-01  8:36 Ulrich Müller
2017-07-01  8:36 Ulrich Müller
2017-01-29 14:38 Fabian Groffen
2016-02-09 21:37 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1518124417.bb5c2d4765d595b56004ddd06acd8b671d049aec.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox