summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois-Xavier Carton <fx.carton91@gmail.com>2020-11-27 18:41:45 +0100
committerSam James <sam@gentoo.org>2021-01-04 17:27:04 +0000
commit581237f305695944e3869f7baba9d64f7f08e561 (patch)
tree97d70a755cc982b0fbbceaccd08ad6d0d65ebd83 /dev-ml/yojson/yojson-1.7.0.ebuild
parentdev-ml/biniou: drop old (diff)
downloadgentoo-581237f305695944e3869f7baba9d64f7f08e561.tar.gz
gentoo-581237f305695944e3869f7baba9d64f7f08e561.tar.bz2
gentoo-581237f305695944e3869f7baba9d64f7f08e561.zip
dev-ml/yojson: bump to 1.7.0
Signed-off-by: Fran├žois-Xavier Carton <fx.carton91@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/18436 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ml/yojson/yojson-1.7.0.ebuild')
-rw-r--r--dev-ml/yojson/yojson-1.7.0.ebuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-ml/yojson/yojson-1.7.0.ebuild b/dev-ml/yojson/yojson-1.7.0.ebuild
new file mode 100644
index 00000000000..fbfcfb4f3d5
--- /dev/null
+++ b/dev-ml/yojson/yojson-1.7.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit dune
+
+DESCRIPTION="JSON parsing and pretty-printing library for OCaml"
+HOMEPAGE="https://github.com/ocaml-community/yojson"
+SRC_URI="https://github.com/ocaml-community/yojson/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="examples +ocamlopt"
+
+RDEPEND=">=dev-lang/ocaml-4.02.3:=[ocamlopt]
+ dev-ml/easy-format:=[ocamlopt]
+ >=dev-ml/biniou-1.2:=[ocamlopt]
+"
+DEPEND="${RDEPEND}
+ >=dev-ml/cppo-1.6.1
+"
+
+src_install() {
+ dune_src_install
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}