llvm.eclass: Check for installed package rather than executable
authorMichał Górny <mgorny@gentoo.org>
Fri, 30 Jun 2017 15:08:50 +0000 (17:08 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 12 Aug 2017 21:21:28 +0000 (23:21 +0200)
commit0653b35c94d4c071bd0fbc9760e44f1b53b62a7b
tree4865cd5d674534d933fef3a753b564460607ed3c
parentb4c4ea66981fb921002990e0bbcba6d10902caca
llvm.eclass: Check for installed package rather than executable

Ensure that a specific LLVM slot is installed via using has_version on
"sys-devel/llvm:${SLOT}" rather than checking whether llvm-config is
installed in expected location. While it is a bit slower, this is closer
to a canonical way of testing it and will be useful when we allow
testing for more specific dependency strings. Right now, it could be
helpful if one has broken LLVM installation (i.e. stray files).
eclass/llvm.eclass