forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vov-2.0.0.ebuild
51 lines (40 loc) · 999 Bytes
/
vov-2.0.0.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
46
47
48
49
50
51
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit flag-o-matic
DESCRIPTION="A tool that emulates the behavior of a Von-Neumann machine"
HOMEPAGE="http://home.gna.org/vov/"
SRC_URI="http://download.gna.org/vov/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="debug gprof"
RDEPEND=""
DEPEND=">=sys-devel/flex-2.5.33-r3
>=sys-apps/sed-4.1.5"
src_unpack()
{
unpack ${A}
# do no install redundant documentation
cd "${S}"
sed -i 's/src scripts docs/src scripts/' "${S}/Makefile.in"
}
src_compile()
{
local fp_support=""
if use gprof; then
filter-flags "-fomit-frame-pointer"
fp_support="--enable-frame-pointer"
fi
econf \
`use_enable gprof` \
`use_enable debug` \
${fp_support} \
|| die "econf failed"
emake || die "emake failed"
}
src_install()
{
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS README NEWS
doman docs/vov.1
}