net-analyzer/isic: Port to EAPI 8

Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
This commit is contained in:
Jakov Smolić
2021-10-21 21:14:42 +02:00
parent 791bdcd9f5
commit 0ef5e16f55

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EAPI=8
inherit toolchain-funcs
@@ -16,20 +16,18 @@ KEYWORDS="amd64 ppc x86"
DEPEND="net-libs/libnet:1.1"
RDEPEND="${DEPEND}"
DOCS=( ChangeLog README )
src_prepare() {
default
# Add two missing includes
echo "#include <netinet/udp.h>" >> isic.h || die
echo "#include <netinet/tcp.h>" >> isic.h || die
# Install man pages in /usr/share/man
sed -i -e 's|/man/man1|/share&|g' Makefile.in || die
tc-export CC
}
src_configure() {
tc-export CC
# Build system does not know about DESTDIR
econf --prefix="${D}/usr" --exec_prefix="${D}/usr"
}