rebar3.eclass

Name

rebar3.eclass — Build Erlang/OTP projects using dev-util/rebar:3.

Description

An eclass providing functions to build Erlang/OTP projects using dev-util/rebar:3.

rebar is a tool which tries to resolve dependencies itself which is by cloning remote git repositories. Dependent projects are usually expected to be in sub-directory 'deps' rather than looking at system Erlang lib directory. Projects relying on rebar usually don't have 'install' make targets. The eclass workarounds some of these problems. It handles installation in a generic way for Erlang/OTP structured projects.

Supported EAPIs

8

Transitively Provided Eclasses

  • rebar-utils

Exported Phases

  • src_compile

  • src_test

  • src_install

  • src_prepare

  • src_configure

Functions

erebar3 <targets>

Run rebar with verbose flag. Die on failure.

rebar3_src_prepare

Prevent rebar3 from fetching and compiling dependencies. Set version in project description file if it's not set.

Existence of rebar.config is optional, but file description file must exist at 'src/${PN}.app.src'.

rebar3_src_configure

Configure with ERL_LIBS set.

rebar3_src_compile

Compile project with rebar3.

rebar3_src_test

Run unit tests.

rebar3_install_lib <dir>

Install BEAM files, include headers and native libraries.

Function expects that project conforms to Erlang/OTP structure.

rebar3_src_install

Install built release or library.

Function expects that project conforms to Erlang/OTP structure.

Variables

REBAR_PROFILE ?= default

Rebar profile to use. Defaults to 'default'.

Authors

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

Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>

Maintainers

Florian Schmaus <flow@gentoo.org>

Reporting Bugs

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