commit:     0d89e74893170c7a6e9fc13f30d8754fef52246a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  3 19:18:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 19:52:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d89e748

net-analyzer/ifstatus: eutils--, tidy up

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

 net-analyzer/ifstatus/ifstatus-1.1.0-r2.ebuild | 32 ++++++++++++--------------
 net-analyzer/ifstatus/ifstatus-2.0.0.ebuild    | 28 +++++++++++-----------
 2 files changed, 28 insertions(+), 32 deletions(-)

diff --git a/net-analyzer/ifstatus/ifstatus-1.1.0-r2.ebuild 
b/net-analyzer/ifstatus/ifstatus-1.1.0-r2.ebuild
index 10f512067d0..986b1e4ad56 100644
--- a/net-analyzer/ifstatus/ifstatus-1.1.0-r2.ebuild
+++ b/net-analyzer/ifstatus/ifstatus-1.1.0-r2.ebuild
@@ -1,29 +1,27 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit eutils toolchain-funcs
+EAPI=7
 
-KEYWORDS="amd64 arm ~ppc x86"
+inherit toolchain-funcs
 
 DESCRIPTION="A simple CLI program for displaying network statistics in real 
time"
 HOMEPAGE="http://ifstatus.sourceforge.net/";
 SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV}.tar.gz"
+S="${WORKDIR}/${PN}"
+
 LICENSE="GPL-2"
 SLOT="0"
+KEYWORDS="amd64 arm ~ppc x86"
 
 RDEPEND=">=sys-libs/ncurses-4.2:0="
-DEPEND="
-       ${RDEPEND}
-       virtual/pkgconfig
-"
-
-S="${WORKDIR}/${PN}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
-       "${FILESDIR}/${P}-gcc43.patch"
-       "${FILESDIR}/${P}-tinfo.patch"
-       "${FILESDIR}/${P}-gcc6.patch"
+       "${FILESDIR}"/${P}-gcc43.patch
+       "${FILESDIR}"/${P}-tinfo.patch
+       "${FILESDIR}"/${P}-gcc6.patch
 )
 
 src_prepare() {
@@ -37,8 +35,8 @@ src_install() {
 }
 
 pkg_postinst() {
-       elog    "You may want to configure ~/.ifstatus/ifstatus.cfg"
-       elog    "before running ifstatus. For example, you may add"
-       elog    "Interfaces = eth0 there. Read the README file for"
-       elog    "more information."
+       elog "You may want to configure ~/.ifstatus/ifstatus.cfg"
+       elog "before running ifstatus. For example, you may add"
+       elog "Interfaces = eth0 there. Read the README file for"
+       elog "more information."
 }

diff --git a/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild 
b/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild
index c954845ed7d..3aea08cd6d9 100644
--- a/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild
+++ b/net-analyzer/ifstatus/ifstatus-2.0.0.ebuild
@@ -2,31 +2,29 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit toolchain-funcs
 
-KEYWORDS="amd64 arm ~ppc x86"
+inherit toolchain-funcs
 
 DESCRIPTION="A simple CLI program for displaying network statistics in real 
time"
 HOMEPAGE="http://ifstatus.sourceforge.net/";
 SRC_URI="mirror://sourceforge/${PN}/${PN}-v${PV}.tar.gz"
+S="${WORKDIR}/${PN}-v${PV}"
+
 LICENSE="GPL-2"
 SLOT="0"
+KEYWORDS="amd64 arm ~ppc x86"
+
+RDEPEND=">=sys-libs/ncurses-4.2:0="
+DEPEND="${RDEPEND}"
+BDEPEND+"virtual/pkgconfig"
 
-RDEPEND="
-       >=sys-libs/ncurses-4.2:0=
-"
-DEPEND="
-       ${RDEPEND}
-       virtual/pkgconfig
-"
 PATCHES=(
        "${FILESDIR}"/${PN}-2.0.0-tinfo.patch
 )
-S="${WORKDIR}/${PN}-v${PV}"
 
 src_compile() {
        tc-export CXX PKG_CONFIG
-       emake GCC=$(tc-getCXX) ${PN}
+       emake GCC="$(tc-getCXX)" ${PN}
 }
 
 src_install() {
@@ -35,8 +33,8 @@ src_install() {
 }
 
 pkg_postinst() {
-       elog    "You may want to configure ~/.ifstatus/ifstatus.cfg"
-       elog    "before running ifstatus. For example, you may add"
-       elog    "Interfaces = eth0 there. Read the README file for"
-       elog    "more information."
+       elog "You may want to configure ~/.ifstatus/ifstatus.cfg"
+       elog "before running ifstatus. For example, you may add"
+       elog "Interfaces = eth0 there. Read the README file for"
+       elog "more information."
 }

Reply via email to