[net-libs/libmnl] sync

This commit is contained in:
Robert Förster 2023-05-02 17:56:26 +02:00
parent 871bc19cf0
commit dedf9e0d4a

View File

@ -1,10 +1,9 @@
# Copyright 1999-2020 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=8
inherit git-r3 autotools toolchain-funcs usr-ldscript
inherit autotools git-r3
DESCRIPTION="Minimalistic netlink library" DESCRIPTION="Minimalistic netlink library"
HOMEPAGE="https://netfilter.org/projects/libmnl/" HOMEPAGE="https://netfilter.org/projects/libmnl/"
EGIT_REPO_URI="git://git.netfilter.org/libmnl.git" EGIT_REPO_URI="git://git.netfilter.org/libmnl.git"
@ -12,7 +11,7 @@ EGIT_REPO_URI="git://git.netfilter.org/libmnl.git"
LICENSE="LGPL-2.1" LICENSE="LGPL-2.1"
SLOT="0/0.2.0" SLOT="0/0.2.0"
KEYWORDS="" KEYWORDS=""
IUSE="examples static-libs" IUSE="examples"
src_unpack() { src_unpack() {
git-r3_src_unpack git-r3_src_unpack
@ -22,17 +21,10 @@ src_prepare(){
default default
eautoreconf eautoreconf
} }
src_configure() {
econf $(use_enable static-libs static)
}
src_install() { src_install() {
default default
gen_usr_ldscript -a mnl find "${ED}" -name '*.la' -delete || die
find "${D}" -name '*.la' -delete || die
if use examples; then if use examples; then
find examples/ -name 'Makefile*' -delete || die find examples/ -name 'Makefile*' -delete || die