[net-libs/libnftnl] sync with tree, upstream nuked xml support

This commit is contained in:
Robert Förster 2016-09-29 11:40:55 +02:00
parent 7967adce7f
commit 20a71e32d8

View File

@ -1,26 +1,26 @@
# Copyright 1999-2015 Gentoo Foundation # Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# $Id$ # $Id$
EAPI=5 EAPI=6
EGIT_REPO_URI="git://git.netfilter.org/${PN}"
inherit autotools git-r3 linux-info inherit autotools git-r3 linux-info
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="http://netfilter.org/projects/nftables/"
EGIT_REPO_URI="git://git.netfilter.org/${PN}"
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0" SLOT="0/4"
KEYWORDS="" KEYWORDS=""
IUSE="xml json examples static-libs" IUSE="examples json static-libs test"
COMMON_DEPEND=">=net-libs/libmnl-1.0.0 RDEPEND=">=net-libs/libmnl-1.0.0
xml? ( >=dev-libs/mini-xml-2.6 )
json? ( >=dev-libs/jansson-2.3 )" json? ( >=dev-libs/jansson-2.3 )"
DEPEND="virtual/pkgconfig DEPEND="virtual/pkgconfig
${COMMON_DEPEND}" ${RDEPEND}"
RDEPEND="${COMMON_DEPEND}"
REQUIRED_USE="test? ( json )"
pkg_setup() { pkg_setup() {
if kernel_is ge 3 13; then if kernel_is ge 3 13; then
@ -32,13 +32,13 @@ pkg_setup() {
} }
src_prepare() { src_prepare() {
default
eautoreconf eautoreconf
} }
src_configure() { src_configure() {
econf \ econf \
$(use_enable static-libs static) \ $(use_enable static-libs static) \
$(use_with xml xml-parsing) \
$(use_with json json-parsing) $(use_with json json-parsing)
} }
@ -53,3 +53,9 @@ src_install() {
docompress -x /usr/share/doc/${PF}/examples docompress -x /usr/share/doc/${PF}/examples
fi fi
} }
src_test() {
default
cd tests || die
./test-script.sh || die
}