Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/dwdiff/, dev-util/dwdiff/files/
Date: Mon, 28 Dec 2020 14:16:10
Message-Id: 1609164936.f1084565b1548a1cc7d9980c14a9fad582cba90a.soap@gentoo
1 commit: f1084565b1548a1cc7d9980c14a9fad582cba90a
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Dec 28 14:15:36 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 14:15:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1084565
7
8 dev-util/dwdiff: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/707140
11 Package-Manager: Portage-3.0.9, Repoman-3.0.1
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 dev-util/dwdiff/dwdiff-2.1.3.ebuild | 31 +++++++---------------
16 .../{C99-fix.patch => dwdiff-2.1.3-C99-fix.patch} | 0
17 2 files changed, 9 insertions(+), 22 deletions(-)
18
19 diff --git a/dev-util/dwdiff/dwdiff-2.1.3.ebuild b/dev-util/dwdiff/dwdiff-2.1.3.ebuild
20 index 2c5dc4d45e8..973e44885e7 100644
21 --- a/dev-util/dwdiff/dwdiff-2.1.3.ebuild
22 +++ b/dev-util/dwdiff/dwdiff-2.1.3.ebuild
23 @@ -1,9 +1,9 @@
24 # Copyright 1999-2020 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI=6
28 +EAPI=7
29
30 -inherit eutils toolchain-funcs
31 +inherit toolchain-funcs
32
33 DESCRIPTION="diff-like program operating at word level instead of line level"
34 HOMEPAGE="https://os.ghalkes.nl/dwdiff.html"
35 @@ -14,38 +14,25 @@ SLOT="0"
36 KEYWORDS="amd64 ppc ~ppc64 x86"
37 IUSE="nls"
38
39 -CDEPEND="dev-libs/icu:="
40 -
41 RDEPEND="
42 - ${CDEPEND}
43 + dev-libs/icu:=
44 sys-apps/diffutils"
45 +DEPEND="${RDEPEND}"
46 +BDEPEND="nls? ( sys-devel/gettext )"
47
48 -DEPEND="
49 - ${CDEPEND}
50 - nls? ( sys-devel/gettext )"
51 -
52 -PATCHES=(
53 - "${FILESDIR}/C99-fix.patch"
54 -)
55 +PATCHES=( "${FILESDIR}"/${P}-C99-fix.patch )
56
57 src_prepare() {
58 default
59 -
60 - sed -i \
61 - -e '/INSTALL/s:COPYING::' \
62 - Makefile.in || die
63 + sed -i -e '/INSTALL/s:COPYING::' Makefile.in || die
64 }
65
66 src_configure() {
67 ./configure \
68 - --prefix=/usr \
69 - $(use_with nls gettext) || die "./configure error"
70 + --prefix="${EPREFIX}"/usr \
71 + $(use_with nls gettext) || die
72 }
73
74 src_compile() {
75 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
76 }
77 -
78 -src_install() {
79 - emake prefix="${D}/usr" docdir="${D}/usr/share/doc/${PF}" install
80 -}
81
82 diff --git a/dev-util/dwdiff/files/C99-fix.patch b/dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch
83 similarity index 100%
84 rename from dev-util/dwdiff/files/C99-fix.patch
85 rename to dev-util/dwdiff/files/dwdiff-2.1.3-C99-fix.patch