blob: 2f9029c56d083da6eca1bf275bb9af6317ac5e01 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Automatic theorem prover"
HOMEPAGE="https://alt-ergo.ocamlpro.com"
SRC_URI="https://alt-ergo.ocamlpro.com/http/${P}/${P}.tar.gz"
LICENSE="CeCILL-C"
SLOT="0"
KEYWORDS="amd64"
IUSE="examples gtk +ocamlopt"
DEPEND=">=dev-lang/ocaml-4.09.0[ocamlopt?]
dev-ml/zarith
gtk? ( >=dev-ml/lablgtk-2.14[sourceview,ocamlopt?] )
dev-ml/camlzip
sci-mathematics/psmt2-frontend
>=dev-ml/ocplib-simplex-0.4
>=dev-ml/menhir-20181006
dev-ml/seq
dev-ml/dune"
RDEPEND="${DEPEND}"
DOCS=( CHANGES INSTALL.md README.md )
src_prepare() {
default
find "${S}" -name \*.ml | xargs sed -i "s:Pervasives:Stdlib:g" || die
}
src_configure() {
./configure --prefix /usr --libdir=/usr/$(get_libdir)
}
src_compile() {
emake lib
emake bin
use gtk && emake gui
}
src_install() {
default
use gtk && emake DESTDIR="${D}" install-gui
use examples && dodoc -r examples
mv "${D}"/usr/doc/* "${D}"/usr/share/doc/${PF}/ || die
rmdir "${D}"/usr/doc || die
}
|