summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-09-22 09:05:39 +0200
committerJeroen Roovers <jer@gentoo.org>2020-09-22 09:08:24 +0200
commitdb0f322dffcacbfb362bf8e22596e23201dbaca3 (patch)
treed9203118981e00db80e207d49bf068288f022860 /net-analyzer/mtr
parentinstall-qa-check.d: Allow bdepend/rdepend mix in DUS check (diff)
downloadgentoo-db0f322dffcacbfb362bf8e22596e23201dbaca3.tar.gz
gentoo-db0f322dffcacbfb362bf8e22596e23201dbaca3.tar.bz2
gentoo-db0f322dffcacbfb362bf8e22596e23201dbaca3.zip
net-analyzer/mtr: Update live ebuild
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/mtr')
-rw-r--r--net-analyzer/mtr/metadata.xml12
-rw-r--r--net-analyzer/mtr/mtr-9999.ebuild15
2 files changed, 18 insertions, 9 deletions
diff --git a/net-analyzer/mtr/metadata.xml b/net-analyzer/mtr/metadata.xml
index 2c2a7923cfc8..632c6e60e5ba 100644
--- a/net-analyzer/mtr/metadata.xml
+++ b/net-analyzer/mtr/metadata.xml
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="project">
- <email>netmon@gentoo.org</email>
- <name>Gentoo network monitoring and analysis project</name>
- </maintainer>
+<maintainer type="project">
+<email>netmon@gentoo.org</email>
+<name>Gentoo network monitoring and analysis project</name>
+</maintainer>
+<use>
+<flag name='ipinfo'>Disable support for IP address lookups</flag>
+<flag name='jansson'>Enable JSON output support through <pkg>dev-libs/jansson</pkg></flag>
+</use>
</pkgmetadata>
diff --git a/net-analyzer/mtr/mtr-9999.ebuild b/net-analyzer/mtr/mtr-9999.ebuild
index 75a592ba00d8..37f5ab5d3a6c 100644
--- a/net-analyzer/mtr/mtr-9999.ebuild
+++ b/net-analyzer/mtr/mtr-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit autotools fcaps flag-o-matic git-r3
+inherit autotools bash-completion-r1 fcaps flag-o-matic git-r3
DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool"
HOMEPAGE="https://www.bitwizard.nl/mtr/"
@@ -11,18 +11,20 @@ EGIT_REPO_URI="https://github.com/traviscross/mtr"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="gtk ipv6 ncurses"
+IUSE="+gtk +ipinfo +ipv6 +jansson +ncurses"
RDEPEND="
gtk? (
dev-libs/glib:2
x11-libs/gtk+:3
)
+ jansson? ( dev-libs/jansson )
ncurses? ( sys-libs/ncurses:0= )
"
DEPEND="
${RDEPEND}
- sys-devel/autoconf
+"
+BDEPEND="
virtual/pkgconfig
"
DOCS=( AUTHORS FORMATS NEWS README.md SECURITY TODO )
@@ -45,7 +47,10 @@ src_configure() {
econf \
$(use_enable ipv6) \
$(use_with gtk) \
- $(use_with ncurses)
+ $(use_with ipinfo) \
+ $(use_with jansson) \
+ $(use_with ncurses) \
+ --with-bashcompletiondir="$(get_bashcompdir)"
}
pkg_postinst() {