summaryrefslogtreecommitdiff
path: root/dev-ml/jingoo/jingoo-1.5.2.ebuild
blob: 222937b12d8e47fddd2af42b351d702dd43147a0 (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 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune

DESCRIPTION="OCaml template engine almost compatible with Jinja2"
HOMEPAGE="https://github.com/tategakibunko/jingoo/"
SRC_URI="https://github.com/tategakibunko/${PN}/archive/refs/tags/${PV}.tar.gz
	-> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

PATCHES=(
	"${FILESDIR}"/${P}-tests.patch
)

RDEPEND="
	dev-ml/menhir:=[ocamlopt?]
	dev-ml/ppx_deriving:=[ocamlopt?]
	dev-ml/re:=[ocamlopt?]
	dev-ml/uucp:=
	dev-ml/uutf:=[ocamlopt?]
"
DEPEND="${RDEPEND}"
BDEPEND="test? ( dev-ml/ounit2 )"

src_test() {
	emake test
}