summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-11-13 09:56:29 +0100
committerAlexis Ballier <aballier@gentoo.org>2015-11-13 09:56:29 +0100
commit9e5ff4087888e211a2d398ae141784208ca1cb42 (patch)
tree317ef60c34234b88c383badf7a4759af52e8b7d1 /dev-ml/menhir/menhir-20151112.ebuild
parentdev-ruby/rails: add rails 4.2.5 (diff)
downloadgentoo-9e5ff4087888e211a2d398ae141784208ca1cb42.tar.gz
gentoo-9e5ff4087888e211a2d398ae141784208ca1cb42.tar.bz2
gentoo-9e5ff4087888e211a2d398ae141784208ca1cb42.zip
dev-ml/menhir: bump to 20151112.
Package-Manager: portage-2.2.24 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ml/menhir/menhir-20151112.ebuild')
-rw-r--r--dev-ml/menhir/menhir-20151112.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-ml/menhir/menhir-20151112.ebuild b/dev-ml/menhir/menhir-20151112.ebuild
new file mode 100644
index 000000000000..a8d4107fe611
--- /dev/null
+++ b/dev-ml/menhir/menhir-20151112.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~x86"
+IUSE="examples +ocamlopt"
+
+DEPEND=">=dev-lang/ocaml-4.02:=[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
+}