From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BFE1E1382C5 for ; Thu, 8 Feb 2018 21:13:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE4C4E09D1; Thu, 8 Feb 2018 21:13:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E3F3E09D1 for ; Thu, 8 Feb 2018 21:13:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5B5E335C3C for ; Thu, 8 Feb 2018 21:13:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 16E3C1D4 for ; Thu, 8 Feb 2018 21:13:53 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1518124417.bb5c2d4765d595b56004ddd06acd8b671d049aec.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/zile/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/zile/zile-2.3.24-r2.ebuild app-editors/zile/zile-2.4.13.ebuild app-editors/zile/zile-2.4.14.ebuild X-VCS-Directories: app-editors/zile/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: bb5c2d4765d595b56004ddd06acd8b671d049aec X-VCS-Branch: master Date: Thu, 8 Feb 2018 21:13:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8e1c680c-c754-41cf-b999-283432ff55c5 X-Archives-Hash: b700490bcfdc45cb7fcef1c17787370f commit: bb5c2d4765d595b56004ddd06acd8b671d049aec Author: Ulrich Müller gentoo org> AuthorDate: Thu Feb 8 21:13:04 2018 +0000 Commit: Ulrich Müller gentoo 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