summaryrefslogtreecommitdiff
path: root/app-antivirus/clamav/files
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2017-04-23 22:22:05 +0200
committerJeroen Roovers <jer@gentoo.org>2017-04-23 22:26:12 +0200
commit48726a08716bb85e2f5ec049e54eab6f0639741a (patch)
tree6325f357d821d842f0aa1db30cb2b2f5f6b0de24 /app-antivirus/clamav/files
parent15983c3070517122447aa0cbc02d9f2b360a6733 (diff)
downloadgentoo-48726a08716bb85e2f5ec049e54eab6f0639741a.tar.gz
gentoo-48726a08716bb85e2f5ec049e54eab6f0639741a.tar.xz
app-antivirus/clamav: Fix building against sys-libs/ncurses[tinfo] (bug #596310).
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r--app-antivirus/clamav/files/clamav-0.99-zlib.patch (renamed from app-antivirus/clamav/files/clamav-configure-zlib.patch)0
-rw-r--r--app-antivirus/clamav/files/clamav-0.99.2-tinfo.patch23
2 files changed, 23 insertions, 0 deletions
diff --git a/app-antivirus/clamav/files/clamav-configure-zlib.patch b/app-antivirus/clamav/files/clamav-0.99-zlib.patch
index 8d1f4e61537..8d1f4e61537 100644
--- a/app-antivirus/clamav/files/clamav-configure-zlib.patch
+++ b/app-antivirus/clamav/files/clamav-0.99-zlib.patch
diff --git a/app-antivirus/clamav/files/clamav-0.99.2-tinfo.patch b/app-antivirus/clamav/files/clamav-0.99.2-tinfo.patch
new file mode 100644
index 00000000000..4593d16836e
--- /dev/null
+++ b/app-antivirus/clamav/files/clamav-0.99.2-tinfo.patch
@@ -0,0 +1,23 @@
+--- a/m4/reorganization/clamdtop.m4
++++ b/m4/reorganization/clamdtop.m4
+@@ -4,12 +4,20 @@
+
+ if test "$enable_clamdtop" != "no"; then
+
++PKG_CHECK_MODULES([CURSES],[ncurses],
++ [HAVE_LIBNCURSES=yes; CURSES_INCLUDE="<ncurses.h>"],
++ [HAVE_LIBNCURSES=no],
++)
++
++if test "X$HAVE_LIBNCURSES" != "Xyes"; then
++ HAVE_LIBNCURSES=
+ AC_LIB_FIND([ncurses], [ncurses/ncurses.h],
+ AC_LANG_PROGRAM([#include <ncurses/ncurses.h>],
+ [initscr(); KEY_RESIZE;]),
+ [CURSES_CPPFLAGS="$INCNCURSES"; CURSES_LIBS="$LTLIBNCURSES";
+ CURSES_INCLUDE="<ncurses/ncurses.h>"],
+ [])
++fi
+
+ if test "X$HAVE_LIBNCURSES" != "Xyes"; then
+ HAVE_LIBNCURSES=