1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs usr-ldscript
8 DESCRIPTION="Minimalistic netlink library"
9 HOMEPAGE="https://netfilter.org/projects/libmnl/"
10 SRC_URI="https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux"
15 IUSE="examples static-libs"
18 econf $(use_enable static-libs static)
24 gen_usr_ldscript -a mnl
26 find "${D}" -name '*.la' -delete || die
29 find examples/ -name 'Makefile*' -delete || die
31 docompress -x /usr/share/doc/${PF}/examples