diff options
Diffstat (limited to 'dev-ml/atdgen/atdgen-1.10.0.ebuild')
-rw-r--r-- | dev-ml/atdgen/atdgen-1.10.0.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-ml/atdgen/atdgen-1.10.0.ebuild b/dev-ml/atdgen/atdgen-1.10.0.ebuild new file mode 100644 index 000000000000..99f038f67b65 --- /dev/null +++ b/dev-ml/atdgen/atdgen-1.10.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit findlib + +DESCRIPTION="Generates optimized boilerplate OCaml code for JSON and Biniou IO from type definitions" +HOMEPAGE="https://github.com/mjambon/atdgen" +SRC_URI="https://github.com/mjambon/atdgen/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="+ocamlopt" + +DEPEND=" + dev-lang/ocaml:=[ocamlopt?] + dev-ml/atd:=[ocamlopt?] + dev-ml/biniou:=[ocamlopt?] + dev-ml/yojson:= +" +RDEPEND="${DEPEND}" + +src_compile() { + emake -j1 all + use ocamlopt && emake opt +} + +src_install() { + dodir /usr/bin + PREFIX="${ED}/usr" findlib_src_install + dodoc README.md +} |