mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
dev-ml/yojson: bump to 3.0.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
9fff385b44
commit
8762e546be
@ -1 +1,2 @@
|
||||
DIST yojson-2.2.2.tar.gz 58638 BLAKE2B b1e9e0375b57ad6a112aba25adda15cfc176ac44017c2dc686e5bfd3d32ed7c06c8bb1a97378f49b71f25b4949c836e3be5a72b06bfff76d96acd2b840ee43b9 SHA512 d1fdaa5345a37bb4ed203e8ec842bc8e91e88001de63c6e9539ef9c9f54b861af67de7d1169eb76879bab1a3b5b758dbc6deb1eea9cb6831bbbfba228b5bb4a3
|
||||
DIST yojson-3.0.0.gh.tar.gz 56689 BLAKE2B 716a7b1c7a8d219b6c216ba9ef2671375a5d6ce5a9c8f1f94db5681aeaabc8e9654eca8230b536301c2d761bb104e955b11f592bcb9094c0b87f89e64f2e767e SHA512 fb0cd16ac5d99196a341f8c9c80cccaafc0a5c04530d4024164f99dfe042f8050de5146e2ccf85316f13bf0533fe9def99627d7259725c0657d28bdc1914775a
|
||||
|
||||
53
dev-ml/yojson/yojson-3.0.0.ebuild
Normal file
53
dev-ml/yojson/yojson-3.0.0.ebuild
Normal file
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2025 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/"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/ocaml-community/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/ocaml-community/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="examples +ocamlopt test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? ( dev-ml/alcotest )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# let's not build this
|
||||
rm bench/dune yojson-bench.opam || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
dune-compile "${PN}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
dune-test "${PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user