/[gentoo-x86]/net-misc/lksctp-tools/lksctp-tools-1.0.11-r1.ebuild
Gentoo

Contents of /net-misc/lksctp-tools/lksctp-tools-1.0.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Mar 19 19:10:56 2012 UTC (2 years, 5 months ago) by armin76
Branch: MAIN
Changes since 1.6: +2 -2 lines
alpha/sparc stable wrt #400449

(Portage version: 2.1.10.49/cvs/Linux ia64)

1 # Copyright 1999-2012 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.11-r1.ebuild,v 1.6 2012/03/08 09:07:13 phajdan.jr Exp $
4
5 EAPI=4
6
7 inherit eutils multilib flag-o-matic
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
28 src_configure() {
29 append-flags -fno-strict-aliasing
30
31 econf $(use_enable static-libs static) \
32 --enable-shared
33 }
34
35 src_install() {
36 emake DESTDIR="${D}" install || die
37 dodoc AUTHORS ChangeLog INSTALL NEWS README ROADMAP doc/*txt || die
38
39 newdoc src/withsctp/README README.withsctp || die
40
41 # Don't install static library or libtool file, since this is used
42 # only as preloadable library.
43 use static-libs && rm "${D}"/usr/$(get_libdir)/${PN}/*.a
44
45 find "${D}" -name '*.la' -delete || die
46 }

  ViewVC Help
Powered by ViewVC 1.1.20