diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-06 02:09:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-06 02:09:04 +0100 |
commit | 51f0d16e058c162dbce0f93d871ba45683b0ab3a (patch) | |
tree | 8dd3bc53a0d23549a8f210ce4bfdf74b36b9319f /dev-libs | |
parent | 35bf81c760d4e362615c32e69329ef61a01281f7 (diff) |
gentoo auto-resync : 06:08:2022 - 02:09:04
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/Manifest.gz | bin | 94959 -> 94948 bytes | |||
-rw-r--r-- | dev-libs/libclc/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libclc/libclc-16.0.0.9999.ebuild | 70 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz Binary files differindex bd4b38aa0364..900846f29a43 100644 --- a/dev-libs/Manifest.gz +++ b/dev-libs/Manifest.gz diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest index ed43f4a299f5..60464e087fc5 100644 --- a/dev-libs/libclc/Manifest +++ b/dev-libs/libclc/Manifest @@ -2,4 +2,5 @@ DIST llvm-project-14.0.6.src.tar.xz 105618228 BLAKE2B ee67c5407df8cef493b9c0004f DIST llvm-project-14.0.6.src.tar.xz.sig 566 BLAKE2B cb658ad43d8ab6c43a5773aedadf0569c97b5ee4b1bd58eceb10e1879a30880c741c3d66bedd462c892309b688fb7b2673115a62d1f74d71ee375a578de9547f SHA512 b4a7b368532a7a4a24376cfa7db8f6d3478f6d4446474342fc00b474ecf466330cd0f16783209263c4c72d5fc7ddedfb11b95578842e700cfb7ee0bb34cc95d6 EBUILD libclc-14.0.6.ebuild 1453 BLAKE2B 8d049f8f1d7b218f164ea21d289ead001d611c2c2f2432ad4661cece52a19ddcc36090d30d4b611e05403d9141c2a23a68df0d3f627ab2dc4f502b2314c4d2fa SHA512 9cfd836743a72ae4864d89464485b7b7c8e546b43db01b4b973dd50cbb90f0a3e5759e5fb348dbc8e4e73d576823dc6b273e27c9083d631a7fcaa45c6965fa0b EBUILD libclc-15.0.0.9999.ebuild 1465 BLAKE2B 58dad6d67bb157d5d4877172bec8048452141b3f64f51e434a8b169fd8206298d61ab9302e75468e299896bfc09fb605fb469a028f5024e4265d04f5c87bcedc SHA512 175d39d02979fddbe46c09693e1aa0491fb30a447a1f2ea305106ccc77c0830029dad316646862055bd8ebc45a52f7a42b039668ff42e2450c0e6821d5c25970 +EBUILD libclc-16.0.0.9999.ebuild 1465 BLAKE2B 58dad6d67bb157d5d4877172bec8048452141b3f64f51e434a8b169fd8206298d61ab9302e75468e299896bfc09fb605fb469a028f5024e4265d04f5c87bcedc SHA512 175d39d02979fddbe46c09693e1aa0491fb30a447a1f2ea305106ccc77c0830029dad316646862055bd8ebc45a52f7a42b039668ff42e2450c0e6821d5c25970 MISC metadata.xml 394 BLAKE2B 2c73a04cae5f0956ff187000d761ce8709fa39ab701f9adf2747f87da65fee48f996a56df540d5b95cfdecadef6383001b5e3dd57e1002f7f494d1ba3ecc987c SHA512 17bc874995ebeff9513d60dc850f3d1c5e7a3417f7170ec727edae1d09fb83242955ad24ff3fd24718a8eeadc80602cbe21618d081d50e6dc809a597dca72df1 diff --git a/dev-libs/libclc/libclc-16.0.0.9999.ebuild b/dev-libs/libclc/libclc-16.0.0.9999.ebuild new file mode 100644 index 000000000000..4ec05a0a963c --- /dev/null +++ b/dev-libs/libclc/libclc-16.0.0.9999.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +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" +KEYWORDS="" +IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_r600 video_cards_radeonsi" +IUSE="${IUSE_VIDEO_CARDS}" +REQUIRED_USE="|| ( ${IUSE_VIDEO_CARDS} )" + +LLVM_MAX_SLOT=15 +BDEPEND=" + ${PYTHON_DEPS} + || ( + sys-devel/clang:15 + sys-devel/clang:14 + sys-devel/clang:13 + sys-devel/clang:12 + sys-devel/clang:11 + sys-devel/clang:10 + ) +" + +LLVM_COMPONENTS=( libclc ) +llvm.org_set_globals + +llvm_check_deps() { + has_version -b "sys-devel/clang:${LLVM_SLOT}" +} + +pkg_setup() { + # we do not need llvm_pkg_setup + python-any-r1_pkg_setup +} + +src_configure() { + local libclc_targets=() + + 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" + ) + # TODO: spirv + [[ ${#libclc_targets[@]} ]] || die "libclc target missing!" + + libclc_targets=${libclc_targets[*]} + local mycmakeargs=( + -DLIBCLC_TARGETS_TO_BUILD="${libclc_targets// /;}" + -DLLVM_CONFIG="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" + ) + cmake_src_configure +} |