| 1 |
# Copyright 1999-2012 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.9 2012/06/21 14:49:25 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 's/suite_free(s);//' test/check/*.c || die "sed failed"
|
| 30 |
epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff
|
| 31 |
AT_M4DIR="config"
|
| 32 |
eautoreconf
|
| 33 |
}
|
| 34 |
|
| 35 |
src_configure() {
|
| 36 |
econf $(use_with python) $(use_enable static-libs static)
|
| 37 |
}
|
| 38 |
|
| 39 |
src_install() {
|
| 40 |
default
|
| 41 |
if ! use static-libs; then
|
| 42 |
rm -f "${D}"/usr/lib*/*.la || die
|
| 43 |
fi
|
| 44 |
}
|