[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 # 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" 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}" EGIT_REPO_URI="git://git.netfilter.org/${PN}"
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0/4" SLOT="0/11" # libnftnl.so version
KEYWORDS="" KEYWORDS=""
IUSE="examples json static-libs test threads" IUSE="examples static-libs test"
RDEPEND=">=net-libs/libmnl-1.0.0 RDEPEND=">=net-libs/libmnl-1.0.0"
json? ( >=dev-libs/jansson-2.3 )" BDEPEND="virtual/pkgconfig"
DEPEND="virtual/pkgconfig DEPEND="${RDEPEND}"
${RDEPEND}"
REQUIRED_USE="test? ( json )"
pkg_setup() { pkg_setup() {
if kernel_is ge 3 13; then if kernel_is ge 3 13; then
@ -36,21 +32,16 @@ src_prepare() {
} }
src_configure() { src_configure() {
econf \ local myeconfargs=(
$(use_enable static-libs static) \ $(use_enable static-libs static)
$(use_with json json-parsing) )
} econf "${myeconfargs[@]}"
src_test() {
default
cd tests || die
./test-script.sh || die
} }
src_install() { src_install() {
default default
gen_usr_ldscript -a nftnl 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 if use examples; then
find examples/ -name 'Makefile*' -delete || die "Could not rm examples" find examples/ -name 'Makefile*' -delete || die "Could not rm examples"