blob: 4851cd7c9b3049ab2761d3a0180d87ca374a4ad6 (
plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit autotools eutils
DESCRIPTION="Why is a software verification platform"
HOMEPAGE="http://why.lri.fr/"
SRC_URI="http://why.lri.fr/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="apron coq doc examples float gappa frama-c gtk pff why3"
DEPEND=">=dev-lang/ocaml-3.12.1
>=dev-ml/ocamlgraph-1.5
gtk? ( >=dev-ml/lablgtk-2.14 )
apron? ( sci-mathematics/apron )
coq? ( sci-mathematics/coq )
gappa? ( sci-mathematics/gappalib-coq )
pff? ( sci-mathematics/pff )
frama-c? ( >=sci-mathematics/frama-c-20140301 )
float? ( sci-mathematics/flocq )
why3? ( sci-mathematics/why3 )"
RDEPEND="${DEPEND}"
DOCS=( CHANGES README Version )
src_prepare() {
sed -i Makefile.in \
-e "s/DESTDIR =.*//g" \
-e "s/@COQLIB@/\$(DESTDIR)\/@COQLIB@/g" || die
#to build with apron-0.9.10
sed -i configure.in \
-e "s/pvs/sri-pvs/g" \
-e "s/oct_caml/octMPQ_caml/g" \
-e "s/box_caml/boxMPQ_caml/g" \
-e "s/polka_caml/polkaMPQ_caml/g" || die
epatch "${FILESDIR}"/why-flocq23.patch
eautoreconf
}
src_configure() {
econf $(use_enable apron) PATH="/usr/bin:$PATH"
}
src_compile(){
MAKEOPTS+=" -j1"
emake DESTDIR="/"
}
src_install(){
default
doman doc/why.1
if use doc; then
dodoc doc/manual.ps
fi
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples examples-c
fi
}
|