From 20a71e32d8ced9afddc4c70d9cb247fb2a184829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20F=C3=B6rster?= Date: Thu, 29 Sep 2016 11:40:55 +0200 Subject: [PATCH] [net-libs/libnftnl] sync with tree, upstream nuked xml support --- net-libs/libnftnl/libnftnl-9999.ebuild | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/net-libs/libnftnl/libnftnl-9999.ebuild b/net-libs/libnftnl/libnftnl-9999.ebuild index 36bca53..2fac6c2 100644 --- a/net-libs/libnftnl/libnftnl-9999.ebuild +++ b/net-libs/libnftnl/libnftnl-9999.ebuild @@ -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 +}