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: Mon, 30 Dec 2019 12:03:09
Message-Id: 1577707384.0949f29f406e8219ced96371db7549723eb88132.jer@gentoo
1 commit: 0949f29f406e8219ced96371db7549723eb88132
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 30 12:02:45 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 30 12:03:04 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0949f29f
7
8 dev-libs/libnl: Add live ebuild for SLOT=1.1
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 dev-libs/libnl/libnl-1.1.9999.ebuild | 57 ++++++++++++++++++++++++++++++++++++
14 1 file changed, 57 insertions(+)
15
16 diff --git a/dev-libs/libnl/libnl-1.1.9999.ebuild b/dev-libs/libnl/libnl-1.1.9999.ebuild
17 new file mode 100644
18 index 00000000000..e9ef685bf11
19 --- /dev/null
20 +++ b/dev-libs/libnl/libnl-1.1.9999.ebuild
21 @@ -0,0 +1,57 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit git-r3 multilib toolchain-funcs
27 +
28 +DESCRIPTION="Libraries providing APIs to netlink protocol based Linux kernel interfaces"
29 +HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
30 +EGIT_REPO_URI="https://github.com/tgraf/libnl-1.1-stable"
31 +LICENSE="LGPL-2.1"
32 +SLOT="1.1"
33 +KEYWORDS=""
34 +IUSE="doc static-libs"
35 +
36 +DEPEND="doc? ( app-doc/doxygen )"
37 +DOCS=( ChangeLog )
38 +PATCHES=(
39 + "${FILESDIR}"/${PN}-1.1-vlan-header.patch
40 + "${FILESDIR}"/${PN}-1.1-flags.patch
41 + "${FILESDIR}"/${PN}-1.1.3-offsetof.patch
42 +)
43 +
44 +src_prepare() {
45 + default
46 +
47 + sed -i \
48 + -e '/@echo/d' \
49 + Makefile.rules {lib,src,tests}/Makefile || die
50 + sed -i \
51 + -e 's|-g ||g' \
52 + Makefile.opts.in || die
53 +
54 + if ! use static-libs; then
55 + sed -i lib/Makefile -e '/OUT_AR/d' || die
56 + fi
57 +
58 + rm -f lib/libnl.a
59 +}
60 +
61 +src_compile() {
62 + emake AR=$(tc-getAR)
63 +
64 + if use doc ; then
65 + cd "${S}/doc"
66 + emake gendoc
67 + fi
68 +}
69 +
70 +src_install() {
71 + default
72 +
73 + if use doc ; then
74 + cd "${S}/doc"
75 + docinto html
76 + dodoc -r html/*
77 + fi
78 +}