BSD Ports

devel/ocaml-cstruct 6.2.0_2 FreeBSD

OCaml library and syntax extension to access C-like structures

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ISCL
Categories
devel
Package size
4842.8 KiB, 18327.9 KiB installed

Description

This library for OCaml contains functionnality to access datastructures using a determined byte-layouts such as networking datagrams or binay file formats (e.g.).

A PPX syntax extension is provided to allow the definition of byte-layouts in the form of "cstruct" type definitions -- looking much alike the well-known structure declaration of the C programming language (hence the name of this library) --, and to generate accessor functions to manipule its members.

In addition to those core features, the library contains accessory functions allowing:

  • The representation of "cstruct" as S-expression;

  • I/O operations over the Unix OCaml library and the Lwt cooperative threading library. The async integration is currently not provided by this port (patch welcome!).

In the other systems

SystemPortVersion
FreeBSDdevel/ocaml-cstruct6.2.0_2
NetBSDdevel/ocaml-cstruct6.1.0nb2
DragonFlydevel/ocaml-cstruct6.2.0_2

Install

Binary package:

pkg install ocaml-cstruct

From the ports tree:

cd /usr/ports/devel/ocaml-cstruct/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	ocaml-cstruct>0:devel/ocaml-cstruct

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest6.2.0_26.2.0_2-6.2.0_26.2.0_2
FreeBSD:14:quarterly6.2.0_26.2.0_2n/a6.2.0_26.2.0_2
FreeBSD:15:latest6.2.0_26.2.0_2n/a6.2.0_26.2.0_2
FreeBSD:15:quarterly6.2.0_26.2.0_2n/an/an/a
FreeBSD:16:latest6.2.0_26.2.0_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 4

Runtime 4

The full lists below include those, and their dependencies in turn.

Build dependencies 36
Run dependencies 35

Configuration

Options name: devel_cstruct

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
ocaml:dune,ldconfig
Service scripts
none

Files

pkg-plist 75
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/META
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.a
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.cma
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.cmxa
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/cstruct_lwt.cmxs
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/dune-package
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmi
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmt
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmti
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.cmx
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.ml
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/lwt_cstruct.mli
  • %%OCAML_SITELIBDIR%%/cstruct-lwt/opam
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/META
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.a
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cma
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmi
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmt
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmti
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmx
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmxa
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.cmxs
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.ml
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/cstruct_sexp.mli
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/dune-package
  • %%OCAML_SITELIBDIR%%/cstruct-sexp/opam
  • %%OCAML_SITELIBDIR%%/cstruct-unix/META
  • %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.a
  • %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.cma
  • %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.cmxa
  • %%OCAML_SITELIBDIR%%/cstruct-unix/cstruct_unix.cmxs
  • %%OCAML_SITELIBDIR%%/cstruct-unix/dune-package
  • %%OCAML_SITELIBDIR%%/cstruct-unix/opam
  • %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmi
  • %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmt
  • %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmti
  • %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.cmx
  • %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.ml
  • %%OCAML_SITELIBDIR%%/cstruct-unix/unix_cstruct.mli
  • %%OCAML_SITELIBDIR%%/cstruct/META
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.a
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cma
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmi
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmt
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmti
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmx
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmxa
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.cmxs
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.js
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.ml
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct.mli
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmi
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmt
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmti
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.cmx
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.ml
  • %%OCAML_SITELIBDIR%%/cstruct/cstruct_cap.mli
  • %%OCAML_SITELIBDIR%%/cstruct/dllcstruct_stubs.so
  • %%OCAML_SITELIBDIR%%/cstruct/dune-package
  • %%OCAML_SITELIBDIR%%/cstruct/libcstruct_stubs.a
  • %%OCAML_SITELIBDIR%%/cstruct/opam
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/META
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/dune-package
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/opam
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx.exe
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.a
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cma
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmi
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmt
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmti
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmx
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmxa
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.cmxs
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.ml
  • %%OCAML_SITELIBDIR%%/ppx_cstruct/ppx_cstruct.mli
distinfo 1
FileSizeSHA256
mirage-ocaml-cstruct-v6.2.0_GH0.tar.gz244005629a4bf17893c48c2f7b951eddc875a61de18bf190bb5a096976837198349cd4

Commit history 0

No commits in the history this site was built from.