You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libdnet/libdnet-1.11-r2.ebuild

45 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libdnet/libdnet-1.11-r2.ebuild,v 1.3 2012/02/16 15:05:39 jer Exp $
EAPI=4
PYTHON_DEPEND="python? 2"
inherit autotools eutils python
DESCRIPTION="simplified, portable interface to several low-level networking routines"
HOMEPAGE="http://libdnet.sourceforge.net/"
SRC_URI="mirror://sourceforge/libdnet/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="python static-libs"
RESTRICT="test"
DOCS=( README THANKS TODO )
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_prepare() {
sed -i 's/suite_free(s);//' test/check/*.c || die "sed failed"
epatch "${FILESDIR}"/${PN}-1.10-gcc4.diff
AT_M4DIR="config"
eautoreconf
}
src_configure() {
econf $(use_with python) $(use_enable static-libs static)
}
src_install() {
default
if ! use static-libs; then
rm -f "${D}"/usr/lib*/*.la || die
fi
}