forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stress-1.0.1.ebuild
45 lines (35 loc) · 968 Bytes
/
stress-1.0.1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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://people.seas.harvard.edu/~apw/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
}