3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
|
6 |
# Make sure to test USE=utils on bumps and update MULTILIB_WRAPPED_HEADERS if needed
|
|
7 |
|
|
8 |
DISTUTILS_EXT=1
|
6 |
9 |
DISTUTILS_OPTIONAL=1
|
7 |
10 |
DISTUTILS_USE_PEP517=setuptools
|
8 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
11 |
PYTHON_COMPAT=( python3_{10..11} )
|
9 |
12 |
inherit autotools distutils-r1 multilib-minimal
|
10 |
13 |
|
11 |
14 |
LIBNL_P=${P/_/-}
|
... | ... | |
19 |
22 |
inherit git-r3
|
20 |
23 |
else
|
21 |
24 |
SRC_URI="https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz"
|
22 |
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
|
25 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux"
|
23 |
26 |
|
24 |
27 |
S="${WORKDIR}/${LIBNL_P}"
|
25 |
28 |
fi
|
... | ... | |
31 |
34 |
|
32 |
35 |
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
33 |
36 |
DEPEND="${RDEPEND}"
|
34 |
|
BDEPEND="${RDEPEND}
|
|
37 |
BDEPEND="
|
|
38 |
${RDEPEND}
|
35 |
39 |
sys-devel/bison
|
36 |
40 |
sys-devel/flex
|
|
41 |
virtual/pkgconfig
|
37 |
42 |
python? (
|
38 |
43 |
${DISTUTILS_DEPS}
|
39 |
44 |
dev-lang/swig
|
40 |
45 |
)
|
41 |
|
test? ( dev-libs/check )"
|
|
46 |
test? ( dev-libs/check )
|
|
47 |
"
|
42 |
48 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
43 |
49 |
|
44 |
50 |
MULTILIB_WRAPPED_HEADERS=(
|
45 |
|
# we do not install CLI stuff for non-native
|
|
51 |
# We do not install CLI stuff for non-native
|
46 |
52 |
/usr/include/libnl3/netlink/cli/addr.h
|
47 |
53 |
/usr/include/libnl3/netlink/cli/class.h
|
48 |
54 |
/usr/include/libnl3/netlink/cli/cls.h
|
... | ... | |
50 |
56 |
/usr/include/libnl3/netlink/cli/exp.h
|
51 |
57 |
/usr/include/libnl3/netlink/cli/link.h
|
52 |
58 |
/usr/include/libnl3/netlink/cli/mdb.h
|
|
59 |
/usr/include/libnl3/netlink/cli/nh.h
|
53 |
60 |
/usr/include/libnl3/netlink/cli/neigh.h
|
54 |
61 |
/usr/include/libnl3/netlink/cli/qdisc.h
|
55 |
62 |
/usr/include/libnl3/netlink/cli/route.h
|
... | ... | |
58 |
65 |
/usr/include/libnl3/netlink/cli/utils.h
|
59 |
66 |
)
|
60 |
67 |
|
|
68 |
PATCHES=(
|
|
69 |
"${FILESDIR}"/${P}-python-decorator-syntax.patch
|
|
70 |
"${FILESDIR}"/${PN}-3.8.0-printf-non-bash.patch
|
|
71 |
)
|
|
72 |
|
61 |
73 |
src_prepare() {
|
62 |
74 |
default
|
63 |
75 |
|