app-admin/apachetop: Fix building against sys-libs/ncurses[tinfo]
authorJeroen Roovers <jer@gentoo.org>
Tue, 14 Jan 2020 02:20:53 +0000 (03:20 +0100)
committerJeroen Roovers <jer@gentoo.org>
Tue, 14 Jan 2020 02:43:17 +0000 (03:43 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Closes: https://bugs.gentoo.org/690082
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
app-admin/apachetop/apachetop-0.18.4.ebuild
app-admin/apachetop/files/apachetop-0.18.4-tinfo.patch [new file with mode: 0644]

index 2f5954eb82bf1765de27b18ed2e8577e7706e509..c0a18315d1dae6fbb52b0b107fb6761cf03b337a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,8 +19,10 @@ RDEPEND="
        sys-libs/readline:0=
        fam? ( virtual/fam )
        pcre? ( dev-libs/libpcre )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+DEPEND="${RDEPEND}"
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.18.4-tinfo.patch
+)
 
 src_prepare() {
        default
diff --git a/app-admin/apachetop/files/apachetop-0.18.4-tinfo.patch b/app-admin/apachetop/files/apachetop-0.18.4-tinfo.patch
new file mode 100644 (file)
index 0000000..d975a43
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -133,7 +133,7 @@
+ AC_SEARCH_LIBS([socket], [socket])
+ AC_SEARCH_LIBS([inet_addr], [nsl])
+ AC_SEARCH_LIBS([attron], [ncurses])
+-AC_SEARCH_LIBS([tgetstr], [termcap])
++AC_SEARCH_LIBS([tgetstr], [tinfo termcap])
+ AC_SEARCH_LIBS([mvprintw], [curses ncurses] ,
+     [] ,
+     [