Skip to content

Commit

Permalink
net-analyzer/mtr: Clean up old code in 0.93
Browse files Browse the repository at this point in the history
- Drop ancient *-darwin* workaround
- Drop misguided sys-devel/autoconf dependency
- EAPI=7

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Jeroen Roovers <[email protected]>
  • Loading branch information
Jeroen Roovers committed Sep 22, 2020
1 parent 53edb91 commit e39ecca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit autotools eutils fcaps flag-o-matic
EAPI=7
inherit autotools eutils fcaps

DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool"
HOMEPAGE="https://www.bitwizard.nl/mtr/"
Expand All @@ -22,10 +22,10 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
sys-devel/autoconf
"
BDEPEND="
virtual/pkgconfig
"

DOCS=( AUTHORS NEWS SECURITY TODO )
FILECAPS=( cap_net_raw usr/sbin/mtr-packet )
PATCHES=(
Expand All @@ -41,9 +41,6 @@ src_prepare() {
}

src_configure() {
# In the source's configure script -lresolv is commented out. Apparently it
# is needed for 64bit macos still.
[[ ${CHOST} == *-darwin* ]] && append-libs -lresolv
econf \
$(use_enable ipv6) \
$(use_with gtk) \
Expand Down
5 changes: 1 addition & 4 deletions net-analyzer/mtr/mtr-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit autotools bash-completion-r1 fcaps flag-o-matic git-r3
inherit autotools bash-completion-r1 fcaps git-r3

DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool"
HOMEPAGE="https://www.bitwizard.nl/mtr/"
Expand Down Expand Up @@ -41,9 +41,6 @@ src_prepare() {
}

src_configure() {
# In the source's configure script -lresolv is commented out. Apparently it
# is still needed for 64-bit MacOS.
[[ ${CHOST} == *-darwin* ]] && append-libs -lresolv
econf \
$(use_enable ipv6) \
$(use_with gtk) \
Expand Down

0 comments on commit e39ecca

Please sign in to comment.