summaryrefslogtreecommitdiff
path: root/dev-ml/ppx_yojson_conv_lib/ppx_yojson_conv_lib-0.17.0.ebuild
blob: 5f6d51dced292db299a6a57c247001b113d110fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune

DESCRIPTION="Runtime lib for ppx_yojson_conv"
HOMEPAGE="https://github.com/janestreet/ppx_yojson_conv_lib/"

if [[ "${PV}" == *9999* ]] ; then
	inherit git-r3

	EGIT_REPO_URI="https://github.com/janestreet/${PN}"
else
	SRC_URI="https://github.com/janestreet/${PN}/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.gh.tar.gz"

	KEYWORDS="~amd64 ~x86"
fi

LICENSE="MIT"
SLOT="0/${PV}"
IUSE="+ocamlopt"

RDEPEND="
	>=dev-lang/ocaml-5.1.0
	>=dev-ml/yojson-1.7.0:=
"
DEPEND="
	${RDEPEND}
"
BDEPEND="
	>=dev-ml/dune-3.11.0
"