blob: 29f7dd9a358f23da508a4029db955da3e875c267 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/menhir/menhir-20130116.ebuild,v 1.1 2013/02/07 20:36:44 aballier Exp $
EAPI=5
inherit findlib
DESCRIPTION="LR(1) parser generator for the OCaml language"
HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
LICENSE="QPL-1.0 LGPL-2-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="examples +ocamlopt"
DEPEND=">=dev-lang/ocaml-3.09:=[ocamlopt?]"
RDEPEND="${DEPEND}"
src_configure() {
if ! use ocamlopt ; then
export TARGET=byte
fi
}
src_compile() {
emake PREFIX="${EPREFIX}"/usr -j1
}
src_install() {
findlib_src_preinst
emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
use examples && docompress -x /usr/share/doc/${PF}/demos
dodoc AUTHORS CHANGES
}
|