logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 15b98b6136df693abb8f6751cbced2f2c36f678a
parent 4b8ff0df6ec65807d355742a8b465631d95821de
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  7 Jan 2021 15:45:13 +0100

dev-util/rebar: Define REBAR3_CMD

Diffstat:

Adev-util/rebar/rebar-3.14.2-r1.ebuild37+++++++++++++++++++++++++++++++++++++
Ddev-util/rebar/rebar-3.14.2.ebuild36------------------------------------
2 files changed, 37 insertions(+), 36 deletions(-)

diff --git a/dev-util/rebar/rebar-3.14.2-r1.ebuild b/dev-util/rebar/rebar-3.14.2-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 rebar3 + +DESCRIPTION="Erlang build tool that makes it easy to compile and test Erlang applications and releases" +HOMEPAGE="https://www.rebar3.org/" +LICENSE="Apache-2.0" +SRC_URI="https://github.com/erlang/rebar3/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}3-${PV}" +SLOT="3" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" +RESTRICT="network-sandbox" + +DEPEND="dev-lang/erlang" +RDEPEND="${DEPEND}" + +src_compile() { + ./bootstrap || die +} + +src_test() { + ./rebar3 ct || die +} + +src_install() { + rebar3_src_install + + dobin rebar3 + doman manpages/rebar3.1 + dodoc rebar.config.sample + dobashcomp priv/shell-completion/bash/rebar3 + newenvd - 98rebar3 <<< 'REBAR3_CMD='${EPREFIX}'/usr/bin/rebar3' +} diff --git a/dev-util/rebar/rebar-3.14.2.ebuild b/dev-util/rebar/rebar-3.14.2.ebuild @@ -1,36 +0,0 @@ -# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit bash-completion-r1 rebar3 - -DESCRIPTION="Erlang build tool that makes it easy to compile and test Erlang applications and releases" -HOMEPAGE="https://www.rebar3.org/" -LICENSE="Apache-2.0" -SRC_URI="https://github.com/erlang/rebar3/archive/${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}3-${PV}" -SLOT="3" -KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="" -RESTRICT="network-sandbox" - -DEPEND="dev-lang/erlang" -RDEPEND="${DEPEND}" - -src_compile() { - ./bootstrap || die -} - -src_test() { - ./rebar3 ct || die -} - -src_install() { - rebar3_src_install - - dobin rebar3 - doman manpages/rebar3.1 - dodoc rebar.config.sample - dobashcomp priv/shell-completion/bash/rebar3 -}