Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tptest/
Date: Sat, 03 Apr 2021 15:57:23
Message-Id: 1617465319.1e9ee33e246278346f762d5d1513bbce948d728d.sam@gentoo
1 commit: 1e9ee33e246278346f762d5d1513bbce948d728d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 2 00:45:09 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 3 15:55:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e9ee33e
7
8 net-analyzer/tptest: port to EAPI 7, eutils--, misc QA fixes
9
10 * Standard ebuild "block structure"
11 * Quoting
12 * Drop unused eutils
13 * Missing || dies
14
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 net-analyzer/tptest/tptest-3.1.7-r2.ebuild | 25 ++++++++++++++++---------
18 1 file changed, 16 insertions(+), 9 deletions(-)
19
20 diff --git a/net-analyzer/tptest/tptest-3.1.7-r2.ebuild b/net-analyzer/tptest/tptest-3.1.7-r2.ebuild
21 index 709ad3a89a3..6187c966138 100644
22 --- a/net-analyzer/tptest/tptest-3.1.7-r2.ebuild
23 +++ b/net-analyzer/tptest/tptest-3.1.7-r2.ebuild
24 @@ -1,35 +1,42 @@
25 -# Copyright 1999-2014 Gentoo Foundation
26 +# Copyright 1999-2021 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 -EAPI=5
30 -inherit toolchain-funcs eutils
31 +EAPI=7
32 +
33 +inherit toolchain-funcs
34
35 MY_PV="${PV/./_}"
36
37 DESCRIPTION="Internet bandwidth tester"
38 HOMEPAGE="http://tptest.sourceforge.net/"
39 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
40 +
41 LICENSE="GPL-2"
42 SLOT="0"
43 -
44 KEYWORDS="amd64 ppc sparc x86"
45
46 +PATCHES=(
47 + "${FILESDIR}"/${PN}-3.1.7-getstatsfromlinevuln.patch
48 +)
49 +
50 src_prepare() {
51 + default
52 +
53 sed -i apps/unix/{client,server}/Makefile \
54 -e "s:^CFLAGS[[:space:]]*=:CFLAGS+=:" \
55 || die
56 - epatch "${FILESDIR}/${PN}-3.1.7-getstatsfromlinevuln.patch"
57 - cp -f os-dep/unix/* .
58 - cp -f engine/* .
59 +
60 + cp -f os-dep/unix/* . || die
61 + cp -f engine/* . || die
62 }
63
64 src_compile() {
65 emake -C apps/unix/client \
66 - CC=$(tc-getCC) \
67 + CC="$(tc-getCC)" \
68 LDFLAGS="${LDFLAGS}"
69
70 emake -C apps/unix/server \
71 - CC=$(tc-getCC) \
72 + CC="$(tc-getCC)" \
73 LDFLAGS="${LDFLAGS}"
74 }