From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1457866-garchives=archives.gentoo.org@lists.gentoo.org>
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 388D0158020
	for <garchives@archives.gentoo.org>; Fri, 18 Nov 2022 08:26:18 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7AEF3E0938;
	Fri, 18 Nov 2022 08:26:17 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 pigeon.gentoo.org (Postfix) with ESMTPS id 62EECE0938
	for <gentoo-commits@lists.gentoo.org>; Fri, 18 Nov 2022 08:26:17 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 707B0340D6C
	for <gentoo-commits@lists.gentoo.org>; Fri, 18 Nov 2022 08:26:16 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DFF9599
	for <gentoo-commits@lists.gentoo.org>; Fri, 18 Nov 2022 08:26:15 +0000 (UTC)
From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" <matthew@gentoo.org>
Message-ID: <1668759962.accecc76c8180b1066e4a0ec9028d2bbf55f3614.matthew@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.ebuild
X-VCS-Directories: dev-util/rebar/
X-VCS-Committer: matthew
X-VCS-Committer-Name: Matthew Smith
X-VCS-Revision: accecc76c8180b1066e4a0ec9028d2bbf55f3614
X-VCS-Branch: master
Date: Fri, 18 Nov 2022 08:26:15 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f62b1186-e755-4d05-8495-65b92259dda9
X-Archives-Hash: 0ef6900a6153275e43b2ea28c30926a1

commit:     accecc76c8180b1066e4a0ec9028d2bbf55f3614
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 18 08:21:27 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Fri Nov 18 08:26:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=accecc76

dev-util/rebar: re-add meck dependency

Closes: https://bugs.gentoo.org/877313
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 dev-util/rebar/rebar-3.20.0.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-util/rebar/rebar-3.20.0.ebuild b/dev-util/rebar/rebar-3.20.0.ebuild
index d3b407311ef5..64591ebffb41 100644
--- a/dev-util/rebar/rebar-3.20.0.ebuild
+++ b/dev-util/rebar/rebar-3.20.0.ebuild
@@ -4,12 +4,16 @@
 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"
+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"
@@ -25,6 +29,14 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
+src_unpack() {
+	unpack ${P}.tar.gz
+	mkdir "${S}"/vendor/meck || die
+	tar -O -xf "${DISTDIR}"/meck-${MECK_PV}.tar contents.tar.gz |
+		tar -xzf - -C "${S}"/vendor/meck
+	assert
+}
+
 src_compile() {
 	./bootstrap || die
 }