1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit bash-completion-r1 cmake
8 DESCRIPTION="A system exploration and troubleshooting tool"
9 HOMEPAGE="https://sysdig.com/"
10 SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="libressl +modules test"
16 RESTRICT="!test? ( test )"
22 >=dev-libs/jsoncpp-0.6_pre:0=
29 libressl? ( dev-libs/libressl:0= )
30 !libressl? ( dev-libs/openssl:0= )
34 test? ( dev-cpp/gtest )"
36 modules? ( >=dev-util/sysdig-kmod-${PV} )"
39 sed -i -e 's:-ggdb::' CMakeLists.txt || die
46 -DCREATE_TEST_TARGETS=$(usex test)
48 # done in dev-util/sysdig-kmod
50 # libscap examples are not installed or really useful
51 -DBUILD_LIBSCAP_EXAMPLES=OFF
54 -DUSE_BUNDLED_DEPS=OFF
64 rm -r "${ED}"/usr/src || die
66 # move bashcomp to the proper location
67 dobashcomp "${ED}"/usr/etc/bash_completion.d/sysdig || die
68 rm -r "${ED}"/usr/etc || die