commit:     468b52e7899024ca0f62e790f0e89a37009df5d8
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 20 08:22:18 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 08:32:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=468b52e7

dev-util/rebar: don't unpack test deps when USE=-test

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

 dev-util/rebar/rebar-3.20.0.ebuild | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dev-util/rebar/rebar-3.20.0.ebuild 
b/dev-util/rebar/rebar-3.20.0.ebuild
index 64591ebffb41..976fc3c4ceba 100644
--- a/dev-util/rebar/rebar-3.20.0.ebuild
+++ b/dev-util/rebar/rebar-3.20.0.ebuild
@@ -31,10 +31,13 @@ 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
+
+       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() {

Reply via email to