summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2021-11-29 20:42:55 +0100
committerJakov Smolić <jsmolic@gentoo.org>2021-11-29 20:49:17 +0100
commitf07f021300a2e5eb754ca5d1a910de1f057c85b8 (patch)
tree2f870e918c707ffe3ef422aff4d17f35fd9f7fc6
parentx11-misc/quitcount: Port to EAPI 8 (diff)
downloadgentoo-f07f0213.tar.gz
gentoo-f07f0213.tar.bz2
gentoo-f07f0213.zip
net-libs/netwib: Port to EAPI 8
Closes: https://bugs.gentoo.org/826838 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
-rw-r--r--net-libs/netwib/netwib-5.39.0.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/net-libs/netwib/netwib-5.39.0.ebuild b/net-libs/netwib/netwib-5.39.0.ebuild
index 0a94f4cb4132..c73eb6097f01 100644
--- a/net-libs/netwib/netwib-5.39.0.ebuild
+++ b/net-libs/netwib/netwib-5.39.0.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# NOTE: netwib, netwox and netwag go together, bump all or bump none
-EAPI=5
-inherit toolchain-funcs multilib
+EAPI=8
+
+inherit toolchain-funcs
DESCRIPTION="Library of Ethernet, IP, UDP, TCP, ICMP, ARP and RARP protocols"
HOMEPAGE="
@@ -13,6 +14,7 @@ HOMEPAGE="
"
SRC_URI="mirror://sourceforge/ntwib/${P}-src.tgz
doc? ( mirror://sourceforge/ntwib/${P}-doc_html.tgz )"
+S="${WORKDIR}/${P}-src/src"
LICENSE="GPL-3"
SLOT="0"
@@ -25,9 +27,9 @@ DEPEND="
"
RDEPEND="${DEPEND}"
-S=${WORKDIR}/${P}-src/src
-
src_prepare() {
+ default
+
sed -i \
-e 's:/man$:/share/man:g' \
-e "s:/lib:/$(get_libdir):" \
@@ -47,12 +49,12 @@ src_install() {
default
dodoc ../README.TXT
if use doc; then
- mkdir "${D}"/usr/share/doc/${PF}/html
+ mkdir "${ED}"/usr/share/doc/${PF}/html || die
mv "${WORKDIR}"/${P}-doc_html/{index.html,${PN}} \
- "${D}"/usr/share/doc/${PF}/html
+ "${ED}"/usr/share/doc/${PF}/html || die
fi
- cd "${S}"/..
+ cd "${S}"/.. || die
dodoc \
doc/{changelog.txt,credits.txt,integration.txt} \
doc/{problemreport.txt,problemusageunix.txt,todo.txt}