summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-09-19 18:43:44 +0000
committerSam James <sam@gentoo.org>2020-09-19 18:47:14 +0000
commitca02db5691c260e5b2a603cafacc0964917d61f9 (patch)
tree0bc35811022452fccd8b3ea20e44051a8097ffc9 /sci-mathematics
parentdev-util/catalyst: Version bump to 3.0.13 (diff)
downloadgentoo-ca02db5691c260e5b2a603cafacc0964917d61f9.tar.gz
gentoo-ca02db5691c260e5b2a603cafacc0964917d61f9.tar.bz2
gentoo-ca02db5691c260e5b2a603cafacc0964917d61f9.zip
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@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/num-utils/num-utils-0.5-r1.ebuild18
1 files 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