rebar-utils.eclass

Name

rebar-utils.eclass — Auxiliary functions for using dev-util/rebar.

Description

This eclass provides a set of axiliary functions commonly needed when building Erlang/OTP packages with rebar.

Supported EAPIs

7 8

Functions

get_erl_libs

Get the full path without EPREFIX to Erlang lib directory.

Return value: the path to Erlang lib directory

rebar_disable_coverage [<rebar_config>]

Disable coverage in rebar.config. This is a workaround for failing coverage. Coverage is not relevant in this context, so there's no harm to disable it, although the issue should be fixed.

rebar_fix_include_path <project_name> [<rebar_config>]

Fix path in rebar.config to 'include' directory of dependent project/package, so it points to installation in system Erlang lib rather than relative 'deps' directory.

<rebar_config> is optional. Default is 'rebar.config'.

The function dies on failure.

rebar_remove_deps [<rebar_config>]

Remove dependencies list from rebar.config and deceive build rules that any dependencies are already fetched and built. Otherwise rebar tries to fetch dependencies and compile them.

<rebar_config> is optional. Default is 'rebar.config'.

The function dies on failure.

rebar_set_vsn [<version>]

Set version in project description file if it's not set.

<version> is optional. Default is PV stripped from version suffix.

The function dies on failure.

Variables

REBAR_APP_SRC ?= src/${PN}.app.src

Relative path to .app.src description file. Defaults to 'src/${PN}.app.src'.

Authors

Amadeusz Żołnowski <aidecoe@gentoo.org>

Maintainers

Florian Schmaus <flow@gentoo.org>

Reporting Bugs

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