summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2018-07-11 22:55:32 -0400
committerNick Sarnie <sarnex@gentoo.org>2018-07-11 22:57:21 -0400
commit44b9278a1cb40ebae2ce038ccf97bae83ed786ac (patch)
treec869ea66b507a6239b5927ac7b2a7a92a53e8ebf /dev-util/vulkan-tools/vulkan-tools-9999.ebuild
parentdev-util/vulkan-tools: Relax dev-util/glslang dependency (diff)
downloadgentoo-44b9278a1cb40ebae2ce038ccf97bae83ed786ac.tar.gz
gentoo-44b9278a1cb40ebae2ce038ccf97bae83ed786ac.tar.bz2
gentoo-44b9278a1cb40ebae2ce038ccf97bae83ed786ac.zip
dev-util/vulkan-tools: Only rename cube binaries with cube USE
Whoops Package-Manager: Portage-2.3.42, Repoman-2.3.9
Diffstat (limited to 'dev-util/vulkan-tools/vulkan-tools-9999.ebuild')
-rw-r--r--dev-util/vulkan-tools/vulkan-tools-9999.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/dev-util/vulkan-tools/vulkan-tools-9999.ebuild b/dev-util/vulkan-tools/vulkan-tools-9999.ebuild
index f4bd7a738873..043d52de1fec 100644
--- a/dev-util/vulkan-tools/vulkan-tools-9999.ebuild
+++ b/dev-util/vulkan-tools/vulkan-tools-9999.ebuild
@@ -76,8 +76,11 @@ multilib_src_configure() {
multilib_src_install() {
default
- mv "${ED%/}"/usr/bin/cube "${ED%/}"/usr/bin/vulkancube || die
- mv "${ED%/}"/usr/bin/cubepp "${ED%/}"/usr/bin/vulkancubecpp || die
+
+ if use cube; then
+ mv "${ED%/}"/usr/bin/cube "${ED%/}"/usr/bin/vulkancube || die
+ mv "${ED%/}"/usr/bin/cubepp "${ED%/}"/usr/bin/vulkancubecpp || die
+ fi
}
pkg_postinst() {