blob: 9b089bac046ac6c7cb93e7215bc693939097be4a (
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
70
71
72
73
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
AUTOTOOLS_AUTORECONF=true
inherit autotools-utils
DESCRIPTION="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 ~x86"
IUSE="apron coq doc examples gappa gtk jessie pff"
DEPEND="
>=dev-lang/ocaml-3.09
>=dev-ml/ocamlgraph-1.2
gtk? ( >=dev-ml/lablgtk-2.14 )
apron? ( sci-mathematics/apron )
coq? ( sci-mathematics/coq )
gappa? ( sci-mathematics/gappalib-coq )
pff? ( sci-mathematics/pff )
jessie? ( >=sci-mathematics/frama-c-20100401 )"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${P}.patch )
MAKEOPTS+=" -j1"
AUTOTOOLS_IN_SOURCE_BUILD=1
src_prepare() {
sed \
-e "s/DESTDIR =.*//g" \
-e "s/@COQLIB@/\$(DESTDIR)\/@COQLIB@/g" \
-i Makefile.in || die
#to build with apron-0.9.10
sed \
-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" \
-i configure.in
autotools-utils_src_prepare
}
src_configure() {
local myeconfargs=(
$(use_enable apron)
PATH="/usr/bin:$PATH"
)
autotools-utils_src_configure
}
src_compile(){
autotools-utils_src_compile DESTDIR="/"
}
src_install(){
use doc && DOCS=( doc/manual.ps )
autotools-utils_src_install
doman doc/why.1
insinto /usr/share/doc/${PF}
use examples && doins -r examples examples-c
}
|