| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-1.1-r3.ebuild,v 1.11 2013/03/03 09:03:37 vapier Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit eutils multilib
|
| 8 |
|
| 9 |
DESCRIPTION="A collection of libraries providing APIs to netlink protocol based Linux kernel interfaces"
|
| 10 |
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
| 11 |
SRC_URI="http://www.infradead.org/~tgr/libnl/files/${P}.tar.gz"
|
| 12 |
LICENSE="LGPL-2.1"
|
| 13 |
SLOT="1.1"
|
| 14 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
| 15 |
IUSE="doc"
|
| 16 |
|
| 17 |
DEPEND="doc? ( app-doc/doxygen )"
|
| 18 |
DOCS=( ChangeLog )
|
| 19 |
|
| 20 |
src_prepare() {
|
| 21 |
epatch \
|
| 22 |
"${FILESDIR}"/${P}-vlan-header.patch \
|
| 23 |
"${FILESDIR}"/${P}-minor-leaks.patch \
|
| 24 |
"${FILESDIR}"/${P}-glibc-2.8-ULONG_MAX.patch \
|
| 25 |
"${FILESDIR}"/${P}-flags.patch \
|
| 26 |
"${FILESDIR}"/${P}-inline.patch
|
| 27 |
}
|
| 28 |
|
| 29 |
src_compile() {
|
| 30 |
default
|
| 31 |
|
| 32 |
if use doc ; then
|
| 33 |
cd "${S}/doc"
|
| 34 |
emake gendoc || die "emake gendoc failed"
|
| 35 |
fi
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
default
|
| 40 |
|
| 41 |
if use doc ; then
|
| 42 |
cd "${S}/doc"
|
| 43 |
dohtml -r html/*
|
| 44 |
fi
|
| 45 |
}
|