pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add a test for resize_term(3).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4acfc269eab3
branches:  trunk
changeset: 356861:4acfc269eab3
user:      roy <roy%pkgsrc.org@localhost>
date:      Thu Jan 05 21:32:39 2017 +0000

description:
Add a test for resize_term(3).

diffstat:

 mk/curses.builtin.mk |  66 +++++++++++++++++++++++++++++----------------------
 1 files changed, 38 insertions(+), 28 deletions(-)

diffs (95 lines):

diff -r e93fed402b7e -r 4acfc269eab3 mk/curses.builtin.mk
--- a/mk/curses.builtin.mk      Thu Jan 05 21:19:24 2017 +0000
+++ b/mk/curses.builtin.mk      Thu Jan 05 21:32:39 2017 +0000
@@ -1,46 +1,50 @@
-# $NetBSD: curses.builtin.mk,v 1.13 2017/01/05 21:19:24 roy Exp $
+# $NetBSD: curses.builtin.mk,v 1.14 2017/01/05 21:32:39 roy Exp $
 
 BUILTIN_PKG:=  curses
 
-BUILTIN_FIND_LIBS:=                    curses
-BUILTIN_FIND_HEADERS_VAR:=             H_CURSES
-BUILTIN_FIND_HEADERS.H_CURSES=         curses.h
+BUILTIN_FIND_LIBS:=                            curses
+BUILTIN_FIND_HEADERS_VAR:=                     H_CURSES
+BUILTIN_FIND_HEADERS.H_CURSES=                 curses.h
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_GETSYX
-BUILTIN_FIND_FILES.H_CURSES_GETSYX=    ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_GETSYX=     getsyx
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_GETSYX
+BUILTIN_FIND_FILES.H_CURSES_GETSYX=            ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_GETSYX=             getsyx
+
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_HALFDELAY
+BUILTIN_FIND_FILES.H_CURSES_HALFDELAY=         ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_HALFDELAY=          halfdelay
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_HALFDELAY
-BUILTIN_FIND_FILES.H_CURSES_HALFDELAY= ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_HALFDELAY=  halfdelay
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_PUTWIN
+BUILTIN_FIND_FILES.H_CURSES_PUTWIN=            ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_PUTWIN=             putwin
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_PUTWIN
-BUILTIN_FIND_FILES.H_CURSES_PUTWIN=    ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_PUTWIN=     putwin
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_RESIZE_TERM
+BUILTIN_FIND_FILES.H_CURSES_RESIZE_TERM=       ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_RESIZE_TERM=                resize_term
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_RESIZETERM
-BUILTIN_FIND_FILES.H_CURSES_RESIZETERM=        ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_RESIZETERM= resizeterm
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_RESIZETERM
+BUILTIN_FIND_FILES.H_CURSES_RESIZETERM=                ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_RESIZETERM=         resizeterm
 
 BUILTIN_FIND_FILES_VAR+=                       H_CURSES_SET_ESCDELAY
 BUILTIN_FIND_FILES.H_CURSES_SET_ESCDELAY=      ${H_CURSES}
 BUILTIN_FIND_GREP.H_CURSES_SET_ESCDELAY=       set_escdelay
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_WA_NORMAL
-BUILTIN_FIND_FILES.H_CURSES_WA_NORMAL= ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_WA_NORMAL=  WA_NORMAL
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_WA_NORMAL
+BUILTIN_FIND_FILES.H_CURSES_WA_NORMAL=         ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_WA_NORMAL=          WA_NORMAL
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_WGETNSTR
-BUILTIN_FIND_FILES.H_CURSES_WGETNSTR=  ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_WGETNSTR=   wgetnstr
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_WGETNSTR
+BUILTIN_FIND_FILES.H_CURSES_WGETNSTR=          ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_WGETNSTR=           wgetnstr
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_WSYNCUP
-BUILTIN_FIND_FILES.H_CURSES_WSYNCUP=   ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_WSYNCUP=    wsyncup
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_WSYNCUP
+BUILTIN_FIND_FILES.H_CURSES_WSYNCUP=           ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_WSYNCUP=            wsyncup
 
-BUILTIN_FIND_FILES_VAR+=               H_CURSES_MVWCHGAT
-BUILTIN_FIND_FILES.H_CURSES_MVWCHGAT=  ${H_CURSES}
-BUILTIN_FIND_GREP.H_CURSES_MVWCHGAT=   mvwchgat
+BUILTIN_FIND_FILES_VAR+=                       H_CURSES_MVWCHGAT
+BUILTIN_FIND_FILES.H_CURSES_MVWCHGAT=          ${H_CURSES}
+BUILTIN_FIND_GREP.H_CURSES_MVWCHGAT=           mvwchgat
 
 .include "buildlink3/bsd.builtin.mk"
 
@@ -109,6 +113,12 @@
 USE_BUILTIN.curses=    no
 .    endif
 .  endif
+# same for resize_term(3)
+.  if !empty(USE_CURSES:Mresize_term)
+.    if !empty(H_CURSES_RESIZE_TERM:M__nonexistent__)
+USE_BUILTIN.curses=    no
+.    endif
+.  endif
 # same for resizeterm(3)
 .  if !empty(USE_CURSES:Mresizeterm)
 .    if !empty(H_CURSES_RESIZETERM:M__nonexistent__)



Home | Main Index | Thread Index | Old Index