blob: 978b40bd170778b67d229f159ce6a7b8a9318222 (
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=5
inherit eutils
DESCRIPTION="Alt-Ergo is an automatic theorem prover"
HOMEPAGE="http://alt-ergo.ocamlpro.com"
SRC_URI="http://dev.gentoo.org/~jauhien/distfiles/${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?]
dev-ml/zarith
gtk? ( >=x11-libs/gtksourceview-2.8
>=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 || die "emake failed"
use gtk && emake gui || die "emake gui failed"
}
src_install(){
emake install DESTDIR="${D}" || die "emake install failed"
dodoc README.md CHANGES
}
|