diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-11-02 22:40:23 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-11-02 23:11:22 +0100 |
commit | 4954e630819c37d87175508c9cdaf7c199fb88de (patch) | |
tree | 6586b34c66203a729bf3d241707d07a619598c2f | |
parent | dev-ml/yojson: drop old 2.0.2-r3 (diff) | |
download | gentoo-4954e630819c37d87175508c9cdaf7c199fb88de.tar.gz gentoo-4954e630819c37d87175508c9cdaf7c199fb88de.tar.bz2 gentoo-4954e630819c37d87175508c9cdaf7c199fb88de.zip |
dev-ml/yojson: bump to 2.1.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r-- | dev-ml/yojson/Manifest | 1 | ||||
-rw-r--r-- | dev-ml/yojson/files/yojson-2.1.1-dune-seq.patch | 9 | ||||
-rw-r--r-- | dev-ml/yojson/yojson-2.1.1.ebuild | 44 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-ml/yojson/Manifest b/dev-ml/yojson/Manifest index 93fb396c4417..99da581f40e9 100644 --- a/dev-ml/yojson/Manifest +++ b/dev-ml/yojson/Manifest @@ -1 +1,2 @@ DIST yojson-2.1.0.tar.gz 48316 BLAKE2B 49634800de95035624803883b7f44eda1dd4ba8c050efc52ba31246aba7c37b57d717ebc6d487a9c99ba55ab416a5b196974b0bac09bc6a74992356840e4ae52 SHA512 d52e4fcac41165f9fb74e922d35dd247e1622674f74d6e80978fbc1f42b45f45797965e41129e7acd049451ef5fcec48021ca7c866e36a4e8c4c51e78bab9d7f +DIST yojson-2.1.1.tar.gz 49090 BLAKE2B aa11a3d6b786f33fa2da6dbf34f2a496a1796eab64d87069420fc9953fef6442660a58f259c4abcca6373710375723e6965f0ab9c9dbcafea46eb6e03147fb54 SHA512 935014c43bca83201b0e9d3399e751ae5667ac12bc7fe3d8777b6a84a1216a7325b3cdafb8f9650a4c3979d0e2df6fdeae3cc894c92a175f7ee75ee6303b46c2 diff --git a/dev-ml/yojson/files/yojson-2.1.1-dune-seq.patch b/dev-ml/yojson/files/yojson-2.1.1-dune-seq.patch new file mode 100644 index 000000000000..d2ad6e750eb1 --- /dev/null +++ b/dev-ml/yojson/files/yojson-2.1.1-dune-seq.patch @@ -0,0 +1,9 @@ +--- a/lib/dune ++++ b/lib/dune +@@ -113,6 +113,5 @@ + (public_name yojson) + (modules yojson t basic safe raw common codec lexer_utils) + (synopsis "JSON parsing and printing") +- (libraries seq) + (flags + (:standard -w -27-32))) diff --git a/dev-ml/yojson/yojson-2.1.1.ebuild b/dev-ml/yojson/yojson-2.1.1.ebuild new file mode 100644 index 000000000000..ade0eaed42a7 --- /dev/null +++ b/dev-ml/yojson/yojson-2.1.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="examples +ocamlopt test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-lang/ocaml-4.07:=[ocamlopt?] + !!<dev-ml/seq-0.3 +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=dev-ml/cppo-1.6.1 + test? ( dev-ml/alcotest ) +" + +PATCHES=( "${FILESDIR}/${PN}-2.1.1-dune-seq.patch" ) + +src_prepare() { + default + # let's not build this + rm bench/dune yojson-bench.opam || die +} + +src_install() { + dune_src_install + + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |