1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/lksctp-tools/lksctp-tools-1.0.12.ebuild,v 1.1 2013/01/23 14:47:48 flameeyes Exp $ |
4 |
|
5 |
EAPI=5 |
6 |
|
7 |
inherit eutils multilib flag-o-matic autotools |
8 |
|
9 |
DESCRIPTION="Tools for Linux Kernel Stream Control Transmission Protocol implementation" |
10 |
HOMEPAGE="http://lksctp.sourceforge.net/" |
11 |
SRC_URI="mirror://sourceforge/lksctp/${P}.tar.gz" |
12 |
|
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" |
16 |
IUSE="kernel_linux static-libs" |
17 |
|
18 |
# This is only supposed to work with Linux to begin with. |
19 |
DEPEND=">=sys-kernel/linux-headers-2.6" |
20 |
RDEPEND="" |
21 |
|
22 |
REQUIRED_USE="kernel_linux" |
23 |
|
24 |
src_prepare() { |
25 |
epatch "${FILESDIR}"/${PN}-1.0.8-prefix.patch #181602 |
26 |
|
27 |
eautoreconf |
28 |
} |
29 |
|
30 |
src_configure() { |
31 |
append-flags -fno-strict-aliasing |
32 |
|
33 |
econf $(use_enable static-libs static) \ |
34 |
--enable-shared |
35 |
} |
36 |
|
37 |
DOCS=( AUTHORS ChangeLog INSTALL NEWS README ROADMAP ) |
38 |
|
39 |
src_install() { |
40 |
default |
41 |
|
42 |
dodoc doc/*txt |
43 |
newdoc src/withsctp/README README.withsctp |
44 |
|
45 |
# Don't install static library or libtool file, since this is used |
46 |
# only as preloadable library. |
47 |
use static-libs && rm "${D}"/usr/$(get_libdir)/${PN}/*.a |
48 |
|
49 |
find "${D}" -name '*.la' -delete || die |
50 |
} |