[net-libs/libnftnl] sync with tree

This commit is contained in:
Robert Förster 2019-07-18 19:11:48 +02:00
parent 629024c08f
commit e8c8b41500
1 changed files with 14 additions and 23 deletions

View File

@ -1,26 +1,22 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
EAPI=7
inherit autotools git-r3 linux-info
inherit autotools git-r3 linux-info toolchain-funcs usr-ldscript
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="http://netfilter.org/projects/nftables/"
HOMEPAGE="https://netfilter.org/projects/nftables/"
EGIT_REPO_URI="git://git.netfilter.org/${PN}"
LICENSE="GPL-2"
SLOT="0/4"
SLOT="0/11" # libnftnl.so version
KEYWORDS=""
IUSE="examples json static-libs test threads"
IUSE="examples static-libs test"
RDEPEND=">=net-libs/libmnl-1.0.0
json? ( >=dev-libs/jansson-2.3 )"
DEPEND="virtual/pkgconfig
${RDEPEND}"
REQUIRED_USE="test? ( json )"
RDEPEND=">=net-libs/libmnl-1.0.0"
BDEPEND="virtual/pkgconfig"
DEPEND="${RDEPEND}"
pkg_setup() {
if kernel_is ge 3 13; then
@ -36,21 +32,16 @@ src_prepare() {
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with json json-parsing)
}
src_test() {
default
cd tests || die
./test-script.sh || die
local myeconfargs=(
$(use_enable static-libs static)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
gen_usr_ldscript -a nftnl
find "${D}" -name '*.la' -delete || die "Could not rm libtool files"
find "${ED}" -name '*.la' -delete || die
if use examples; then
find examples/ -name 'Makefile*' -delete || die "Could not rm examples"