Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/mtr/files/, net-analyzer/mtr/
Date: Sun, 04 Jun 2017 21:21:16
Message-Id: 1496611266.b8c97104e5233bc17c08be04d117cceb5422df0c.jer@gentoo
1 commit: b8c97104e5233bc17c08be04d117cceb5422df0c
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 4 21:19:22 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 4 21:21:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8c97104
7
8 net-analyzer/mtr: Version bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-analyzer/mtr/Manifest | 1 +
13 net-analyzer/mtr/files/mtr-0.88-tinfo.patch | 13 +++++++++++
14 net-analyzer/mtr/files/mtr-9999-tinfo.patch | 16 -------------
15 .../mtr/{mtr-9999.ebuild => mtr-0.88.ebuild} | 26 +++++++++-------------
16 net-analyzer/mtr/mtr-9999.ebuild | 2 +-
17 5 files changed, 25 insertions(+), 33 deletions(-)
18
19 diff --git a/net-analyzer/mtr/Manifest b/net-analyzer/mtr/Manifest
20 index ea08e245715..1a56c41e055 100644
21 --- a/net-analyzer/mtr/Manifest
22 +++ b/net-analyzer/mtr/Manifest
23 @@ -1,2 +1,3 @@
24 DIST gtk-2.0-for-mtr.m4.bz2 2508 SHA256 59152f9a4a1af5cf09f2aaa804c9071afe3eb6632162f1660d85c820db342eba SHA512 0f593b761d7a9399469f1f7bb3992133b391a2ce760ecfad96237561992802c192b810f4722763685d5f6e7a76bd2806abf08e1850bdce00e5cd3af4c810210f WHIRLPOOL 8bfa2cd70c2aba06473692cdf3e091a983aab69cdb5be3d0382b6b87c05bcc577ecb1afab26afc17ee16d07a1161fe84f17e3cc9ae0a150364f34667cfba5779
25 DIST mtr-0.87.tar.gz 184645 SHA256 193947c61d23b154c8dc03677e90e8fd912f8f18567ab76ce619b7856c4af19f SHA512 172ba2f78a6ee4deb427ac2fb00dff16843215dbd23663fbe41fcc957ffe278b408a73a0c7e1c05788b235e2d03fb53f9971b8b82d4de2f95edcaa9f2cff3cf9 WHIRLPOOL 39fc9b60c1eccfdb1159a184f7089f13d1a8fbc35f16b7c23b746f3da709894f99571a57ef3431ca601112691c0e693b86a9941ed20bc236d2630f282e43d641
26 +DIST mtr-0.88.tar.gz 296225 SHA256 1e1fe4972cd972f9e5362226ebd16643ab763e6ece3b135b0f60c27e50e51e20 SHA512 81e16b8dfe2e31ca82fc456a51794b96b2dd06f4a86524ddc38abf53275b4b8ae6709792397021dfffbd4b00cf4f74b35d4085ca16fa08cf6f6e2e6b0c615533 WHIRLPOOL 24f1c50b9ad6a3884bee1745b479c8223bbd60d86a869c266549f3f51fa0ba5774b28fbbabc3cc386792410f0413038ad8c6a34d2863ab00b3730bcaaa736222
27
28 diff --git a/net-analyzer/mtr/files/mtr-0.88-tinfo.patch b/net-analyzer/mtr/files/mtr-0.88-tinfo.patch
29 new file mode 100644
30 index 00000000000..c7252b74435
31 --- /dev/null
32 +++ b/net-analyzer/mtr/files/mtr-0.88-tinfo.patch
33 @@ -0,0 +1,13 @@
34 +--- a/configure.ac
35 ++++ b/configure.ac
36 +@@ -101,7 +101,10 @@
37 + # (On Solaris 11.3, ncurses builds and links for us, but curses does not.)
38 + [AC_SEARCH_LIBS(
39 + [initscr], [ncurses curses],
40 ++ [AC_SEARCH_LIBS(
41 ++ [raw], [ncurses curses cursesX tinfo],
42 + [AC_DEFINE([HAVE_CURSES], [1], [Define if a curses library available])],
43 ++ [with_ncurses=no])],
44 + [with_ncurses=no])
45 + ])
46 + AM_CONDITIONAL([WITH_CURSES], [test "x$with_ncurses" = xyes])
47
48 diff --git a/net-analyzer/mtr/files/mtr-9999-tinfo.patch b/net-analyzer/mtr/files/mtr-9999-tinfo.patch
49 deleted file mode 100644
50 index 92e261cd736..00000000000
51 --- a/net-analyzer/mtr/files/mtr-9999-tinfo.patch
52 +++ /dev/null
53 @@ -1,16 +0,0 @@
54 ---- a/configure.ac
55 -+++ b/configure.ac
56 -@@ -101,8 +101,11 @@
57 - # (On Solaris 11.3, ncurses builds and links for us, but curses does not.)
58 - [AC_SEARCH_LIBS(
59 - [initscr], [ncurses curses],
60 -- [AC_DEFINE([HAVE_CURSES], [1], [Define if a curses library available])],
61 -- [with_ncurses=no])
62 -+ AC_SEARCH_LIBS(
63 -+ [raw], [ncurses curses cursesX tinfo],
64 -+ [AC_DEFINE([HAVE_CURSES], [1], [Define if a curses library available])],
65 -+ [with_ncurses=no]),
66 -+ [with_ncurses=no])
67 - ])
68 - AM_CONDITIONAL([WITH_CURSES], [test "x$with_ncurses" = xyes])
69 -
70
71 diff --git a/net-analyzer/mtr/mtr-9999.ebuild b/net-analyzer/mtr/mtr-0.88.ebuild
72 similarity index 66%
73 copy from net-analyzer/mtr/mtr-9999.ebuild
74 copy to net-analyzer/mtr/mtr-0.88.ebuild
75 index 53906d9e1e6..997a4da8bc0 100644
76 --- a/net-analyzer/mtr/mtr-9999.ebuild
77 +++ b/net-analyzer/mtr/mtr-0.88.ebuild
78 @@ -2,16 +2,15 @@
79 # Distributed under the terms of the GNU General Public License v2
80
81 EAPI=6
82 -inherit autotools eutils fcaps flag-o-matic git-r3
83 +inherit autotools eutils fcaps flag-o-matic
84
85 DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool"
86 HOMEPAGE="http://www.bitwizard.nl/mtr/"
87 -EGIT_REPO_URI="https://github.com/traviscross/mtr.git"
88 -SRC_URI="mirror://gentoo/gtk-2.0-for-mtr.m4.bz2"
89 +SRC_URI="ftp://ftp.bitwizard.nl/mtr/${P}.tar.gz"
90
91 LICENSE="GPL-2"
92 SLOT="0"
93 -KEYWORDS=""
94 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
95 IUSE="gtk ipv6 ncurses"
96
97 RDEPEND="
98 @@ -30,27 +29,18 @@ DEPEND="
99 DOCS=( AUTHORS FORMATS NEWS README SECURITY TODO )
100 FILECAPS=( cap_net_raw usr/sbin/mtr )
101 PATCHES=(
102 - "${FILESDIR}"/${PN}-9999-tinfo.patch
103 + "${FILESDIR}"/${PN}-0.88-tinfo.patch
104 )
105
106 -src_unpack() {
107 - git-r3_src_unpack
108 - unpack ${A}
109 -}
110 -
111 src_prepare() {
112 - # Keep this comment and following mv, even in case ebuild does not need
113 - # it: kept gtk-2.0.m4 in SRC_URI but you'll have to mv it before autoreconf
114 - mv "${WORKDIR}"/gtk-2.0-for-mtr.m4 gtk-2.0.m4 || die #222909
115 -
116 default
117
118 - AT_M4DIR="." eautoreconf
119 + eautoreconf
120 }
121
122 src_configure() {
123 # In the source's configure script -lresolv is commented out. Apparently it
124 - # is still needed for 64-bit MacOS.
125 + # is needed for 64bit macos still.
126 [[ ${CHOST} == *-darwin* ]] && append-libs -lresolv
127 econf \
128 $(use_enable ipv6) \
129 @@ -58,6 +48,10 @@ src_configure() {
130 $(use_with ncurses)
131 }
132
133 +src_test() {
134 + [[ "$UID" = 0 ]] && default
135 +}
136 +
137 pkg_postinst() {
138 fcaps_pkg_postinst
139
140
141 diff --git a/net-analyzer/mtr/mtr-9999.ebuild b/net-analyzer/mtr/mtr-9999.ebuild
142 index 53906d9e1e6..7bb86b67b47 100644
143 --- a/net-analyzer/mtr/mtr-9999.ebuild
144 +++ b/net-analyzer/mtr/mtr-9999.ebuild
145 @@ -30,7 +30,7 @@ DEPEND="
146 DOCS=( AUTHORS FORMATS NEWS README SECURITY TODO )
147 FILECAPS=( cap_net_raw usr/sbin/mtr )
148 PATCHES=(
149 - "${FILESDIR}"/${PN}-9999-tinfo.patch
150 + "${FILESDIR}"/${PN}-0.88-tinfo.patch
151 )
152
153 src_unpack() {