llvm.eclass: An eclass to handle dependencies on slotted LLVM
authorMichał Górny <mgorny@gentoo.org>
Sun, 29 Jan 2017 19:33:53 +0000 (20:33 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Feb 2017 12:47:13 +0000 (13:47 +0100)
commitdf501afc7985a0f02ddf3f8931da1820a794a9df
treec06947e0f2a0870a95ebc7478b414df729ba7364
parentcee20ddc65a8d51a2b3d920dc77536598d70c73a
llvm.eclass: An eclass to handle dependencies on slotted LLVM

Introduce an eclass to support dependencies building against slotted
LLVM.  It provides a function to find the newest installed LLVM version
that is not newer than the max supported slot, and a trivial pkg_setup()
implementation that adds executable directory of this install to PATH.
This ensures that:

a) build systems will find the correct llvm-config and use it to use
   the correct version of LLVM,

b) CMake's find_package() will find the correct LLVMConfig / ClangConfig
   files.
eclass/llvm.eclass [new file with mode: 0644]