summaryrefslogtreecommitdiff
path: root/dev-ml/gen/gen-1.0-r2.ebuild
blob: a4cf8cddd80464b7862d19beeb9c56d25920d4ef (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune

DESCRIPTION="Iterators for OCaml, both restartable and consumable"
HOMEPAGE="https://github.com/c-cube/gen/"
SRC_URI="https://github.com/c-cube/gen/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt"
RESTRICT="test"  # tests fail  > unused-open

RDEPEND="
	>=dev-lang/ocaml-4.07:=[ocamlopt?]
	dev-ml/dune-configurator:=
"
DEPEND="${RDEPEND}"
# BDEPEND="test? ( dev-ml/qtest )"

src_prepare() {
	default

	sed -i \
		-e "s:(libraries bytes seq)::" \
		src/dune \
		|| die
}