blob: 63af700cd3ec9b5eea590e61705c75d4c8ea0bb1 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
MYP=${PN}-gpl-${PV}-src
DESCRIPTION="Platform for deductive program verification"
HOMEPAGE="http://why3.lri.fr/"
SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed055
-> ${MYP}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="coq doc emacs gtk html hypothesis-selection +ocamlopt profiling zarith zip"
DEPEND=">=dev-lang/ocaml-4.02.3[ocamlopt?]
dev-ml/menhir
coq? ( sci-mathematics/coq )
doc? ( dev-tex/rubber )
gtk? ( dev-ml/lablgtk[sourceview] )
emacs? ( app-editors/emacs:* )
html? ( dev-tex/hevea )
hypothesis-selection? ( dev-ml/ocamlgraph )
zarith? ( dev-ml/zarith )
zip? ( dev-ml/camlzip )"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/${MYP}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
REQUIRED_USE="html? ( doc )"
src_prepare() {
mv configure.{in,ac} || die
sed -i \
-e "s:configure.in:configure.ac:g" \
Makefile.in
default
eautoreconf
}
src_configure() {
econf \
--disable-pvs-libs \
--disable-isabelle-libs \
$(use_enable coq coq-libs) \
$(use_enable coq coq-tactic) \
$(use_enable doc) \
$(use_enable emacs emacs-compilation) \
$(use_enable gtk ide) \
$(use_enable html html-doc) \
$(use_enable hypothesis-selection) \
$(use_enable ocamlopt native-code) \
$(use_enable profiling) \
$(use_enable zarith) \
$(use_enable zip)
}
src_compile() {
default
if use ocamlopt; then
emake byte
else
# If using bytecode we dont want to strip the binary as it would remove
# the bytecode and only leave ocamlrun...
export STRIP_MASK="*/bin/*"
fi
use doc && emake doc
}
src_install() {
default
emake DESTDIR="${D}" install-lib
emake DESTDIR="${D}" install_spark2014_dev
docompress -x /usr/share/doc/${PF}/examples
dodoc -r examples
if use doc; then
dodoc doc/manual.pdf
use html && dodoc -r doc/html
fi
}
|