diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-24 10:45:40 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-24 10:45:40 +0000 |
commit | 1804d2ae908b26fe4e3d3a38646c7d6ffa733d92 (patch) | |
tree | 6f5cdff53cb2fde48a01817379124dc476b3742d /dev-libs/libclc | |
parent | 2fa0c8dbba3b2455531e5616eed64f2fe66cb58b (diff) |
gentoo auto-resync : 24:01:2024 - 10:45:40
Diffstat (limited to 'dev-libs/libclc')
-rw-r--r-- | dev-libs/libclc/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libclc/libclc-19.0.0.9999.ebuild | 87 |
2 files changed, 88 insertions, 0 deletions
diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest index 726ac08ae717..8e51de4d90e8 100644 --- a/dev-libs/libclc/Manifest +++ b/dev-libs/libclc/Manifest @@ -14,4 +14,5 @@ EBUILD libclc-18.0.0.9999.ebuild 1715 BLAKE2B f82abdc9c110b6f6b317aead9273000c5b EBUILD libclc-18.0.0_pre20240106.ebuild 1715 BLAKE2B 7be5f456b776d2a04a0494e54b49c99c4467d9deaecee2aa87585e34394bbd6e3d53b1166983a9cd84a8c7d5c677d94feed73088662a45fecece534ed2c4c978 SHA512 9b169c453be57b7e39872d9a5303b977cc20f949f20f5fa32b1095d87355b85c9efe85cb278f3e015b2a45614585b3e9a7c1db321542f52f8b40337d66a626a4 EBUILD libclc-18.0.0_pre20240113.ebuild 1715 BLAKE2B 7be5f456b776d2a04a0494e54b49c99c4467d9deaecee2aa87585e34394bbd6e3d53b1166983a9cd84a8c7d5c677d94feed73088662a45fecece534ed2c4c978 SHA512 9b169c453be57b7e39872d9a5303b977cc20f949f20f5fa32b1095d87355b85c9efe85cb278f3e015b2a45614585b3e9a7c1db321542f52f8b40337d66a626a4 EBUILD libclc-18.0.0_pre20240120.ebuild 1559 BLAKE2B 0fa72bb8f94f561d769439ff83574998ef19ea34a77c12d566b965f069ecc72a74210038954d91da74033cb8df2f63197825bb191b898c4cb188e4289c21cd99 SHA512 fee8a3cec13779ecaa88fca5fc4fca4b0f7863ae6b4b39bcdc3a410b1f2b807fabd5c2589635b5b63a0196cc0bfe84f326ae856f18b6d484604aae8b49e85cf9 +EBUILD libclc-19.0.0.9999.ebuild 1715 BLAKE2B 7be5f456b776d2a04a0494e54b49c99c4467d9deaecee2aa87585e34394bbd6e3d53b1166983a9cd84a8c7d5c677d94feed73088662a45fecece534ed2c4c978 SHA512 9b169c453be57b7e39872d9a5303b977cc20f949f20f5fa32b1095d87355b85c9efe85cb278f3e015b2a45614585b3e9a7c1db321542f52f8b40337d66a626a4 MISC metadata.xml 362 BLAKE2B 768f93d0058e4da4b420569f3f1771dfa7385ad89540bbc18cf53b5a71e3f060a8afa1112ff37570d7fc9dc3e71619fa3fd8d0cf7b5d3954f5110b19e146df30 SHA512 e6335424da09f668953acd39dcd9b03a30e3b509b34b1de5c72644a3740a5b6b287f10e08405b79bafc8104cc4dc1324b7b9d7990c3b560b0235ae82da8c68a5 diff --git a/dev-libs/libclc/libclc-19.0.0.9999.ebuild b/dev-libs/libclc/libclc-19.0.0.9999.ebuild new file mode 100644 index 000000000000..70dacd0cf8da --- /dev/null +++ b/dev-libs/libclc/libclc-19.0.0.9999.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit cmake llvm llvm.org python-any-r1 + +DESCRIPTION="OpenCL C library" +HOMEPAGE="https://libclc.llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions || ( MIT BSD )" +SLOT="0" +IUSE="+spirv video_cards_nvidia video_cards_r600 video_cards_radeonsi" + +LLVM_MAX_SLOT=17 +BDEPEND=" + ${PYTHON_DEPS} + || ( + ( + sys-devel/clang:17 + spirv? ( dev-util/spirv-llvm-translator:17 ) + ) + ( + sys-devel/clang:16 + spirv? ( dev-util/spirv-llvm-translator:16 ) + ) + ( + sys-devel/clang:15 + spirv? ( dev-util/spirv-llvm-translator:15 ) + ) + ( + sys-devel/clang:14 + spirv? ( dev-util/spirv-llvm-translator:14 ) + ) + ( + sys-devel/clang:13 + spirv? ( dev-util/spirv-llvm-translator:13 ) + ) + ) +" + +LLVM_COMPONENTS=( libclc ) +llvm.org_set_globals + +llvm_check_deps() { + if use spirv; then + has_version -b "dev-util/spirv-llvm-translator:${LLVM_SLOT}" || + return 1 + fi + has_version -b "sys-devel/clang:${LLVM_SLOT}" +} + +pkg_setup() { + llvm_pkg_setup + python-any-r1_pkg_setup +} + +src_configure() { + local libclc_targets=() + + use spirv && libclc_targets+=( + "spirv-mesa3d-" + "spirv64-mesa3d-" + ) + use video_cards_nvidia && libclc_targets+=( + "nvptx--" + "nvptx64--" + "nvptx--nvidiacl" + "nvptx64--nvidiacl" + ) + use video_cards_r600 && libclc_targets+=( + "r600--" + ) + use video_cards_radeonsi && libclc_targets+=( + "amdgcn--" + "amdgcn-mesa-mesa3d" + "amdgcn--amdhsa" + ) + [[ ${#libclc_targets[@]} ]] || die "libclc target missing!" + + libclc_targets=${libclc_targets[*]} + local mycmakeargs=( + -DLIBCLC_TARGETS_TO_BUILD="${libclc_targets// /;}" + ) + cmake_src_configure +} |