1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
7 EGIT_REPO_URI="https://llvm.org/git/${PN}.git
8 https://github.com/llvm-mirror/${PN}.git"
9 EGIT_COMMIT="96627043299f52bf08f6a68aa6d00b8037a0a2b0"
11 if [[ ${PV} = 9999* ]]; then
16 S="${WORKDIR}/libclc-${EGIT_COMMIT}"
19 inherit llvm prefix python-any-r1 toolchain-funcs ${GIT_ECLASS}
21 DESCRIPTION="OpenCL C library"
22 HOMEPAGE="http://libclc.llvm.org/"
24 if [[ ${PV} = 9999* ]]; then
25 SRC_URI="${SRC_PATCHES}"
27 SRC_URI="https://github.com/llvm-mirror/libclc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
31 LICENSE="|| ( MIT BSD )"
33 KEYWORDS="~amd64 ~arm64 ~x86"
42 >=sys-devel/clang-3.9:0
50 has_version "sys-devel/clang:${LLVM_SLOT}"
56 hprefixify configure.py
61 # we do not need llvm_pkg_setup
62 python-any-r1_pkg_setup
67 --with-cxx-compiler="$(tc-getCXX)" \
68 --with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \
69 --prefix="${EPREFIX}/usr" || die