diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-05-31 22:22:06 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-05-31 22:22:32 +0100 |
commit | 5284495bcc20ee27aa9925605db781156ccc4f4c (patch) | |
tree | 5039bd8dd5abb70fbb886b7c8509ae3229db4bdf /games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch | |
parent | package.mask: Link the python-werkzeug issue (diff) | |
download | gentoo-5284495bcc20ee27aa9925605db781156ccc4f4c.tar.gz gentoo-5284495bcc20ee27aa9925605db781156ccc4f4c.tar.bz2 gentoo-5284495bcc20ee27aa9925605db781156ccc4f4c.zip |
games-roguelike/hengband: Version bump to 2.1.2, EAPI 8
Closes: https://bugs.gentoo.org/846815
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch')
-rw-r--r-- | games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch b/games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch new file mode 100644 index 000000000000..4f695310d7b5 --- /dev/null +++ b/games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch @@ -0,0 +1,28 @@ +diff -Naur a/configure.ac b/configure.ac +--- a/configure.ac 2018-03-19 11:04:42.000000000 +0000 ++++ b/configure.ac 2022-05-31 22:18:52.959822579 +0100 +@@ -51,16 +51,14 @@ + + dnl Checks for libraries. + dnl Replace `main' with a function in -lncurses: +-AC_CHECK_LIB(ncursesw, initscr, [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) AC_DEFINE(USE_NCURSES, 1, [Use ncurses]) LIBS="$LIBS -lncursesw"]) +-if test "$ac_cv_lib_ncursesw_initscr" != yes; then +- AC_CHECK_LIB(ncurses, initscr, [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) AC_DEFINE(USE_NCURSES, 1, [Use ncurses]) LIBS="$LIBS -lncurses"]) +- if test "$ac_cv_lib_ncurses_initscr" != yes; then +- AC_CHECK_LIB(curses, initscr, [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) LIBS="$LIBS -lcurses"]) +- if test "$ac_cv_lib_curses_initscr" != yes; then +- AC_CHECK_LIB(termcap, tgetent, [AC_DEFINE(USE_CAP, 1, [Allow -mCAP environment]) LIBS="$LIBS -ltermcap"]) +- fi +- fi +-fi ++PKG_CHECK_MODULES( ++ [NCURSES], ++ [ncurses], ++ [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) ++ AC_DEFINE(USE_NCURSES, 1, [Use ncurses]) ++ [LIBS="${LIBS} ${NCURSES_LIBS}"] ++ ] ++) + + AC_CHECK_LIB(iconv, iconv_open) + |