| 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-analyzer/bing/bing-1.1.3-r1.ebuild,v 1.6 2010/10/25 17:51:51 ranger Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="A point-to-point bandwidth measurement tool."
|
| 10 |
SRC_URI="mirror://debian/pool/main/b/bing/${PN}_${PV}.orig.tar.gz"
|
| 11 |
HOMEPAGE="http://fgouget.free.fr/bing/index-en.shtml"
|
| 12 |
|
| 13 |
LICENSE="BSD-4"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 ~arm ia64 ppc sparc x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
RDEPEND=""
|
| 19 |
DEPEND=">=sys-apps/sed-4"
|
| 20 |
|
| 21 |
src_prepare() {
|
| 22 |
sed -i -e "s:#COPTIM = -g: COPTIM = ${CFLAGS}:" Makefile || die
|
| 23 |
}
|
| 24 |
|
| 25 |
src_compile() {
|
| 26 |
emake CC="$(tc-getCC)"|| die "emake failed"
|
| 27 |
}
|
| 28 |
|
| 29 |
src_install() {
|
| 30 |
dobin bing || die
|
| 31 |
doman unix/bing.8 || die
|
| 32 |
dodoc ChangeLog Readme.{1st,txt} || die
|
| 33 |
}
|