dev-libs/opencl-clang - 17.0.5 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/opencl-clang-17.0.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/opencl-clang-17.0.5

Or alternatively:

emerge --autounmask-write -a =dev-libs/opencl-clang-17.0.5

Package Information

Description:
OpenCL-oriented thin wrapper library around clang
Homepage:
https://github.com/intel/opencl-clang
License:
UoI-NCSA

Ebuild Details

Version EAPI Keywords Slot
17.0.5 8 ~amd64 ~riscv $(ver_cut 1)
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LLVM_COMPAT=( 17 )

inherit cmake llvm-r2

DESCRIPTION="OpenCL-oriented thin wrapper library around clang"
HOMEPAGE="https://github.com/intel/opencl-clang"
SRC_URI="https://github.com/intel/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${PV}"

LICENSE="UoI-NCSA"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~riscv"

RDEPEND="
	dev-util/spirv-llvm-translator:${SLOT}=
	$(llvm_gen_dep '
		llvm-core/clang:${LLVM_SLOT}=[static-analyzer]
		llvm-core/llvm:${LLVM_SLOT}=
	')
"

DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}"/${PN}-17.0.0-clang_library_dir.patch )

src_configure() {
	local mycmakeargs=(
		-DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)"
		-DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib
		-DLLVM_VERSION_MAJOR="${LLVM_SLOT}"
		-DPREFERRED_LLVM_VERSION="${LLVM_SLOT}"
		-DUSE_PREBUILT_LLVM="ON"
		-Wno-dev
	)

	cmake_src_configure
}

Inherited Eclasses

Dependencies

DEPEND

	dev-util/spirv-llvm-translator:$(ver_cut 1)=
	$(llvm_gen_dep '
		llvm-core/clang:=[static-analyzer]
		llvm-core/llvm:=
	')

RDEPEND

	dev-util/spirv-llvm-translator:$(ver_cut 1)=
	$(llvm_gen_dep '
		llvm-core/clang:=[static-analyzer]
		llvm-core/llvm:=
	')

Manifest for 17.0.5

Type File Size Source URLs
DIST opencl-clang-17.0.5.tar.gz 37729 bytes https://github.com/intel/opencl-clang/archive/refs/tags/v17.0.5.tar.gz