From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE88E15800F for ; Mon, 9 Jan 2023 08:44:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 135EDE0798; Mon, 9 Jan 2023 08:44:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCCB2E0798 for ; Mon, 9 Jan 2023 08:44:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B2F3A340E64 for ; Mon, 9 Jan 2023 08:44:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0688C771 for ; Mon, 9 Jan 2023 08:44:46 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1673253881.105d700117bf1f2bd180198c656c8d9d8920f6e6.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rebar/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rebar/rebar-3.20.0-r1.ebuild X-VCS-Directories: dev-util/rebar/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 105d700117bf1f2bd180198c656c8d9d8920f6e6 X-VCS-Branch: master Date: Mon, 9 Jan 2023 08:44:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 06bada76-0447-4615-98f7-e49a905cccc6 X-Archives-Hash: 926494f26d34efd12f02dad747cc853e commit: 105d700117bf1f2bd180198c656c8d9d8920f6e6 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Sun Jan 8 18:01:17 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Jan 9 08:44:41 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=105d7001 dev-util/rebar: Define MIX_REBAR3 for elixir Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/29021 Signed-off-by: Florian Schmaus gentoo.org> dev-util/rebar/rebar-3.20.0-r1.ebuild | 67 +++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/dev-util/rebar/rebar-3.20.0-r1.ebuild b/dev-util/rebar/rebar-3.20.0-r1.ebuild new file mode 100644 index 000000000000..12bb4b6dda5d --- /dev/null +++ b/dev-util/rebar/rebar-3.20.0-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=${PN}3 +MECK_PV=0.8.13 # see rebar.config + +inherit bash-completion-r1 + +DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles" +HOMEPAGE="https://www.rebar3.org https://github.com/erlang/rebar3" +SRC_URI=" + https://github.com/erlang/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + test? ( https://repo.hex.pm/tarballs/meck-${MECK_PV}.tar ) +" +S="${WORKDIR}"/${MY_PN}-${PV} + +LICENSE="Apache-2.0 MIT BSD" +SLOT="3" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-lang/erlang[ssl] + !dev-util/rebar-bin +" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${P}.tar.gz + + if use test; then + mkdir "${S}"/vendor/meck || die + tar -O -xf "${DISTDIR}"/meck-${MECK_PV}.tar contents.tar.gz | + tar -xzf - -C "${S}"/vendor/meck + assert + fi +} + +src_compile() { + ./bootstrap || die +} + +src_test() { + ./rebar3 ct || die +} + +src_install() { + dobashcomp apps/rebar/priv/shell-completion/bash/${MY_PN} + dobin ${MY_PN} + dodoc rebar.config.sample + doman manpages/${MY_PN}.1 + + # MIX_REBAR3: Used by elixir + newenvd - 98rebar3 <