summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2008-05-18 12:21:59 +0000
committerCédric Krier <cedk@gentoo.org>2008-05-18 12:21:59 +0000
commitc0445b36558b363398b43d01c368badd1f687d4d (patch)
tree22c038ab050056394200dae954cedde8889f8637 /net-analyzer
parentSwitched virtual/tetex -> virtual/latex-base (see bug #222501). (diff)
downloadgentoo-2-c0445b36558b363398b43d01c368badd1f687d4d.tar.gz
gentoo-2-c0445b36558b363398b43d01c368badd1f687d4d.tar.bz2
gentoo-2-c0445b36558b363398b43d01c368badd1f687d4d.zip
Version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/mtr/ChangeLog8
-rw-r--r--net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch18
-rw-r--r--net-analyzer/mtr/mtr-0.73.ebuild53
3 files changed, 78 insertions, 1 deletions
diff --git a/net-analyzer/mtr/ChangeLog b/net-analyzer/mtr/ChangeLog
index 8e3cab4e3ef1..f09e0a9394c0 100644
--- a/net-analyzer/mtr/ChangeLog
+++ b/net-analyzer/mtr/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/mtr
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mtr/ChangeLog,v 1.71 2008/05/06 13:47:24 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mtr/ChangeLog,v 1.72 2008/05/18 12:21:59 cedk Exp $
+
+*mtr-0.73 (18 May 2008)
+
+ 18 May 2008; Cédric Krier <cedk@gentoo.org>
+ +files/mtr-0.73-am_path_gtk.patch, +mtr-0.73.ebuild:
+ Version bump
06 May 2008; Samuli Suominen <drac@gentoo.org> mtr-0.72.ebuild:
Move pkgconfig to DEPEND wrt #217278.
diff --git a/net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch b/net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch
new file mode 100644
index 000000000000..85f983e032e0
--- /dev/null
+++ b/net-analyzer/mtr/files/mtr-0.73-am_path_gtk.patch
@@ -0,0 +1,18 @@
+diff -ru mtr-0.73~/configure.in mtr-0.73/configure.in
+--- mtr-0.73~/configure.in 2008-05-18 14:04:04.000000000 +0200
++++ mtr-0.73/configure.in 2008-05-18 14:05:26.000000000 +0200
+@@ -61,11 +61,9 @@
+ AC_DEFINE(NO_GTK)
+ GTK_OBJ="")
+ else
+- AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
+- LIBS="$LIBS $GTK_LIBS",
+- AC_MSG_WARN(Building without GTK+ display support)
+- AC_DEFINE(NO_GTK)
+- GTK_OBJ="")
++ AC_MSG_WARN(Building without GTK+ display support)
++ AC_DEFINE(NO_GTK)
++ GTK_OBJ=""
+ fi
+ else
+ AC_DEFINE(NO_GTK)
diff --git a/net-analyzer/mtr/mtr-0.73.ebuild b/net-analyzer/mtr/mtr-0.73.ebuild
new file mode 100644
index 000000000000..c34c402e2114
--- /dev/null
+++ b/net-analyzer/mtr/mtr-0.73.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mtr/mtr-0.73.ebuild,v 1.1 2008/05/18 12:21:59 cedk Exp $
+
+inherit flag-o-matic autotools eutils
+
+DESCRIPTION="My TraceRoute. Excellent network diagnostic tool."
+HOMEPAGE="http://www.bitwizard.nl/mtr/"
+SRC_URI="ftp://ftp.bitwizard.nl/mtr/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE="gtk ipv6"
+
+RDEPEND="sys-libs/ncurses
+ gtk? ( >=x11-libs/gtk+-2 )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-am_path_gtk.patch"
+ eautoreconf
+}
+
+src_compile() {
+ local myconf
+ use gtk || myconf="${myconf} --without-gtk"
+
+ [[ ${CHOST} == *-darwin* ]] && append-flags "-DBIND_8_COMPAT"
+
+ econf ${myconf} \
+ $(use_enable gtk gtk2) \
+ $(use_enable ipv6) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ # this binary is universal. ie: it does both console and gtk.
+ emake DESTDIR="${D}" sbindir=/usr/bin install || die "make install failed"
+
+ insinto /usr/share/${PN}
+ doins img/mtr_icon.xpm
+
+ fowners root:wheel /usr/bin/mtr
+ fperms 4710 /usr/bin/mtr
+
+ dodoc AUTHORS ChangeLog FORMATS NEWS README SECURITY TODO
+}