diff options
author | Matthew Smith <matthew@gentoo.org> | 2022-11-20 08:22:18 +0000 |
---|---|---|
committer | Matthew Smith <matthew@gentoo.org> | 2022-11-20 08:32:06 +0000 |
commit | 468b52e7899024ca0f62e790f0e89a37009df5d8 (patch) | |
tree | 5db8b916e58fda5f8798f5555efa732224e738dd /dev-util/rebar | |
parent | dev-util/kbuild: add myself as a maintainer (diff) | |
download | gentoo-468b52e7899024ca0f62e790f0e89a37009df5d8.tar.gz gentoo-468b52e7899024ca0f62e790f0e89a37009df5d8.tar.bz2 gentoo-468b52e7899024ca0f62e790f0e89a37009df5d8.zip |
dev-util/rebar: don't unpack test deps when USE=-test
Closes: https://bugs.gentoo.org/881791
Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'dev-util/rebar')
-rw-r--r-- | dev-util/rebar/rebar-3.20.0.ebuild | 11 |
1 files 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() { |