--- /dev/null
+--- configure.ac.orig 2015-08-18 06:37:10.961248647 +0200
++++ configure.ac 2015-08-18 06:40:52.016957694 +0200
+@@ -25,6 +25,8 @@
+ AC_DEFINE(NO_CURSES, 1, [Define if you don't have the curses libraries available.])
+ CURSES_OBJ=)
+
++AC_SEARCH_LIBS(raw, [ncurses curses cursesX tinfo])
++
+ AC_CHECK_LIB(ncurses, use_default_colors,
+ AC_DEFINE(HAVE_USE_DEFAULT_COLORS, 1, [Define this if your curses library has the use_default_colors() command.]))
+
src_prepare() {
epatch \
- "${FILESDIR}"/0.80-impl-dec.patch \
- "${FILESDIR}"/0.85-gtk.patch
+ "${FILESDIR}"/${PN}-0.80-impl-dec.patch \
+ "${FILESDIR}"/${PN}-0.85-gtk.patch \
+ "${FILESDIR}"/${PN}-9999-tinfo.patch
sed -i -e "/^\s*xver=/s|$.*)|${EGIT_VERSION:0:8}|" Makefile.am || die