Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/netwib/
Date: Mon, 29 Nov 2021 19:49:41
Message-Id: 1638215357.f07f021300a2e5eb754ca5d1a910de1f057c85b8.jsmolic@gentoo
1 commit: f07f021300a2e5eb754ca5d1a910de1f057c85b8
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 29 19:42:55 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 29 19:49:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f07f0213
7
8 net-libs/netwib: Port to EAPI 8
9
10 Closes: https://bugs.gentoo.org/826838
11 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
12
13 net-libs/netwib/netwib-5.39.0.ebuild | 18 ++++++++++--------
14 1 file changed, 10 insertions(+), 8 deletions(-)
15
16 diff --git a/net-libs/netwib/netwib-5.39.0.ebuild b/net-libs/netwib/netwib-5.39.0.ebuild
17 index 0a94f4cb4132..c73eb6097f01 100644
18 --- a/net-libs/netwib/netwib-5.39.0.ebuild
19 +++ b/net-libs/netwib/netwib-5.39.0.ebuild
20 @@ -1,10 +1,11 @@
21 -# Copyright 1999-2014 Gentoo Foundation
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 # NOTE: netwib, netwox and netwag go together, bump all or bump none
26
27 -EAPI=5
28 -inherit toolchain-funcs multilib
29 +EAPI=8
30 +
31 +inherit toolchain-funcs
32
33 DESCRIPTION="Library of Ethernet, IP, UDP, TCP, ICMP, ARP and RARP protocols"
34 HOMEPAGE="
35 @@ -13,6 +14,7 @@ HOMEPAGE="
36 "
37 SRC_URI="mirror://sourceforge/ntwib/${P}-src.tgz
38 doc? ( mirror://sourceforge/ntwib/${P}-doc_html.tgz )"
39 +S="${WORKDIR}/${P}-src/src"
40
41 LICENSE="GPL-3"
42 SLOT="0"
43 @@ -25,9 +27,9 @@ DEPEND="
44 "
45 RDEPEND="${DEPEND}"
46
47 -S=${WORKDIR}/${P}-src/src
48 -
49 src_prepare() {
50 + default
51 +
52 sed -i \
53 -e 's:/man$:/share/man:g' \
54 -e "s:/lib:/$(get_libdir):" \
55 @@ -47,12 +49,12 @@ src_install() {
56 default
57 dodoc ../README.TXT
58 if use doc; then
59 - mkdir "${D}"/usr/share/doc/${PF}/html
60 + mkdir "${ED}"/usr/share/doc/${PF}/html || die
61 mv "${WORKDIR}"/${P}-doc_html/{index.html,${PN}} \
62 - "${D}"/usr/share/doc/${PF}/html
63 + "${ED}"/usr/share/doc/${PF}/html || die
64 fi
65
66 - cd "${S}"/..
67 + cd "${S}"/.. || die
68 dodoc \
69 doc/{changelog.txt,credits.txt,integration.txt} \
70 doc/{problemreport.txt,problemusageunix.txt,todo.txt}