summaryrefslogtreecommitdiff
path: root/dev-libs
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/Manifest.gzbin95601 -> 95599 bytes
-rw-r--r--dev-libs/libclc/Manifest2
-rw-r--r--dev-libs/libclc/libclc-16.0.0_pre20220918.ebuild71
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz
index 084142586692..583e55120b33 100644
--- a/dev-libs/Manifest.gz
+++ b/dev-libs/Manifest.gz
Binary files differ
diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest
index af1ad98b9700..6917fe99fbba 100644
--- a/dev-libs/libclc/Manifest
+++ b/dev-libs/libclc/Manifest
@@ -3,9 +3,11 @@ 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
DIST llvm-project-15.0.0.src.tar.xz 112062796 BLAKE2B 947917b6c75cbd8882133dc01f57013523274962371ac5ae4a22b010f8a7d5d31288c1d9847bf19ba919fa3110fe34a8ff937107fe19bd064ed87bf4d08d8a51 SHA512 e5aacbe7574dcec62017cc03c9fa2ee4cf075125a3d6c3975c38f06e91adcebb1ff92bcf40c6dd67db087813c60b15a04f1424c713d751199518b58025ce87fc
DIST llvm-project-15.0.0.src.tar.xz.sig 438 BLAKE2B 8eb12c259f94d8f867a31dbe05128adc1f9cc7ec8bcbdbe1738d2fad461f5d214e674f080f7f29b639a7a75f9c5b56c0f959f538697d647b94b97dc56b036e5f SHA512 4096464a46e07575b7cff448ff8bbc38fe972505f366b744419a06339cf32b93266b0fae5390879859041ce6710e4b675ed3ea7561d6a817623d7ece0e969661
+DIST llvm-project-303526ef3aa211c1930be2885deae15eeeda3b18.tar.gz 167503164 BLAKE2B 143c72c58517b3e40ee74c1a0df47bfd0d0f9e71926bc8c39a007e674a08df95d0ffe05f523f97e4409b248349e13719cabbc7ac6938feebe702959e84a07243 SHA512 9aa5c86de6c6be1d26c085eb29ea283429e41330e937e5fdbd545bb3f5b996ac82cd6268701fcbbd202e89ee35f2b67e595fc595bb7383778e9ad5fd52ca10a0
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-15.0.0.ebuild 1476 BLAKE2B 85e57756b48ec337b75a96f0659fca9d0ed854a418f60715be4e499ceb5c5b4a79881b749541db922a26a6f6f6f15eb5f8adf0c6e52f7c3f9388d574c4ff117f SHA512 31b5beafa9c9359701c8d37233ee4a5ac3c719ed406e3dd26ffb1c3cf57b9162c9fb4e64576b6f6111de7395b1d31aa69c21146fbf29c8d49826239aad824dc0
EBUILD libclc-16.0.0.9999.ebuild 1486 BLAKE2B 80b3e2ef44fcd760fd1da8a22f6df34fee0c84137d441cc4d0ab16fd1d1d35cd2b12405b61b633b2f8400fde718374cd9f649844b2d5ddbf6d09ddc314b0d1be SHA512 e43d3fa32b92859e3279211a6472a203f6eec746dd1080ed34f4cfac1d4d159535e21e5514c3f3b70ed1d6cf0ab90db7312bc976a68d65af007d22171821733e
EBUILD libclc-16.0.0_pre20220915.ebuild 1486 BLAKE2B 80b3e2ef44fcd760fd1da8a22f6df34fee0c84137d441cc4d0ab16fd1d1d35cd2b12405b61b633b2f8400fde718374cd9f649844b2d5ddbf6d09ddc314b0d1be SHA512 e43d3fa32b92859e3279211a6472a203f6eec746dd1080ed34f4cfac1d4d159535e21e5514c3f3b70ed1d6cf0ab90db7312bc976a68d65af007d22171821733e
+EBUILD libclc-16.0.0_pre20220918.ebuild 1486 BLAKE2B 80b3e2ef44fcd760fd1da8a22f6df34fee0c84137d441cc4d0ab16fd1d1d35cd2b12405b61b633b2f8400fde718374cd9f649844b2d5ddbf6d09ddc314b0d1be SHA512 e43d3fa32b92859e3279211a6472a203f6eec746dd1080ed34f4cfac1d4d159535e21e5514c3f3b70ed1d6cf0ab90db7312bc976a68d65af007d22171821733e
MISC metadata.xml 394 BLAKE2B 2c73a04cae5f0956ff187000d761ce8709fa39ab701f9adf2747f87da65fee48f996a56df540d5b95cfdecadef6383001b5e3dd57e1002f7f494d1ba3ecc987c SHA512 17bc874995ebeff9513d60dc850f3d1c5e7a3417f7170ec727edae1d09fb83242955ad24ff3fd24718a8eeadc80602cbe21618d081d50e6dc809a597dca72df1
diff --git a/dev-libs/libclc/libclc-16.0.0_pre20220918.ebuild b/dev-libs/libclc/libclc-16.0.0_pre20220918.ebuild
new file mode 100644
index 000000000000..535092cda010
--- /dev/null
+++ b/dev-libs/libclc/libclc-16.0.0_pre20220918.ebuild
@@ -0,0 +1,71 @@
+# 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=16
+BDEPEND="
+ ${PYTHON_DEPS}
+ || (
+ sys-devel/clang:16
+ 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
+}