Diff mtr-0.93-r1 with a mtr-9999

/usr/portage/net-analyzer/mtr/mtr-9999.ebuild 2019-10-14 11:39:00.000000000 +0300
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
5
inherit autotools eutils fcaps flag-o-matic
4
EAPI=7
5
inherit autotools fcaps flag-o-matic git-r3
6 6

  
7 7
DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool"
8 8
HOMEPAGE="https://www.bitwizard.nl/mtr/"
9
SRC_URI="https://www.bitwizard.nl/mtr/files/${P}.tar.gz"
9
EGIT_REPO_URI="https://github.com/traviscross/mtr"
10 10

  
11 11
LICENSE="GPL-2"
12 12
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
13
KEYWORDS=""
14 14
IUSE="gtk ipv6 ncurses"
15 15

  
16 16
RDEPEND="
17 17
	gtk? (
18 18
		dev-libs/glib:2
19
		x11-libs/gtk+:2
19
		x11-libs/gtk+:3
20 20
	)
21 21
	ncurses? ( sys-libs/ncurses:0= )
22 22
"
......
25 25
	sys-devel/autoconf
26 26
	virtual/pkgconfig
27 27
"
28

  
29
DOCS=( AUTHORS NEWS SECURITY TODO )
28
DOCS=( AUTHORS FORMATS NEWS README.md SECURITY TODO )
30 29
FILECAPS=( cap_net_raw usr/sbin/mtr-packet )
31 30
PATCHES=(
32 31
	"${FILESDIR}"/${PN}-0.88-tinfo.patch
33 32
)
33
RESTRICT="test"
34 34

  
35 35
src_prepare() {
36 36
	default
37 37

  
38
	sed -i -e 's|m4_esyscmd(\[build-aux/git-version-gen .tarball-version\])|'"${PV}"'|g' configure.ac || die
39

  
40 38
	eautoreconf
41 39
}
42 40

  
43 41
src_configure() {
44 42
	# In the source's configure script -lresolv is commented out. Apparently it
45
	# is needed for 64bit macos still.
43
	# is still needed for 64-bit MacOS.
46 44
	[[ ${CHOST} == *-darwin* ]] && append-libs -lresolv
47 45
	econf \
48 46
		$(use_enable ipv6) \
......
50 48
		$(use_with ncurses)
51 49
}
52 50

  
53
src_test() {
54
	[[ "$UID" = 0 ]] && default
55
}
56

  
57 51
pkg_postinst() {
58 52
	fcaps_pkg_postinst
59 53

  
Thank you!