diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-07-15 11:42:00 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-07-15 11:42:00 +0000 |
commit | ef2a64bb41d98b7f9a7816bb1f63321c76c6bb73 (patch) | |
tree | 30161c22add21bdbf7e3b624df18e1b3a2f15067 /dev-libs | |
parent | Protect existing cmdline.txt & config.txt, add files dir (thanks chithead and... (diff) | |
download | gentoo-2-ef2a64bb41d98b7f9a7816bb1f63321c76c6bb73.tar.gz gentoo-2-ef2a64bb41d98b7f9a7816bb1f63321c76c6bb73.tar.bz2 gentoo-2-ef2a64bb41d98b7f9a7816bb1f63321c76c6bb73.zip |
Conditionally install experimental python bindings.
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libnl/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/libnl/libnl-3.2.22-r1.ebuild | 67 | ||||
-rw-r--r-- | dev-libs/libnl/metadata.xml | 3 |
3 files changed, 76 insertions, 2 deletions
diff --git a/dev-libs/libnl/ChangeLog b/dev-libs/libnl/ChangeLog index 256a526873cf..5aa93f94f201 100644 --- a/dev-libs/libnl/ChangeLog +++ b/dev-libs/libnl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/libnl # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/ChangeLog,v 1.178 2013/07/13 19:13:54 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/ChangeLog,v 1.179 2013/07/15 11:42:00 jer Exp $ + +*libnl-3.2.22-r1 (15 Jul 2013) + + 15 Jul 2013; Jeroen Roovers <jer@gentoo.org> +libnl-3.2.22-r1.ebuild, + metadata.xml: + Conditionally install experimental python bindings. 13 Jul 2013; Agostino Sarubbo <ago@gentoo.org> libnl-1.1.4.ebuild, libnl-3.2.22.ebuild: diff --git a/dev-libs/libnl/libnl-3.2.22-r1.ebuild b/dev-libs/libnl/libnl-3.2.22-r1.ebuild new file mode 100644 index 000000000000..bc5ac0badda6 --- /dev/null +++ b/dev-libs/libnl/libnl-3.2.22-r1.ebuild @@ -0,0 +1,67 @@ +# 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-r1.ebuild,v 1.1 2013/07/15 11:42:00 jer Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_{6,7} python3_{1,2,3} ) +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-2 ) 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" + +DEPEND=" + sys-devel/flex + sys-devel/bison +" + +DOCS=( ChangeLog ) + +src_prepare() { + elibtoolize + 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 +} + +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) +} diff --git a/dev-libs/libnl/metadata.xml b/dev-libs/libnl/metadata.xml index d9379a5c4686..c18ce8fb117c 100644 --- a/dev-libs/libnl/metadata.xml +++ b/dev-libs/libnl/metadata.xml @@ -3,7 +3,8 @@ <pkgmetadata> <herd>netmon</herd> <use> -<flag name="utils">Install command line interface utils</flag> <flag name="doc">Install development documentation</flag> +<flag name="python">Install experimental <pkg>dev-lang/python</pkg> bindings</flag> +<flag name="utils">Install command line interface utils</flag> </use> </pkgmetadata> |