1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit multilib toolchain-funcs
7 DESCRIPTION="Libraries providing APIs to netlink protocol based Linux kernel interfaces"
8 HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
9 SRC_URI="http://www.infradead.org/~tgr/libnl/files/${P}.tar.gz"
12 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
13 IUSE="doc static-libs"
15 DEPEND="doc? ( app-doc/doxygen )"
18 "${FILESDIR}"/${PN}-1.1-vlan-header.patch
19 "${FILESDIR}"/${PN}-1.1-flags.patch
20 "${FILESDIR}"/${PN}-1.1.3-offsetof.patch
28 Makefile.rules {lib,src,tests}/Makefile || die
31 Makefile.opts.in || die
33 if ! use static-libs; then
34 sed -i lib/Makefile -e '/OUT_AR/d' || die