| 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-libs/enet/enet-1.3.4.ebuild,v 1.2 2012/06/24 10:54:39 ago Exp $
|
| 4 |
|
| 5 |
EAPI=3
|
| 6 |
inherit base
|
| 7 |
|
| 8 |
DESCRIPTION="relatively thin, simple and robust network communication layer on top of UDP"
|
| 9 |
HOMEPAGE="http://enet.bespin.org/"
|
| 10 |
SRC_URI="http://enet.bespin.org/download/${P}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="MIT"
|
| 13 |
SLOT="1.3"
|
| 14 |
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
| 15 |
IUSE="static-libs"
|
| 16 |
|
| 17 |
RDEPEND="!${CATEGORY}/${PN}:0"
|
| 18 |
|
| 19 |
DOCS=( "ChangeLog" "README" )
|
| 20 |
|
| 21 |
src_configure() {
|
| 22 |
econf \
|
| 23 |
--disable-dependency-tracking \
|
| 24 |
$(use_enable static-libs static)
|
| 25 |
}
|
| 26 |
|
| 27 |
src_install() {
|
| 28 |
base_src_install
|
| 29 |
if ! use static-libs ; then
|
| 30 |
find "${D}" -type f -name '*.la' -exec rm {} + || die
|
| 31 |
fi
|
| 32 |
}
|