summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-08-18 06:49:03 +0200
committerJeroen Roovers <jer@gentoo.org>2015-08-18 06:49:03 +0200
commit654139b011dae007329f082f2aa3c2063b0f40b5 (patch)
treec4438071eef970bf3a8241e3a330deae2860ccac /net-analyzer
parentsys-apps/smartmontools: Stable for HPPA (bug #555528). (diff)
downloadgentoo-654139b011dae007329f082f2aa3c2063b0f40b5.tar.gz
gentoo-654139b011dae007329f082f2aa3c2063b0f40b5.tar.bz2
gentoo-654139b011dae007329f082f2aa3c2063b0f40b5.zip
net-analyzer/mtr: Fix building against sys-libs/ncurses[tinfo].
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/mtr/files/mtr-0.80-impl-dec.patch (renamed from net-analyzer/mtr/files/0.80-impl-dec.patch)0
-rw-r--r--net-analyzer/mtr/files/mtr-0.85-gtk.patch (renamed from net-analyzer/mtr/files/0.85-gtk.patch)0
-rw-r--r--net-analyzer/mtr/files/mtr-9999-tinfo.patch11
-rw-r--r--net-analyzer/mtr/mtr-9999.ebuild5
4 files changed, 14 insertions, 2 deletions
diff --git a/net-analyzer/mtr/files/0.80-impl-dec.patch b/net-analyzer/mtr/files/mtr-0.80-impl-dec.patch
index 5b41a54c744b..5b41a54c744b 100644
--- a/net-analyzer/mtr/files/0.80-impl-dec.patch
+++ b/net-analyzer/mtr/files/mtr-0.80-impl-dec.patch
diff --git a/net-analyzer/mtr/files/0.85-gtk.patch b/net-analyzer/mtr/files/mtr-0.85-gtk.patch
index f04d2419bed8..f04d2419bed8 100644
--- a/net-analyzer/mtr/files/0.85-gtk.patch
+++ b/net-analyzer/mtr/files/mtr-0.85-gtk.patch
diff --git a/net-analyzer/mtr/files/mtr-9999-tinfo.patch b/net-analyzer/mtr/files/mtr-9999-tinfo.patch
new file mode 100644
index 000000000000..13f7e9eb7c68
--- /dev/null
+++ b/net-analyzer/mtr/files/mtr-9999-tinfo.patch
@@ -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.]))
+
diff --git a/net-analyzer/mtr/mtr-9999.ebuild b/net-analyzer/mtr/mtr-9999.ebuild
index 346422db9f63..97437c48a652 100644
--- a/net-analyzer/mtr/mtr-9999.ebuild
+++ b/net-analyzer/mtr/mtr-9999.ebuild
@@ -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