summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/nettop/nettop-0.2.3-r2.ebuild')
-rw-r--r--net-analyzer/nettop/nettop-0.2.3-r2.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/net-analyzer/nettop/nettop-0.2.3-r2.ebuild b/net-analyzer/nettop/nettop-0.2.3-r2.ebuild
index f0bb7d6d136..7128eaac519 100644
--- a/net-analyzer/nettop/nettop-0.2.3-r2.ebuild
+++ b/net-analyzer/nettop/nettop-0.2.3-r2.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-inherit epatch toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="top-like program for network activity"
SRC_URI="mirror://gentoo/${P}.tar.gz"
@@ -19,10 +19,13 @@ DEPEND="
"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc411.patch
+ "${FILESDIR}"/${P}-offbyone.patch
+)
+
src_prepare() {
- epatch \
- "${FILESDIR}"/${P}-gcc411.patch \
- "${FILESDIR}"/${P}-offbyone.patch
+ default
tc-export CC
}