| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/spew/spew-1.0.8.ebuild,v 1.4 2011/08/21 21:34:31 hparker Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools eutils
|
| 8 |
|
| 9 |
DESCRIPTION="Measures I/O performance and/or generates I/O load"
|
| 10 |
HOMEPAGE="http://spew.berlios.de/"
|
| 11 |
SRC_URI="ftp://ftp.berlios.de/pub/spew/1.0.8/spew-1.0.8.tgz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
| 16 |
IUSE="static"
|
| 17 |
|
| 18 |
DEPEND="static? ( sys-libs/ncurses[-gpm] dev-libs/popt[static-libs] )
|
| 19 |
!static? ( sys-libs/ncurses dev-libs/popt )"
|
| 20 |
RDEPEND="${DEPEND}"
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
epatch "${FILESDIR}"/remove-symlinks-makefile.patch
|
| 24 |
eautoreconf
|
| 25 |
}
|
| 26 |
|
| 27 |
src_configure() {
|
| 28 |
econf $(use_enable static static-link)
|
| 29 |
}
|
| 30 |
|
| 31 |
src_install() {
|
| 32 |
emake DESTDIR="${D}" install
|
| 33 |
dosym ${PN} /usr/bin/gorge
|
| 34 |
dosym ${PN} /usr/bin/regorge
|
| 35 |
dosym ${PN}.1.bz2 /usr/share/man/man1/gorge.1.bz2
|
| 36 |
dosym ${PN}.1.bz2 /usr/share/man/man1/reorge.1.bz2
|
| 37 |
}
|