dev-ml/diet - 0.4 (nest)

Search

Install

Install this version:

emerge -a =dev-ml/diet-0.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ml/diet-0.4

Or alternatively:

emerge --autounmask-write -a =dev-ml/diet-0.4

Package Information

Description:
Ocaml Discrete Interval Encoding Trees
Homepage:
https://github.com/mirage/ocaml-diet
License:
ISC

Ebuild Details

Version EAPI Keywords Slot
0.4 8 ~amd64 0/0.4
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune

MY_PN="ocaml-${PN}"

DESCRIPTION="Ocaml Discrete Interval Encoding Trees"
HOMEPAGE="https://github.com/mirage/ocaml-diet"
SRC_URI="https://github.com/mirage/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"

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

RDEPEND="dev-ml/stdlib-shims:=[ocamlopt?]"
BDEPEND="test? ( dev-ml/ounit2 )"

src_prepare() {
	default

	# use ounit2
	sed -i '/libraries/s|oUnit|ounit2|' lib_test/dune \
		|| die "sed failed for dune"
	sed -i 's/ounit/ounit2/' diet.opam \
		|| die "sed failed for opam"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ml/diet | euse -E <flag> -p dev-ml/diet | euse -D <flag> -p dev-ml/diet

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

Dependencies

RDEPEND

dev-ml/stdlib-shims:=[ocamlopt?]

BDEPEND

test? ( dev-ml/ounit2 )

Manifest for 0.4

Type File Size Source URLs
DIST diet-0.4.tar.gz 10139 bytes https://github.com/mirage/ocaml-diet/archive/v0.4.tar.gz