/[gentoo-x86]/dev-libs/libdnet/libdnet-1.11-r2.ebuild
Gentoo

Contents of /dev-libs/libdnet/libdnet-1.11-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Fri Jul 19 15:45:14 2013 UTC (5 years, 1 month ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key A792A613)

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/libdnet/libdnet-1.11-r2.ebuild,v 1.11 2013/05/27 11:50:10 jer Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="python? 2"
7 inherit autotools eutils python
8
9 DESCRIPTION="simplified, portable interface to several low-level networking routines"
10 HOMEPAGE="http://libdnet.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/libdnet/${P}.tar.gz"
12
13 LICENSE="LGPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
16 IUSE="python static-libs"
17
18 RESTRICT="test"
19 DOCS=( README THANKS TODO )
20
21 pkg_setup() {
22 if use python; then
23 python_set_active_version 2
24 python_pkg_setup
25 fi
26 }
27
28 src_prepare() {
29 sed -i -e 's/suite_free(s);//' test/check/*.c || die
30 sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' configure.in || die
31 epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff
32 AT_M4DIR="config"
33 eautoreconf
34 }
35
36 src_configure() {
37 econf $(use_with python) $(use_enable static-libs static)
38 }
39
40 src_install() {
41 default
42 if ! use static-libs; then
43 rm -f "${D}"/usr/lib*/*.la || die
44 fi
45 }

  ViewVC Help
Powered by ViewVC 1.1.20