commit:     ca02db5691c260e5b2a603cafacc0964917d61f9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 19 18:43:44 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 19 18:47:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca02db56

sci-mathematics/num-utils: port to EAPI 7

Closes: https://bugs.gentoo.org/740968
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-mathematics/num-utils/num-utils-0.5-r1.ebuild | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild 
b/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild
index 8d00e1555da..cc567101a6b 100644
--- a/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild
+++ b/sci-mathematics/num-utils/num-utils-0.5-r1.ebuild
@@ -1,14 +1,11 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-
-inherit eutils
+EAPI=7
 
 DEB_PR=11
-
 DESCRIPTION="A set of programs for dealing with numbers from the command line"
-HOMEPAGE="http://suso.suso.org/programs/num-utils/";
+HOMEPAGE="https://suso.suso.org/programs/num-utils/index.phtml";
 SRC_URI="
        http://suso.suso.org/programs/num-utils/downloads/${P}.tar.gz
        mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${DEB_PR}.diff.gz"
@@ -16,14 +13,19 @@ SRC_URI="
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
-IUSE=""
+
+PATCHES=(
+       "${WORKDIR}/${PN}_${PV}-${DEB_PR}.diff"
+)
 
 src_prepare() {
-       epatch "${WORKDIR}"/${PN}_${PV}-${DEB_PR}.diff
+       default
+
        sed \
                -e 's:../orig/num-utils-0.5/::g' \
                -i "${S}"/debian/patches/*.diff || die
-       epatch "${S}"/debian/patches/*.diff
+
+       eapply -p0 "${S}"/debian/patches/*.diff
 
        local x
        for x in average bound interval normalize random range round; do

Reply via email to