diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-20 14:45:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-20 14:45:01 +0100 |
commit | 34dea8e38f88007799629d0a56b12dec480b1d21 (patch) | |
tree | 6790873994b58030360328cf5897d934b3b03d16 /app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch | |
parent | 7932d472a02d4c016ff7dff4b7a5479ab9d1883d (diff) |
gentoo resync : 20.06.2021
Diffstat (limited to 'app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch')
-rw-r--r-- | app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch b/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch new file mode 100644 index 000000000000..e6f98906af3e --- /dev/null +++ b/app-misc/abook/files/abook-0.6.1-use-PKG_CHECK_MODULES-for-ncurses.patch @@ -0,0 +1,44 @@ +From: Sam James <sam@gentoo.org> +Date: Wed, 21 Apr 2021 06:06:13 +0100 +Subject: Use PKG_CHECK_MODULES for ncurses + +We don't _always_ have split tinfo, e.g. Prefix. +--- a/configure.ac ++++ b/configure.ac +@@ -74,31 +74,9 @@ dnl ------------------- + dnl (n)curses detection + dnl ------------------- + +-abook_cv_curses=/usr +-AC_ARG_WITH(curses, [ --with-curses=DIR Where ncurses is installed ], +- [if test $withval != yes; then +- abook_cv_curses=$withval +- fi +- if test x$abook_cv_curses != x/usr; then +- LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS" +- CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include" +- fi]) +- +-AC_CHECK_LIB(ncursesw, initscr, +- [LIBS="$LIBS -lncursesw" +- if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then +- CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" +- fi +- AC_CHECK_HEADERS(ncurses.h)],[ +- ac_widec_possible=no +- AC_CHECK_LIB(ncurses, initscr, +- [LIBS="$LIBS -lncurses" +- if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then +- CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" +- fi +- AC_CHECK_HEADERS(ncurses.h)], +- [CF_CURSES_LIBS]) +- ]) ++PKG_CHECK_MODULES(ncurses, ncurses) ++LDFLAGS="${ncurses_LIBS} $LDFLAGS" ++CPPFLAGS="${ncurses_CFLAGS} $CPPFLAGS" + + dnl -------------------------- + dnl end of (n)curses detection +-- + |