jingoo-1.4.2.ebuild

Download (718 Bytes)

# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit dune

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

LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

RDEPEND="dev-ml/ppx_deriving:=
	dev-ml/ppxlib:=
	dev-ml/uucp:=
	dev-ml/uutf:=
	dev-ml/re:=
	dev-ml/ocaml-migrate-parsetree:=
	dev-ml/menhir:="
DEPEND="${RDEPEND}
	test? ( dev-ml/ounit2 )"

src_prepare() {
	default

	# Port to dev-ml/ounit2
	sed -i -e 's/oUnit/ounit2/' tests/dune.in || die
}

Thank you!