[net-libs/libnftnl] sync with tree, upstream nuked xml support
This commit is contained in:
parent
7967adce7f
commit
20a71e32d8
@ -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
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
EGIT_REPO_URI="git://git.netfilter.org/${PN}"
|
||||
EAPI=6
|
||||
|
||||
inherit autotools git-r3 linux-info
|
||||
|
||||
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
|
||||
HOMEPAGE="http://netfilter.org/projects/nftables/"
|
||||
EGIT_REPO_URI="git://git.netfilter.org/${PN}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
SLOT="0/4"
|
||||
KEYWORDS=""
|
||||
IUSE="xml json examples static-libs"
|
||||
IUSE="examples json static-libs test"
|
||||
|
||||
COMMON_DEPEND=">=net-libs/libmnl-1.0.0
|
||||
xml? ( >=dev-libs/mini-xml-2.6 )
|
||||
RDEPEND=">=net-libs/libmnl-1.0.0
|
||||
json? ( >=dev-libs/jansson-2.3 )"
|
||||
DEPEND="virtual/pkgconfig
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="test? ( json )"
|
||||
|
||||
pkg_setup() {
|
||||
if kernel_is ge 3 13; then
|
||||
@ -32,13 +32,13 @@ pkg_setup() {
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with xml xml-parsing) \
|
||||
$(use_with json json-parsing)
|
||||
}
|
||||
|
||||
@ -53,3 +53,9 @@ src_install() {
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
cd tests || die
|
||||
./test-script.sh || die
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user