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/app-benchmarks/stress/stress-1.0.0.ebuild

46 lines
1.1 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/stress/stress-1.0.0.ebuild,v 1.9 2014/08/05 07:59:56 patrick Exp $
inherit autotools flag-o-matic
MY_P="${PN}-${PV/_/}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Imposes stressful loads on different aspects of the system"
HOMEPAGE="http://weather.ou.edu/~apw/projects/stress"
SRC_URI="http://weather.ou.edu/~apw/projects/stress/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~mips ppc ppc64 sparc x86"
IUSE="static"
DEPEND="sys-apps/help2man"
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
# Force rebuild of the manpage.
rm -f doc/stress.1
# Honour Gentoo CFLAGS.
sed -i -e "/CFLAGS/s/-Werror//" \
-e "s/CFLAGS/AM_CFLAGS/" \
src/Makefile.am || die "sed cflags failed"
eautoreconf
}
src_compile() {
use static && append-ldflags -static
econf
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog AUTHORS README
}