diff options
-rw-r--r-- | net-analyzer/gvmd/gvmd-9.0.1.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net-analyzer/gvmd/gvmd-9.0.1.ebuild b/net-analyzer/gvmd/gvmd-9.0.1.ebuild index 05f2b3421db6..837980d8e687 100644 --- a/net-analyzer/gvmd/gvmd-9.0.1.ebuild +++ b/net-analyzer/gvmd/gvmd-9.0.1.ebuild @@ -13,9 +13,10 @@ SRC_URI="https://github.com/greenbone/gvmd/archive/v${PV}.tar.gz -> ${P}.tar.gz" SLOT="0" LICENSE="GPL-2+" KEYWORDS="~amd64 ~x86" -IUSE="extras +postgres sqlite" +IUSE="extras +postgres sqlite test" # keep deprecated USE Flags for revdep of gvm REQUIRED_USE="postgres !sqlite" +RESTRICT="!test? ( test )" DEPEND=" dev-db/postgresql:*[uuid] @@ -41,7 +42,8 @@ BDEPEND=" app-doc/xmltoman app-text/htmldoc dev-libs/libxslt - )" + ) + test? ( dev-libs/cgreen )" src_prepare() { cmake_src_prepare @@ -79,6 +81,9 @@ src_compile() { cmake_build -C "${BUILD_DIR}" doc cmake_build doc-full -C "${BUILD_DIR}" doc fi + if use test; then + cmake_build tests + fi cmake_build rebuild_cache } |