| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 6.2.0-r2 | 8 | ~amd64 ~arm64 ~ppc ~ppc64 ~riscv | 0/6.2.0-r2 |
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# cstruct-async fails
DUNE_PKG_NAME="cstruct cstruct-lwt cstruct-sexp cstruct-unix ppx_cstruct"
inherit dune
DESCRIPTION="Access C-like structures directly from OCaml"
HOMEPAGE="https://github.com/mirage/ocaml-cstruct"
SRC_URI="https://github.com/mirage/ocaml-cstruct/releases/download/v${PV}/${P}.tbz"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv"
IUSE="+ocamlopt test"
RESTRICT="test" # ocaml-migrate-parsetree doesn't support fresh OCaml
RDEPEND="dev-ml/fmt:0=[ocamlopt?]
dev-ml/lwt:0=[ocamlopt?]
dev-ml/ppxlib:0=[ocamlopt?]
dev-ml/sexplib:0=[ocamlopt?]"
BDEPEND="test? ( dev-ml/alcotest
dev-ml/cppo
dev-ml/crowbar
dev-ml/cstruct
dev-ml/ocaml-migrate-parsetree
dev-ml/ppx_sexp_conv
dev-ml/ppxlib
dev-ml/sexplib )"
src_compile() {
dune-compile ${DUNE_PKG_NAME}
}
dev-ml/fmt:0=[ocamlopt?] dev-ml/lwt:0=[ocamlopt?] dev-ml/ppxlib:0=[ocamlopt?] dev-ml/sexplib:0=[ocamlopt?]
test? ( dev-ml/alcotest dev-ml/cppo dev-ml/crowbar dev-ml/cstruct dev-ml/ocaml-migrate-parsetree dev-ml/ppx_sexp_conv dev-ml/ppxlib dev-ml/sexplib )