mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user