app-editors/zile: Run tests with a sane terminal type.
authorUlrich Müller <ulm@gentoo.org>
Thu, 8 Feb 2018 21:13:04 +0000 (22:13 +0100)
committerUlrich Müller <ulm@gentoo.org>
Thu, 8 Feb 2018 21:13:37 +0000 (22:13 +0100)
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
app-editors/zile/zile-2.4.13.ebuild
app-editors/zile/zile-2.4.14.ebuild

index bc74d29787ac50a902d6a3edcd681fcacd4082c4..f60cd5b9ec32092df7235a4cc40a24c8bdedc0c1 100644 (file)
@@ -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
 
index d6136b4f5a1ebd00cb39251a8ded6778a0e1cf7a..52a77f4ede36176ae3edc57bed66552e1d5c7b10 100644 (file)
@@ -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
 
index 3438a470a0a9cfb694b27dd5c6b66fba3c5f60c3..6b6774de68e197e68f22ca15dad058f2b799f0af 100644 (file)
@@ -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