summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Smith <matthew@gentoo.org>2022-11-20 08:22:18 +0000
committerMatthew Smith <matthew@gentoo.org>2022-11-20 08:32:06 +0000
commit468b52e7899024ca0f62e790f0e89a37009df5d8 (patch)
tree5db8b916e58fda5f8798f5555efa732224e738dd /dev-util
parentdev-util/kbuild: add myself as a maintainer (diff)
downloadgentoo-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')
-rw-r--r--dev-util/rebar/rebar-3.20.0.ebuild11
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() {