From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 390A71581FB for ; Sat, 23 Nov 2024 23:36:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21A13E082F; Sat, 23 Nov 2024 23:36:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 073CCE082F for ; Sat, 23 Nov 2024 23:36:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D8C633BF41 for ; Sat, 23 Nov 2024 23:36:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD7C01E15 for ; Sat, 23 Nov 2024 23:36:10 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1732404777.93d92c0a935cb40ac755785188a4574f3902f656.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/opencl-clang/files/, dev-libs/opencl-clang/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/opencl-clang/Manifest dev-libs/opencl-clang/files/opencl-clang-16.0.1-clang_library_dir.patch dev-libs/opencl-clang/opencl-clang-15.0.1.ebuild dev-libs/opencl-clang/opencl-clang-16.0.1.ebuild dev-libs/opencl-clang/opencl-clang-17.0.1.ebuild dev-libs/opencl-clang/opencl-clang-18.1.1.ebuild X-VCS-Directories: dev-libs/opencl-clang/ dev-libs/opencl-clang/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 93d92c0a935cb40ac755785188a4574f3902f656 X-VCS-Branch: master Date: Sat, 23 Nov 2024 23:36:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a136fde7-264b-4564-92dc-0381012cb5bf X-Archives-Hash: 1d9f3449fabd82710104e1a8fd0c3d75 commit: 93d92c0a935cb40ac755785188a4574f3902f656 Author: Conrad Kostecki gentoo org> AuthorDate: Fri Nov 22 23:25:28 2024 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Nov 23 23:32:57 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93d92c0a dev-libs/opencl-clang: add 15.0.1, 16.0.1, 17.0.1, 18.1.1 Signed-off-by: Conrad Kostecki gentoo.org> dev-libs/opencl-clang/Manifest | 4 +++ .../opencl-clang-16.0.1-clang_library_dir.patch | 27 ++++++++++++++ dev-libs/opencl-clang/opencl-clang-15.0.1.ebuild | 39 ++++++++++++++++++++ dev-libs/opencl-clang/opencl-clang-16.0.1.ebuild | 41 +++++++++++++++++++++ dev-libs/opencl-clang/opencl-clang-17.0.1.ebuild | 42 ++++++++++++++++++++++ dev-libs/opencl-clang/opencl-clang-18.1.1.ebuild | 41 +++++++++++++++++++++ 6 files changed, 194 insertions(+) diff --git a/dev-libs/opencl-clang/Manifest b/dev-libs/opencl-clang/Manifest index 4cfc4c7b625d..359c7b71b0e3 100644 --- a/dev-libs/opencl-clang/Manifest +++ b/dev-libs/opencl-clang/Manifest @@ -1,5 +1,9 @@ DIST opencl-clang-15.0.0.tar.gz 26212 BLAKE2B 02d3a8eb3964b6882bd94b676b4459412c753ac38e1e3012662021e98a8219225eaf6af4f62f4e0e97de428f55b0b698374dc39babff09a0fcc73213d5daacfe SHA512 a2ffce43493793524e9512be2e7bd46c0183b86b35a6f79018d355d07a83303a944e6dacebfb768e88ce75a7020a44939be872a2d4e754544198a9829f4febd4 +DIST opencl-clang-15.0.1.tar.gz 33438 BLAKE2B cc923db7a7efb4038a784e124d5b00b3c8ce708c515242a3f479ff9aa3597e8d7caa81350804225612bccf7d4dbe582a3549432496ee42be26ecf8993f02d88e SHA512 194eec1e2582eb7fba2d2956c1fc80b6107ff68c55052a338bed0d61f214a177f05ff3230b21cc1f5a8d11fc4812ab6bd1aaddab8ae6725275493a83fb6cc2fd DIST opencl-clang-16.0.0.tar.gz 28413 BLAKE2B c99f043171186f5d9e44618d5d637d6a5c7997f22577491f544e78d93edd5afe74ba88eaaea92a931dd87af71fb630fdf03d27f1a9f55d7c3b8bdf53dee54b07 SHA512 bf723edab7dc7a028eb79d01fd2306690a2169472760bf2783d593ffec4eb788f28f184c66b204cc074cb95a4149fcc63a1dcbee5563c620a9dc2c76bb5a2d5a +DIST opencl-clang-16.0.1.tar.gz 29768 BLAKE2B c6430ffcd35195cead1125c4dced06a7e4a755183d90c4445549f5e733d69e57732050e323bd46d44392060591756443e572f2c222ef0d10e35f7a561d65e203 SHA512 b479070492e12bcbcef3dc2023a3deed353fb195b1c715b5b1d5766dd5d2cd37ab51ba6f8ea02f21fb4065a15973aeb695ef4b876d979eb66b217e711a8a2145 DIST opencl-clang-17.0.0.tar.gz 28436 BLAKE2B dd86255e757d290fb0417d966098ad00ceb0440c83fa79d8bdaadc7ee9964b13810d27f93740f4b00b9c0e16e5c9b29213800d98042b6c211b45a9cd1402f038 SHA512 920e19c9c36fef1752bce46a1a240bfc0cdd22c09e5840520508c67ecd965524f5c1ce04d8879af146670377f758d3f457a8263338b84b6833e8916f10566698 +DIST opencl-clang-17.0.1.tar.gz 28918 BLAKE2B 236fa26f089f2803242ad7744418095519536815c082f157fdd9edd0de32d0b95e2d843b46305eeef30dae5910345661021d2fcd50c8bc57cc0720ceb3e0a995 SHA512 12c10ffb0dcfc4179bf7d917b84761d8249c4bb5b9860c3f033cb76d33fda27f1840735ea211ef1bd2f14f64db12a6cd830b3c201b9532f263771cc5d5ea3330 DIST opencl-clang-18.1.0.tar.gz 29006 BLAKE2B 7e115220a34f77a0291e8bfdb20850baebb17b61a69f4be8f4b3befafab6537daed3d0433916a0b6fa1a2b991eff40e3258ed11685375755ee2d9db14383304e SHA512 ce14b706b3624302008595e3104f299ef58d93a56ef95628f0f56c2e53a3a7ca1b1e5a989c41a33839fa5d4e126cca8537f2155113fd9781a43ac07f28b52ca4 +DIST opencl-clang-18.1.1.tar.gz 29225 BLAKE2B c98758bfb059b70eddbc7dca9826e44dd2d7ad978330739862f03e46c0ebd466eb451cdb086a51e55151a9fefdefc3abdb3d3878677677cd9445262c55384ccc SHA512 bd03b6292e559867ee5b983273375d5124fcb9e7929a68a40c39cfe5cae708d97f72962a7463a14c892776d5ecb1fac4e15006baafdf1ad553e4ca64c36ef583 DIST opencl-clang-19.1.0.tar.gz 34156 BLAKE2B a52e2b7dfb101f459ab1b84e946a9a160200699ac0cb50fa87404fa5352a17a94b1f6bb40406214930f95612848e91b9e3c3772fe38453e04e17860d4ba51ed8 SHA512 d6e42869f8db2bda7182d6ae18405c4ec51d9ea3f60c79a39d9dec9d79414a388e96419aa3c2e657d8c9ffc42de4b4f00d006ff747095e546a821c1956b86058 diff --git a/dev-libs/opencl-clang/files/opencl-clang-16.0.1-clang_library_dir.patch b/dev-libs/opencl-clang/files/opencl-clang-16.0.1-clang_library_dir.patch new file mode 100644 index 000000000000..2e9678c13731 --- /dev/null +++ b/dev-libs/opencl-clang/files/opencl-clang-16.0.1-clang_library_dir.patch @@ -0,0 +1,27 @@ +--- a/cl_headers/CMakeLists.txt ++++ b/cl_headers/CMakeLists.txt +@@ -19,15 +19,15 @@ + endfunction(copy_file) + + if(USE_PREBUILT_LLVM) +- set(OPENCL_HEADERS_DIR +- "${LLVM_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/include/") +- if(NOT EXISTS ${OPENCL_HEADERS_DIR}) +- set(OPENCL_HEADERS_DIR +- "${LLVM_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}/include/") +- endif() +- if(NOT EXISTS ${OPENCL_HEADERS_DIR}) +- message(FATAL_ERROR "[OPENCL-CLANG] Unable to find clang include folder at ${OPENCL_HEADERS_DIR}") +- endif() ++ if(EXISTS "${CLANG_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/") ++ set(OPENCL_HEADERS_DIR ++ "${CLANG_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/include/") ++ elseif(EXISTS "${CLANG_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}/") ++ set(OPENCL_HEADERS_DIR ++ "${CLANG_LIBRARY_DIRS}/clang/${LLVM_VERSION_MAJOR}/include/") ++ else() ++ message(FATAL_ERROR "[OPENCL-CLANG] Couldn't find prebuilt LLVM include directory.") ++ endif() + else(USE_PREBUILT_LLVM) + set(OPENCL_HEADERS_DIR "${CLANG_SOURCE_DIR}/lib/Headers") + endif(USE_PREBUILT_LLVM) diff --git a/dev-libs/opencl-clang/opencl-clang-15.0.1.ebuild b/dev-libs/opencl-clang/opencl-clang-15.0.1.ebuild new file mode 100644 index 000000000000..b8ecb8f410af --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-15.0.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 15 ) + +inherit cmake llvm-r1 + +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 ' + sys-devel/clang:${LLVM_SLOT}=[static-analyzer] + sys-devel/llvm:${LLVM_SLOT}= + ') +" + +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-8.0.0-clang_library_dir.patch ) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)" + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib/clang + -Wno-dev + ) + + cmake_src_configure +} diff --git a/dev-libs/opencl-clang/opencl-clang-16.0.1.ebuild b/dev-libs/opencl-clang/opencl-clang-16.0.1.ebuild new file mode 100644 index 000000000000..e438c91f8c87 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-16.0.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 16 ) + +inherit cmake llvm-r1 + +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 ' + sys-devel/clang:${LLVM_SLOT}=[static-analyzer] + sys-devel/llvm:${LLVM_SLOT}= + ') +" + +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-16.0.1-clang_library_dir.patch +) + +src_configure() { + local mycmakeargs=( + -DCLANG_LIBRARY_DIRS="${EPREFIX}"/usr/lib + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)" + -Wno-dev + ) + + cmake_src_configure +} diff --git a/dev-libs/opencl-clang/opencl-clang-17.0.1.ebuild b/dev-libs/opencl-clang/opencl-clang-17.0.1.ebuild new file mode 100644 index 000000000000..65dcb960a1bd --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-17.0.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 17 ) + +inherit cmake llvm-r1 + +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 ' + sys-devel/clang:${LLVM_SLOT}=[static-analyzer] + sys-devel/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 +} diff --git a/dev-libs/opencl-clang/opencl-clang-18.1.1.ebuild b/dev-libs/opencl-clang/opencl-clang-18.1.1.ebuild new file mode 100644 index 000000000000..e71b7f5f6cb2 --- /dev/null +++ b/dev-libs/opencl-clang/opencl-clang-18.1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LLVM_COMPAT=( 18 ) + +inherit cmake llvm-r1 + +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 ' + sys-devel/clang:${LLVM_SLOT}=[static-analyzer] + sys-devel/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}" + -DUSE_PREBUILT_LLVM="ON" + -Wno-dev + ) + + cmake_src_configure +}