commit:     87b31524f9a546c261cc7d81cbed4069aaf3882d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  2 02:08:49 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 15:54:59 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87b31524

net-analyzer/netperf: EAPI 7, eutils--

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

 .../netperf/files/netperf-2.7.0-inline.patch       |  4 +--
 net-analyzer/netperf/netperf-2.7.0-r2.ebuild       | 32 +++++++++++-----------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/net-analyzer/netperf/files/netperf-2.7.0-inline.patch 
b/net-analyzer/netperf/files/netperf-2.7.0-inline.patch
index eb8c09b8469..eb89d34f3e8 100644
--- a/net-analyzer/netperf/files/netperf-2.7.0-inline.patch
+++ b/net-analyzer/netperf/files/netperf-2.7.0-inline.patch
@@ -1,6 +1,6 @@
 # Copyright Seblu 2015
---- a/src/netlib.c     2015-08-04 20:30:43.449468815 +0200
-+++ b/src/netlib.c     2015-08-04 20:31:40.317792002 +0200
+--- a/src/netlib.c
++++ b/src/netlib.c
 @@ -3997,11 +3997,7 @@
    }
  }

diff --git a/net-analyzer/netperf/netperf-2.7.0-r2.ebuild 
b/net-analyzer/netperf/netperf-2.7.0-r2.ebuild
index ac656a889e7..6a56ebb79e3 100644
--- a/net-analyzer/netperf/netperf-2.7.0-r2.ebuild
+++ b/net-analyzer/netperf/netperf-2.7.0-r2.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit eutils flag-o-matic user
+EAPI=7
+
+inherit flag-o-matic user
 
 DESCRIPTION="Network performance benchmark"
 SRC_URI="ftp://ftp.netperf.org/${PN}/${P}.tar.bz2";
@@ -13,7 +14,13 @@ LICENSE="netperf"
 SLOT="0"
 IUSE="demo sctp"
 
-DEPEND=">=sys-apps/sed-4"
+PATCHES=(
+       "${FILESDIR}"/${PN}-fix-scripts.patch
+       "${FILESDIR}"/${PN}-2.6.0-log-dir.patch
+       "${FILESDIR}"/${PN}-2.7.0-includes.patch
+       "${FILESDIR}"/${PN}-2.7.0-space.patch
+       "${FILESDIR}"/${PN}-2.7.0-inline.patch
+)
 
 pkg_setup() {
        enewuser netperf
@@ -21,13 +28,6 @@ pkg_setup() {
 }
 
 src_prepare() {
-       eapply \
-               "${FILESDIR}"/${PN}-fix-scripts.patch \
-               "${FILESDIR}"/${PN}-2.6.0-log-dir.patch \
-               "${FILESDIR}"/${PN}-2.7.0-includes.patch \
-               "${FILESDIR}"/${PN}-2.7.0-space.patch \
-               "${FILESDIR}"/${PN}-2.7.0-inline.patch
-
        # Fixing paths in scripts
        sed -i \
                -e 's:^\(NETHOME=\).*:\1"/usr/bin":' \
@@ -39,7 +39,7 @@ src_prepare() {
                doc/examples/udp_stream_script \
                || die
 
-       eapply_user
+       default
 }
 
 src_configure() {
@@ -57,10 +57,10 @@ src_configure() {
 src_install() {
        default
 
-       # move netserver into sbin as we had it before 2.4 was released with its
+       # Move netserver into sbin as we had it before 2.4 was released with its
        # autoconf goodness
        dodir /usr/sbin
-       mv "${D}"/usr/{bin,sbin}/netserver || die
+       mv "${ED}"/usr/{bin,sbin}/netserver || die
 
        # init.d / conf.d
        newinitd "${FILESDIR}"/${PN}-2.7.0-init netperf
@@ -73,6 +73,6 @@ src_install() {
        # documentation and example scripts
        dodoc AUTHORS ChangeLog NEWS README Release_Notes
        dodir /usr/share/doc/${PF}/examples
-       #Scripts no longer get installed by einstall
-       cp doc/examples/*_script "${D}"/usr/share/doc/${PF}/examples || die
+       # Scripts no longer get installed by einstall
+       cp doc/examples/*_script "${ED}"/usr/share/doc/${PF}/examples || die
 }

Reply via email to