summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-11-15 15:19:24 +0100
committerMichał Górny <mgorny@gentoo.org>2016-11-15 15:31:37 +0100
commitb71bc77645c4af16aad06cc505b0fe86e205e2d9 (patch)
tree59e1f209c09b0764bd3d3b872b6a31a9c21d44c9 /dev-util/sysdig
parentdev-util/sysdig: Fix building kernel module when using Ninja (diff)
downloadgentoo-b71bc77645c4af16aad06cc505b0fe86e205e2d9.tar.gz
gentoo-b71bc77645c4af16aad06cc505b0fe86e205e2d9.tar.bz2
gentoo-b71bc77645c4af16aad06cc505b0fe86e205e2d9.zip
dev-util/sysdig: Use MODULES_OPTIONAL_USE for USE=modules
Diffstat (limited to 'dev-util/sysdig')
-rw-r--r--dev-util/sysdig/sysdig-0.12.1.ebuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/dev-util/sysdig/sysdig-0.12.1.ebuild b/dev-util/sysdig/sysdig-0.12.1.ebuild
index d8ff76105236..b418cd594e40 100644
--- a/dev-util/sysdig/sysdig-0.12.1.ebuild
+++ b/dev-util/sysdig/sysdig-0.12.1.ebuild
@@ -6,6 +6,7 @@ EAPI=6
# cmake generates make-specific code
#: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+MODULES_OPTIONAL_USE=modules
inherit linux-mod bash-completion-r1 cmake-utils
DESCRIPTION="A system exploration and troubleshooting tool"
@@ -34,11 +35,11 @@ DEPEND="${RDEPEND}
CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
pkg_pretend() {
- use modules && linux-mod_pkg_setup
+ linux-mod_pkg_setup
}
pkg_setup() {
- use modules && linux-mod_pkg_setup
+ linux-mod_pkg_setup
}
src_prepare() {
@@ -75,13 +76,13 @@ src_configure() {
src_compile() {
cmake-utils_src_compile
- use modules && linux-mod_src_compile
+ linux-mod_src_compile
}
src_install() {
cmake-utils_src_install
- use modules && linux-mod_src_install
+ linux-mod_src_install
# remove sources
rm -r "${ED%/}"/usr/src || die