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
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')
-rw-r--r--dev-util/vulkan-tools/vulkan-tools-1.1.77.0-r1.ebuild7
-rw-r--r--dev-util/vulkan-tools/vulkan-tools-9999.ebuild7
2 files changed, 10 insertions, 4 deletions
diff --git a/dev-util/vulkan-tools/vulkan-tools-1.1.77.0-r1.ebuild b/dev-util/vulkan-tools/vulkan-tools-1.1.77.0-r1.ebuild
index f4bd7a738873..043d52de1fec 100644
--- a/dev-util/vulkan-tools/vulkan-tools-1.1.77.0-r1.ebuild
+++ b/dev-util/vulkan-tools/vulkan-tools-1.1.77.0-r1.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() {
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() {