summaryrefslogtreecommitdiff
path: root/dev-ml/odoc-parser/odoc-parser-2.4.2.ebuild
blob: 8f5e20147d25c8e271d2004aa36b7f8f97032dd1 (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
36
37
38
39
40
41
42
43
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DUNE_PKG_NAME="odoc-parser"
inherit dune

MYP=odoc-${PV}

DESCRIPTION="Parser for ocaml documentation comments"
HOMEPAGE="https://github.com/ocaml-doc/odoc-parser"
SRC_URI="https://github.com/ocaml/odoc/archive/refs/tags/${PV}.tar.gz
	-> ${MYP}.tar.gz"

S="${WORKDIR}"/${MYP}

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt test"
RESTRICT="test"

RDEPEND="
	dev-ml/astring:=
	dev-ml/result:=[ocamlopt?]
	dev-ml/camlp-streams:=[ocamlopt?]
"
DEPEND="${RDEPEND}"
BDEPEND="
	>=dev-ml/dune-3.7
	test? (
		dev-ml/ppx_expect
	)
"

src_compile() {
	dune-compile ${PN}
}

src_test() {
	dune-test ${PN}
}