--- /dev/null
+https://bugs.gentoo.org/675670
+
+--- genius-1.0.23/configure.ac
++++ genius-1.0.23/configure.ac
+@@ -15,6 +15,8 @@
+
+ AC_PROG_INTLTOOL([0.21])
+
++PKG_PROG_PKG_CONFIG
++
+ dnl ================= Requirements ================================================
+
+ VTE_REQUIRED=0.26.0
+@@ -64,8 +66,8 @@
+
+ dnl Check for termcap
+ AC_CHECK_LIB(termcap, tgetent,[TERMCAP_LIB="-ltermcap"],
+- [AC_CHECK_LIB(ncurses, tgetent,
+- [TERMCAP_LIB="-lncurses"
++ [PKG_CHECK_MODULES(NCURSES, ncurses,
++ [TERMCAP_LIB="$NCURSES_LIBS"
+ AC_DEFINE(USE_NCURSES,[1], [Use ncurses library])
+ AC_CHECK_HEADER(ncurses/curses.h, [
+ AC_DEFINE(INC_NCURSES,[1],[ncurses include])])], [
--- /dev/null
+--- genius-1.0.24/configure.ac
++++ genius-1.0.24/configure.ac
+@@ -247,16 +247,16 @@
+ fi
+
+ #dnl scrollkeeper checks
+-#AC_ARG_ENABLE([scrollkeeper],
+-# [AC_HELP_STRING([--disable-scrollkeeper],
+-# [do not make updates to the scrollkeeper database])],,
+-# enable_scrollkeeper=yes)
+-#AM_CONDITIONAL([ENABLE_SK],[test "$enable_scrollkeeper" = "yes"])
+-#
+-#AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
+-#if test x$SCROLLKEEPER_CONFIG = xno; then
+-# AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
+-#fi
++dnl AC_ARG_ENABLE([scrollkeeper],
++dnl [AC_HELP_STRING([--disable-scrollkeeper],
++dnl [do not make updates to the scrollkeeper database])],,
++dnl enable_scrollkeeper=yes)
++dnl AM_CONDITIONAL([ENABLE_SK],[test "$enable_scrollkeeper" = "yes"])
++dnl
++dnl AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
++dnl if test x$SCROLLKEEPER_CONFIG = xno; then
++dnl AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
++dnl fi
+
+ dnl mime checks
+ AC_ARG_ENABLE(update-mimedb,
EAPI=6
GNOME2_LA_PUNT="yes"
-inherit gnome2
+inherit autotools gnome2
DESCRIPTION="Genius Mathematics Tool and the GEL Language"
HOMEPAGE="https://www.jirka.org/genius.html"
DEPEND="${RDEPEND}
dev-util/gtk-update-icon-cache
dev-util/intltool
- virtual/yacc
+ sys-devel/autoconf-archive
sys-devel/flex
-" # eautoreconf needs autoconf-archive
+ virtual/yacc
+" # eautoreconf needs sys-devel/autoconf-archive
# dev-util/gtk-update-icon-cache because configure checks for it for some reason and never calls it with DESTDIR set..
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.23-tinfo.patch"
+ "${FILESDIR}/${PN}-1.0.24-no_scrollkeeper.patch"
+)
+
+src_prepare() {
+ gnome2_src_prepare
+ eautoreconf
+}
+
src_configure() {
# Unrecognized --disable-scrollkeeper warning comes from gnome2.eclass adding it based on grep, but upstream has them commented out in .ac with "#" instead of "dnl"
gnome2_src_configure \