1 |
commit: de9bef84d311a443ee551e9f2cc61b75981a3c1e |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 1 14:48:48 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 1 14:50:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de9bef84 |
7 |
|
8 |
dev-libs/libnl: Version 3.5.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.74, Repoman-2.3.17 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libnl/Manifest | 1 + |
14 |
dev-libs/libnl/libnl-3.5.0.ebuild | 104 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 105 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libnl/Manifest b/dev-libs/libnl/Manifest |
18 |
index cce3a38c743..a042f543894 100644 |
19 |
--- a/dev-libs/libnl/Manifest |
20 |
+++ b/dev-libs/libnl/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST libnl-1.1.4.tar.gz 1174974 BLAKE2B e6466e15db17fe4725674d77c6cdcefac73e51346f6f4378bc3ea8409c1534519cc28f1123c8201e78f6b95254701a2f9591f907b3cc597ac1210fd3f8b832ea SHA512 25e26ddcc16540346ea34815ab6ac094177e5cee2eb3d843c4f8b30cd9d83390a3e87cb46046dc3bd9ae4d21f77e57bb3827c2cfc588eb18afe049921f2030b4 |
23 |
DIST libnl-3.4.0.tar.gz 933443 BLAKE2B 735da9f800277c48a5deceb78084f510f56f7017b1184e91b2bb45ba61a2e95355e7a3f5d0a74bdaf7ae003393a6c7556d5b201d0d0052dfc66042aa9e137986 SHA512 6336e5c55c79ff2638de9c812cc1842871769236bad7f65c547dec35fafd91988b257fceab144a0cc133c4b29f61172f6552c53aa9fc723bdc783079c2b1851e |
24 |
+DIST libnl-3.5.0.tar.gz 967835 BLAKE2B cf21c1ffa89799b91bf4bddb8833d5af5c62eb1c53a078ee55a2888bd8439e1ae6db8886c9c4f937297962faac6873b4cf5211ee3d1e5354d96b5dc545a6fc2d SHA512 9c94c09bac34297493b3ea482713d7c0865d2839b5042e5c7d1ed008e2402ab63df35a18e272f40b2cce27d0c31dc733fe7e4b2d376e7ca847a2b0d5e90de50c |
25 |
|
26 |
diff --git a/dev-libs/libnl/libnl-3.5.0.ebuild b/dev-libs/libnl/libnl-3.5.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..32fb308b60f |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libnl/libnl-3.5.0.ebuild |
31 |
@@ -0,0 +1,104 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
37 |
+DISTUTILS_OPTIONAL=1 |
38 |
+inherit distutils-r1 libtool multilib-minimal |
39 |
+ |
40 |
+LIBNL_P=${P/_/-} |
41 |
+LIBNL_DIR=${PV/_/} |
42 |
+LIBNL_DIR=${LIBNL_DIR//./_} |
43 |
+ |
44 |
+DESCRIPTION="Libraries providing APIs to netlink protocol based Linux kernel interfaces" |
45 |
+HOMEPAGE="http://www.infradead.org/~tgr/libnl/ https://github.com/thom311/libnl" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz |
48 |
+" |
49 |
+LICENSE="LGPL-2.1 utils? ( GPL-2 )" |
50 |
+SLOT="3" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
52 |
+IUSE="+debug static-libs python +threads utils" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ python? ( ${PYTHON_DEPS} ) |
56 |
+" |
57 |
+DEPEND=" |
58 |
+ ${RDEPEND} |
59 |
+ python? ( dev-lang/swig ) |
60 |
+ sys-devel/bison |
61 |
+ sys-devel/flex |
62 |
+" |
63 |
+REQUIRED_USE=" |
64 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
65 |
+" |
66 |
+DOCS=( |
67 |
+ ChangeLog |
68 |
+) |
69 |
+ |
70 |
+S=${WORKDIR}/${LIBNL_P} |
71 |
+ |
72 |
+MULTILIB_WRAPPED_HEADERS=( |
73 |
+ # we do not install CLI stuff for non-native |
74 |
+ /usr/include/libnl3/netlink/cli/addr.h |
75 |
+ /usr/include/libnl3/netlink/cli/class.h |
76 |
+ /usr/include/libnl3/netlink/cli/cls.h |
77 |
+ /usr/include/libnl3/netlink/cli/ct.h |
78 |
+ /usr/include/libnl3/netlink/cli/exp.h |
79 |
+ /usr/include/libnl3/netlink/cli/link.h |
80 |
+ /usr/include/libnl3/netlink/cli/neigh.h |
81 |
+ /usr/include/libnl3/netlink/cli/qdisc.h |
82 |
+ /usr/include/libnl3/netlink/cli/route.h |
83 |
+ /usr/include/libnl3/netlink/cli/rule.h |
84 |
+ /usr/include/libnl3/netlink/cli/tc.h |
85 |
+ /usr/include/libnl3/netlink/cli/utils.h |
86 |
+) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ |
91 |
+ elibtoolize |
92 |
+ |
93 |
+ if use python; then |
94 |
+ cd "${S}"/python || die |
95 |
+ distutils-r1_src_prepare |
96 |
+ fi |
97 |
+ |
98 |
+ # out-of-source build broken |
99 |
+ # https://github.com/thom311/libnl/pull/58 |
100 |
+ multilib_copy_sources |
101 |
+} |
102 |
+ |
103 |
+multilib_src_configure() { |
104 |
+ econf \ |
105 |
+ $(multilib_native_use_enable utils cli) \ |
106 |
+ $(use_enable debug) \ |
107 |
+ $(use_enable static-libs static) \ |
108 |
+ $(use_enable threads) \ |
109 |
+ --disable-silent-rules |
110 |
+} |
111 |
+ |
112 |
+multilib_src_compile() { |
113 |
+ default |
114 |
+ |
115 |
+ if multilib_is_native_abi && use python; then |
116 |
+ cd python || die |
117 |
+ distutils-r1_src_compile |
118 |
+ fi |
119 |
+} |
120 |
+ |
121 |
+multilib_src_install() { |
122 |
+ emake DESTDIR="${D}" install |
123 |
+ |
124 |
+ if multilib_is_native_abi && use python; then |
125 |
+ # Unset DOCS= since distutils-r1.eclass interferes |
126 |
+ local DOCS=() |
127 |
+ cd python || die |
128 |
+ distutils-r1_src_install |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+multilib_src_install_all() { |
133 |
+ einstalldocs |
134 |
+ find "${D}" -name '*.la' -delete || die |
135 |
+} |