Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libnl/
Date: Sat, 31 Dec 2016 00:01:28
Message-Id: 1483142307.6ec855f09fd7810b8c0d32dcdc7082d5d1b5c7f7.jer@gentoo
1 commit: 6ec855f09fd7810b8c0d32dcdc7082d5d1b5c7f7
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 23:58:27 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 23:58:27 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ec855f0
7
8 dev-libs/libnl: Version bump.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-libs/libnl/Manifest | 1 +
13 dev-libs/libnl/libnl-3.2.29.ebuild | 115 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 116 insertions(+)
15
16 diff --git a/dev-libs/libnl/Manifest b/dev-libs/libnl/Manifest
17 index 7f7b430..d8d6b1f 100644
18 --- a/dev-libs/libnl/Manifest
19 +++ b/dev-libs/libnl/Manifest
20 @@ -2,3 +2,4 @@ DIST libnl-1.1.4.tar.gz 1174974 SHA256 4f80c21fe5bbcdde6e72b59b4f98306063a41421f
21 DIST libnl-3.2.27.tar.gz 905330 SHA256 4bbbf92b3c78a90f423cf96260bf419a28b75db8cced47051217a56795f58ec6 SHA512 f66d1c42eef75f6a1008abd6850f00abb0290d49bb685b4df43464c4dbf57d68fd4551f2a77bb2f375fd0a342b73cfd54d17c791f01ea43ce02683c8703e3a33 WHIRLPOOL 0bf32ca28b1f858caf99cb633ae4c3b863e53f8cb4b3b1703b454117e2eea2563d34b08c4ac920afb63e45c4717ba7628730a428df76f56818fe10cf336c4185
22 DIST libnl-3.2.28.tar.gz 941954 SHA256 cd608992c656e8f6e3ab6c1391b162a5a51c49336b9219f7f390e61fc5437c41 SHA512 b5f145ecafb2625ed1c42594afd6063f112a601077de5c35884b3c3bc8c562b29b52a006ccebd795c127fe69692a82def425c8605afed7e6d441582943e803d9 WHIRLPOOL ff49346ddc31105a300ebffc0e4d4956ac85ade5e92e884c62e696d7d4234d40e63cf4839e6b6fd2d98d2122662d36d3f41666391686a83c8bf966e53e22ed25
23 DIST libnl-3.2.29-rc1.tar.gz 963474 SHA256 97f75893b1268471ecf04acb23fe15a70e75827239863900254eb17aad733504 SHA512 8b00896452feba58748aaba5e84dc0b79f336fb1aaf3f309f619d5567c30c81dc6a00cb81003c30f3633bdaffaf39371a9833cca5fa3402f754c5509a4d4b52f WHIRLPOOL c8d1a25bdf665f67d219b515e7d2be8fff2e114575bf911f2a7f4295351d9095193d65b6cc79a7898d365d0dc1ec13098d9ee9476ae8b1c2e0b841f18541f6e0
24 +DIST libnl-3.2.29.tar.gz 963681 SHA256 0beb593dc6abfffa18a5c787b27884979c1b7e7f1fd468c801e3cc938a685922 SHA512 45e22b02368c479e01db7160345a0d3c73abf345e7b49bf350811243a17f307f5c6c3df639ec1e0c456707578aca8d69aad8afa697ac21449f521a3e39712670 WHIRLPOOL 1273dcaee79ecfdca947110c5e7ff70947703b1b0fda43fdb7c74edd78c6938f675e9a586aaff8feefce56a1f3137cbc50d3626ac336e6afa2ca8cbd8627e6eb
25
26 diff --git a/dev-libs/libnl/libnl-3.2.29.ebuild b/dev-libs/libnl/libnl-3.2.29.ebuild
27 new file mode 100644
28 index 00000000..5c5c565
29 --- /dev/null
30 +++ b/dev-libs/libnl/libnl-3.2.29.ebuild
31 @@ -0,0 +1,115 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
38 +DISTUTILS_OPTIONAL=1
39 +inherit distutils-r1 eutils libtool multilib multilib-minimal
40 +
41 +LIBNL_P=${P/_/-}
42 +LIBNL_DIR=${PV/_/}
43 +LIBNL_DIR=${LIBNL_DIR//./_}
44 +
45 +DESCRIPTION="Libraries providing APIs to netlink protocol based Linux kernel interfaces"
46 +HOMEPAGE="http://www.infradead.org/~tgr/libnl/ https://github.com/thom311/libnl"
47 +SRC_URI="
48 + https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz
49 +"
50 +LICENSE="LGPL-2.1 utils? ( GPL-2 )"
51 +SLOT="3"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
53 +IUSE="static-libs python utils"
54 +
55 +RDEPEND="
56 + python? ( ${PYTHON_DEPS} )
57 + abi_x86_32? (
58 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r5
59 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
60 + )
61 +"
62 +DEPEND="
63 + ${RDEPEND}
64 + python? ( dev-lang/swig )
65 + sys-devel/bison
66 + sys-devel/flex
67 +"
68 +
69 +REQUIRED_USE="
70 + python? ( ${PYTHON_REQUIRED_USE} )
71 +"
72 +
73 +DOCS=(
74 + ChangeLog
75 +)
76 +
77 +S=${WORKDIR}/${LIBNL_P}
78 +
79 +MULTILIB_WRAPPED_HEADERS=(
80 + # we do not install CLI stuff for non-native
81 + /usr/include/libnl3/netlink/cli/addr.h
82 + /usr/include/libnl3/netlink/cli/class.h
83 + /usr/include/libnl3/netlink/cli/cls.h
84 + /usr/include/libnl3/netlink/cli/ct.h
85 + /usr/include/libnl3/netlink/cli/exp.h
86 + /usr/include/libnl3/netlink/cli/link.h
87 + /usr/include/libnl3/netlink/cli/neigh.h
88 + /usr/include/libnl3/netlink/cli/qdisc.h
89 + /usr/include/libnl3/netlink/cli/route.h
90 + /usr/include/libnl3/netlink/cli/rule.h
91 + /usr/include/libnl3/netlink/cli/tc.h
92 + /usr/include/libnl3/netlink/cli/utils.h
93 +)
94 +
95 +PATCHES=(
96 + "${FILESDIR}"/${PN}-1.1-vlan-header.patch
97 + "${FILESDIR}"/${PN}-3.2.20-rtnl_tc_get_ops.patch
98 + "${FILESDIR}"/${PN}-3.2.20-cache-api.patch
99 +)
100 +
101 +src_prepare() {
102 + default
103 +
104 + elibtoolize
105 +
106 + if use python; then
107 + cd "${S}"/python || die
108 + distutils-r1_src_prepare
109 + fi
110 +
111 + # out-of-source build broken
112 + # https://github.com/thom311/libnl/pull/58
113 + multilib_copy_sources
114 +}
115 +
116 +multilib_src_configure() {
117 + econf \
118 + --disable-silent-rules \
119 + $(use_enable static-libs static) \
120 + $(multilib_native_use_enable utils cli)
121 +}
122 +
123 +multilib_src_compile() {
124 + default
125 +
126 + if multilib_is_native_abi && use python; then
127 + cd python || die
128 + distutils-r1_src_compile
129 + fi
130 +}
131 +
132 +multilib_src_install() {
133 + emake DESTDIR="${D}" install
134 +
135 + if multilib_is_native_abi && use python; then
136 + # Unset DOCS= since distutils-r1.eclass interferes
137 + local DOCS=()
138 + cd python || die
139 + distutils-r1_src_install
140 + fi
141 +}
142 +
143 +multilib_src_install_all() {
144 + einstalldocs
145 + prune_libtool_files --modules
146 +}