blob: aff2500edd16f5070646b8329af333d56520902e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.22-r2.ebuild,v 1.3 2013/09/05 18:29:54 mgorny Exp $
EAPI=5
PYTHON_COMPAT=( python2_{6,7} python3_{2,3} )
DISTUTILS_OPTIONAL=1
inherit distutils-r1 eutils libtool multilib
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
SRC_URI="
http://www.infradead.org/~tgr/${PN}/files/${P}.tar.gz
doc? ( http://www.infradead.org/~tgr/${PN}/files/${PN}-doc-${PV}.tar.gz )
"
LICENSE="LGPL-2.1 doc? ( GPL-3 ) utils? ( GPL-2 )"
SLOT="3"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
IUSE="doc static-libs python utils"
RDEPEND="python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}
python? ( dev-lang/swig )
sys-devel/flex
sys-devel/bison
"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
DOCS=( ChangeLog )
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
epatch "${FILESDIR}"/${PN}-3.2.20-rtnl_tc_get_ops.patch
epatch "${FILESDIR}"/${PN}-3.2.20-cache-api.patch
epatch "${FILESDIR}"/${PN}-3.2.22-python.patch
elibtoolize
}
src_configure() {
econf \
--disable-silent-rules \
$(use_enable static-libs static) \
$(use_enable utils cli)
}
src_compile() {
default
if use python; then
cd "${S}"/python || die
distutils-r1_src_compile
fi
}
src_install() {
default
if use doc; then
dohtml -r \
-a css,html,js,map,png \
"${WORKDIR}"/${PN}-doc-${PV}/*
fi
if use python; then
# Unset DOCS= since distutils-r1.eclass interferes
DOCS=''
cd "${S}"/python || die
distutils-r1_src_install
fi
prune_libtool_files $(usex static-libs --modules --all)
}
|