aboutsummaryrefslogtreecommitdiff
blob: 54cb8a5002c0fabe46d68189abafd0e7df4ea962 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils

DESCRIPTION="Alt-Ergo is an automatic theorem prover"
HOMEPAGE="http://alt-ergo.lri.fr"
SRC_URI="http://alt-ergo.lri.fr/http/${P}/${P}.tar.gz"

LICENSE="CeCILL-C"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="+ocamlopt gtk"

DEPEND="
	>=dev-lang/ocaml-3.10.2[ocamlopt?]
	>=dev-ml/ocamlgraph-1.8.2[gtk?,ocamlopt?]
	gtk? (
		x11-libs/gtksourceview:2.0
		>=dev-ml/lablgtk-2.14[sourceview,ocamlopt?]
	)"
RDEPEND="${DEPEND}"

src_prepare(){
	sed \
		-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" \
		-i "${S}"/Makefile.in || die
}

src_compile(){
	emake
	use gtk && emake gui
}