dev-util/creduce: Require an LLVM slot with clang installed
authorMichał Górny <mgorny@gentoo.org>
Fri, 30 Jun 2017 21:28:03 +0000 (23:28 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 12 Aug 2017 21:21:30 +0000 (23:21 +0200)
dev-util/creduce/creduce-9999.ebuild

index 34ca7641f73486c5864c6e7b0d6137b2f731ae6c..b7accd15defa155135464f5c9172e499466d0803 100644 (file)
@@ -6,7 +6,7 @@ EAPI="6"
 EGIT_REPO_URI="https://github.com/csmith-project/${PN}"
 
 : ${CMAKE_MAKEFILE_GENERATOR=ninja}
-inherit cmake-utils git-r3
+inherit cmake-utils git-r3 llvm
 
 DESCRIPTION="C-Reduce - a plugin-based C program reducer"
 HOMEPAGE="https://embed.cs.utah.edu/creduce/"
@@ -30,3 +30,7 @@ RDEPEND="${COMMON_DEPEND}
        dev-util/astyle
        dev-util/indent"
 DEPEND="${COMMON_DEPEND}"
+
+llvm_check_deps() {
+       has_version "sys-devel/clang:${LLVM_SLOT}"
+}