REBAR-UTILS.ECLASS

Section: eclass-manpages (5)
Updated: Sep 2024
Index Return to Main Contents

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.

ECLASS 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 <[email protected]>

MAINTAINERS

Florian Schmaus <[email protected]>

REPORTING BUGS

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

FILES

rebar-utils.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/rebar-utils.eclass


Index

NAME
DESCRIPTION
SUPPORTED EAPIS
FUNCTIONS
ECLASS VARIABLES
AUTHORS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:00 GMT, September 25, 2024