diff options
Diffstat (limited to 'dev-ml/jsonm')
-rw-r--r-- | dev-ml/jsonm/Manifest | 3 | ||||
-rw-r--r-- | dev-ml/jsonm/jsonm-1.0.1.ebuild | 38 | ||||
-rw-r--r-- | dev-ml/jsonm/metadata.xml | 8 |
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-ml/jsonm/Manifest b/dev-ml/jsonm/Manifest new file mode 100644 index 000000000000..5d45c4205b56 --- /dev/null +++ b/dev-ml/jsonm/Manifest @@ -0,0 +1,3 @@ +DIST jsonm-1.0.1.tbz 21608 BLAKE2B 4d3ce2a3430176df0876aeb6276a48bf23e51ebee2a1a46e5b25a370b26ba27c9ba09ff01365396123de4851d8f263c4c86c3176b13118910fd458ad3b23d80b SHA512 e86e225073b429f71063af14ad39b87498609db6a122b39e1a739c5b77fcde487bf6b17235b2f9742b7d22aca0f6d475fdba1b0bab2a6329cf7e681fe43d31a6 +EBUILD jsonm-1.0.1.ebuild 956 BLAKE2B 69f855de32d5f768286d00c9aaa4fcfc61d72d50dc18b9f859f31a8852ad7882677f69a12a3c95d3d33ec9f73cd8e4076b47c6f6759981be65c6d074521615a1 SHA512 94979d56db050b8ab3a834de1915f3fe95c679193643b738dc66fa47772a65983d12874fdbe25d39b7ff1e76bbcccd49783852f9ad9fdc975b9203ccad7c3ae7 +MISC metadata.xml 243 BLAKE2B 010ca240ae06e9a9f6d7ba213eb06df36d9ba862ff2d2458d98a9fea1a1e7f3026d13832a73bce1b3ad9345029425e6abfae9e03bf126f2329b3f030ed3753fd SHA512 1c5b4b2163017e496999d1f87e5c9c5ac6c11b2e9187450ccfb3df258f34e54d278972f04ee0e8429476c6f87e091a869ac2a28c6e8c8e6d20678c3e74061449 diff --git a/dev-ml/jsonm/jsonm-1.0.1.ebuild b/dev-ml/jsonm/jsonm-1.0.1.ebuild new file mode 100644 index 000000000000..301132978611 --- /dev/null +++ b/dev-ml/jsonm/jsonm-1.0.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit findlib + +DESCRIPTION="Non-blocking streaming JSON codec for OCaml" +HOMEPAGE="http://erratique.ch/software/jsonm" +SRC_URI="http://erratique.ch/software/jsonm/releases/${P}.tbz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" +IUSE="" + +RDEPEND=">=dev-ml/uutf-1.0.0:= + dev-lang/ocaml:= + dev-ml/uchar:=" +DEPEND="${RDEPEND} + dev-ml/topkg + dev-ml/ocamlbuild + dev-ml/findlib" + +DOCS=( CHANGES README ) + +src_compile() { + ocaml pkg/pkg.ml build || die +} + +src_install() { + # Can't use opam-installer here as it is an opam dep... + findlib_src_preinst + local nativelibs="$(echo _build/src/${PN}.cm{x,xa,xs,ti} _build/src/${PN}.a)" + ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli _build/src/${PN}.cm{a,i} ${nativelibs} || die + newbin _build/test/jsontrip.native jsontrip + dodoc CHANGES.md TODO.md README.md +} diff --git a/dev-ml/jsonm/metadata.xml b/dev-ml/jsonm/metadata.xml new file mode 100644 index 000000000000..ffac4d7ebc01 --- /dev/null +++ b/dev-ml/jsonm/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>ml@gentoo.org</email> + <name>Gentoo ML Project</name> +</maintainer> +</pkgmetadata> |