libgnt/libgnt

Merged in release-2.x.y (pull request #97)
release-2.x.y
2020-06-21, Gary Kramlich
09f2a0717ce5
Merged in release-2.x.y (pull request #97)

Apparently ncurses isn't link to libtinfo in gentoo

Approved-by: Elliott Sales de Andrade
  • +6 -2
    meson.build
  • --- a/meson.build Thu Jun 18 05:13:34 2020 +0000
    +++ b/meson.build Sun Jun 21 08:32:01 2020 +0000
    @@ -71,9 +71,11 @@
    #######################################################################
    ncurses_available = true
    ncurses_inc = []
    +# The order of this list is important to the condition that follows.
    ncurses_libs = [
    compiler.find_library('ncursesw', required : false),
    - compiler.find_library('panelw', required : false)
    + compiler.find_library('panelw', required : false),
    + compiler.find_library('tinfow', required : false),
    ]
    if not ncurses_libs[0].found() or not ncurses_libs[1].found()
    ncurses_available = false
    @@ -112,9 +114,11 @@
    endif
    else
    # ncursesw was not found. Look for plain old ncurses
    + # The order of this list is important to the condition that follows.
    ncurses_libs = [
    compiler.find_library('ncurses', required : false),
    - compiler.find_library('panel', required : false)
    + compiler.find_library('panel', required : false),
    + compiler.find_library('tinfo', required : false),
    ]
    ncurses_available = ncurses_libs[0].found() and ncurses_libs[1].found()
    gnt_config.set('NO_WIDECHAR', true)