commit:     5d8729e68dfd07c068aa3b9e25981bd0dc49764a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 16 11:40:24 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 11:40:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d8729e6

app-i18n/bidiv: Port to EAPI 7

Closes: https://bugs.gentoo.org/742035
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-i18n/bidiv/bidiv-1.5_p4.ebuild | 41 +++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 21 deletions(-)

diff --git a/app-i18n/bidiv/bidiv-1.5_p4.ebuild 
b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
index 9635bec349c..73aafaeb98c 100644
--- a/app-i18n/bidiv/bidiv-1.5_p4.ebuild
+++ b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
@@ -1,39 +1,38 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit eutils toolchain-funcs
+EAPI=7
+
+inherit toolchain-funcs
 
 PATCH_LEVEL=4
 
 DESCRIPTION="A commandline tool displaying logical Hebrew/Arabic"
 HOMEPAGE="https://packages.qa.debian.org/b/bidiv.html";
-SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
+SRC_URI="
+       mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
        
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PATCH_LEVEL}.debian.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
-IUSE=""
 
 RDEPEND=">=dev-libs/fribidi-0.19.2-r2"
-DEPEND="${DEPEND}
-       virtual/pkgconfig"
+DEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
 
-S=${WORKDIR}/${PN}
+S="${WORKDIR}/${PN}"
 
-src_prepare() {
+PATCHES=(
        # Use order from "series" file:
-       local ddir=${WORKDIR}/debian/patches
-       epatch \
-               "${ddir}"/try_utf8_fix \
-               "${ddir}"/makefile \
-               "${ddir}"/fribidi_019 \
-               "${ddir}"/hyphen_minus \
-               "${ddir}"/term_size_get \
-               "${ddir}"/type_fix \
-               "${ddir}"/cast_fix
-}
+       "${WORKDIR}"/debian/patches/try_utf8_fix
+       "${WORKDIR}"/debian/patches/makefile
+       "${WORKDIR}"/debian/patches/fribidi_019
+       "${WORKDIR}"/debian/patches/hyphen_minus
+       "${WORKDIR}"/debian/patches/term_size_get
+       "${WORKDIR}"/debian/patches/type_fix
+       "${WORKDIR}"/debian/patches/cast_fix
+)
 
 src_compile() {
        tc-export CC
@@ -41,7 +40,7 @@ src_compile() {
 }
 
 src_install() {
-       dobin ${PN}
-       doman ${PN}.1
+       dobin bidiv
+       doman bidiv.1
        dodoc README WHATSNEW "${WORKDIR}"/debian/changelog
 }

Reply via email to