Install this version:
emerge -a =dev-ml/cstruct-6.2.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-ml/cstruct-6.2.0
Or alternatively:
emerge --autounmask-write -a =dev-ml/cstruct-6.2.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 6.2.0 | 8 | ~amd64 | 0/6.2.0 |
# Copyright 2024-2026 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"
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}
}
Manage flags for this package:
euse -i <flag> -p dev-ml/cstruct |
euse -E <flag> -p dev-ml/cstruct |
euse -D <flag> -p dev-ml/cstruct
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 )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | cstruct-6.2.0.tbz | 241841 bytes | https://github.com/mirage/ocaml-cstruct/releases/download/v6.2.0/cstruct-6.2.0.tbz |