blob: 9bd6f6b1cae8bd1cab89ca2d0aa4560a7bef6dc9 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils
DESCRIPTION="Alt-Ergo is an automatic theorem prover"
HOMEPAGE="http://alt-ergo.ocamlpro.com"
SRC_URI="${HOMEPAGE}/download_manager.php?target=${P}.tar.gz"
LICENSE="CeCILL-C"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt gtk"
DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?]
>=dev-ml/ocamlgraph-1.8.2[gtk?,ocamlopt?]
gtk? ( >=x11-libs/gtksourceview-2.8
>=dev-ml/lablgtk-2.14[sourceview,ocamlopt?] )"
RDEPEND="${DEPEND}"
src_prepare(){
sed -i ${S}/Makefile.in \
-e "s: /usr/share/: \$(DESTDIR)/usr/share/:g" \
-e "s:cp -f altgr-ergo.opt:mkdir -p \$(DESTDIR)/usr/share/gtksourceview-2.0/language-specs/\n\tcp -f altgr-ergo.opt:g"
}
src_compile(){
emake || die "emake failed"
if use gtk; then
emake gui || die "emake gui failed"
fi
}
src_install(){
DESTDIR="${D}" emake install || die "emake install failed"
dodoc README.md CHANGES
}
|