# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune git-r3

DESCRIPTION="A plugin to generate Yojson conversion functions"
HOMEPAGE="https://github.com/janestreet/ppx_yojson_conv"
EGIT_REPO_URI="https://github.com/janestreet/${PN}.git"

LICENSE="MIT"
SLOT="0/${PV}"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

RDEPEND=">=dev-lang/ocaml-5.3.0:0=[ocamlopt?]
	dev-ml/base:0=[ocamlopt?]
	dev-ml/capitalization:0=[ocamlopt?]
	dev-ml/ppx_js_style:0=[ocamlopt?]
	dev-ml/ppx_yojson_conv_lib:0=[ocamlopt?]
	dev-ml/ppxlib:0=[ocamlopt?]"
BDEPEND="test? ( dev-ml/ppx_compare
		dev-ml/ppx_jane )"