net-analyzer/mtr: Fix building against sys-libs/ncurses[tinfo].
authorJeroen Roovers <jer@gentoo.org>
Tue, 18 Aug 2015 04:49:03 +0000 (06:49 +0200)
committerJeroen Roovers <jer@gentoo.org>
Tue, 18 Aug 2015 04:49:03 +0000 (06:49 +0200)
Package-Manager: portage-2.2.20.1

net-analyzer/mtr/files/mtr-0.80-impl-dec.patch [moved from net-analyzer/mtr/files/0.80-impl-dec.patch with 100% similarity]
net-analyzer/mtr/files/mtr-0.85-gtk.patch [moved from net-analyzer/mtr/files/0.85-gtk.patch with 100% similarity]
net-analyzer/mtr/files/mtr-9999-tinfo.patch [new file with mode: 0644]
net-analyzer/mtr/mtr-9999.ebuild

diff --git a/net-analyzer/mtr/files/mtr-9999-tinfo.patch b/net-analyzer/mtr/files/mtr-9999-tinfo.patch
new file mode 100644 (file)
index 0000000..13f7e9e
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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.]))
index 346422db9f63e465fdce67f3138361724863f847..97437c48a6524b8f63fd6a6d430a9b60b283ebd5 100644 (file)
@@ -38,8 +38,9 @@ src_unpack() {
 
 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