public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tptest/
Date: Sat,  3 Apr 2021 15:57:17 +0000 (UTC)	[thread overview]
Message-ID: <1617465319.1e9ee33e246278346f762d5d1513bbce948d728d.sam@gentoo> (raw)

commit:     1e9ee33e246278346f762d5d1513bbce948d728d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  2 00:45:09 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 15:55:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e9ee33e

net-analyzer/tptest: port to EAPI 7, eutils--, misc QA fixes

* Standard ebuild "block structure"
* Quoting
* Drop unused eutils
* Missing || dies

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/tptest/tptest-3.1.7-r2.ebuild | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

diff --git a/net-analyzer/tptest/tptest-3.1.7-r2.ebuild b/net-analyzer/tptest/tptest-3.1.7-r2.ebuild
index 709ad3a89a3..6187c966138 100644
--- a/net-analyzer/tptest/tptest-3.1.7-r2.ebuild
+++ b/net-analyzer/tptest/tptest-3.1.7-r2.ebuild
@@ -1,35 +1,42 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit toolchain-funcs eutils
+EAPI=7
+
+inherit toolchain-funcs
 
 MY_PV="${PV/./_}"
 
 DESCRIPTION="Internet bandwidth tester"
 HOMEPAGE="http://tptest.sourceforge.net/"
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
 LICENSE="GPL-2"
 SLOT="0"
-
 KEYWORDS="amd64 ppc sparc x86"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.1.7-getstatsfromlinevuln.patch
+)
+
 src_prepare() {
+	default
+
 	sed -i apps/unix/{client,server}/Makefile \
 		-e "s:^CFLAGS[[:space:]]*=:CFLAGS+=:" \
 		|| die
-	epatch "${FILESDIR}/${PN}-3.1.7-getstatsfromlinevuln.patch"
-	cp -f os-dep/unix/* .
-	cp -f engine/* .
+
+	cp -f os-dep/unix/* . || die
+	cp -f engine/* . || die
 }
 
 src_compile() {
 	emake -C apps/unix/client \
-		CC=$(tc-getCC) \
+		CC="$(tc-getCC)" \
 		LDFLAGS="${LDFLAGS}"
 
 	emake -C apps/unix/server \
-		CC=$(tc-getCC) \
+		CC="$(tc-getCC)" \
 		LDFLAGS="${LDFLAGS}"
 }
 


             reply	other threads:[~2021-04-03 15:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-03 15:57 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-04 12:25 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tptest/ Sam James
2023-11-04 12:25 Sam James
2023-11-04 13:35 Sam James
2023-11-04 16:13 Arthur Zamarin
2024-08-31 14:00 Arthur Zamarin
2024-10-30 11:33 Andreas K. Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617465319.1e9ee33e246278346f762d5d1513bbce948d728d.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox