dune.eclass

Name

dune.eclass -- Provides functions for installing Dune packages.

Description

Provides dependencies on Dune and OCaml and default src_compile, src_test and src_install for Dune-based packages.

Supported EAPIs

7 8

Exported Phases

  • src_compile

  • src_test

  • src_install

Functions

edune <arg> ...

A thin wrapper for the dune command. Runs dune with given arguments and dies on failure.

Example use:

edune clean
dune-release <subcommand> [--target target] [package] ...

Run a selected subcommand for either all of dune packages in current directory or only the selected packages. In case of all packages the package detection is done via dune itself. The --target option specifies a target for the selected subcommand, it is primarily used for dune build, for more info see man dune-build.

Example use:

dune-release build --target @install menhir menhirLib menhirSdk
dune-compile [package] ...

Builds either all of or selected dune packages in current directory.

Example use:

dune-compile menhir menhirLib menhirSdk
dune-test [package] ...

Tests either all of or selected dune packages in current directory.

Example use:

dune-test menhir menhirLib menhirSdk
dune-install <list of packages>

Installs the dune packages given as arguments. For each "${pkg}" element in that list, "${pkg}.install" must be readable from "${PWD}/_build/default"

Example use:

dune-install menhir menhirLib menhirSdk

Variables

DUNE_PKG_NAME (SET BEFORE INHERIT)

Sets the actual Dune package name, if different from Gentoo package name. Set before inheriting the eclass.

Authors

Rafael Kitover <rkitover@gmail.com>

Maintainers

rkitover@gmail.com

Mark Wright <gienah@gentoo.org>

ML <ml@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/