Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/intel-graphics-compiler/
Date: Sun, 05 Dec 2021 21:45:58
Message-Id: 1638740705.2b1ef6441297d96e23a55e80aad5ad35b7e25818.conikost@gentoo
1 commit: 2b1ef6441297d96e23a55e80aad5ad35b7e25818
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 5 19:50:43 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 5 21:45:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b1ef644
7
8 dev-util/intel-graphics-compiler: add 1.0.9441
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 dev-util/intel-graphics-compiler/Manifest | 1 +
13 .../intel-graphics-compiler-1.0.9441.ebuild | 79 ++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/dev-util/intel-graphics-compiler/Manifest b/dev-util/intel-graphics-compiler/Manifest
17 index d9360891e338..d2023f336804 100644
18 --- a/dev-util/intel-graphics-compiler/Manifest
19 +++ b/dev-util/intel-graphics-compiler/Manifest
20 @@ -1,2 +1,3 @@
21 DIST intel-graphics-compiler-1.0.8744.tar.gz 7586378 BLAKE2B 0f20f99a2659f733521af35c1dd63c2b1398bf4fc5745a217b96ad62cfa53f105d4c9a34eba09651d0f0679d6957820011446f5657170f5ad07d110372b8b1f3 SHA512 dbbe6c08f32b80be305add570187df883aacefbf90b252c70b5705ecc7732f25873732a85558f0aed2ee8db5bcd1a59aec4d7ba110774922dbb19d4d3522a539
22 DIST intel-graphics-compiler-1.0.9389.tar.gz 7883556 BLAKE2B 193475139c5c41157f33cabc5a7836c2dff17886cf7fae7226907426e1ba0e574fbbc2e0210199da5bfc1a41721e8f636cfc6db585ff9de1969da0158cbaaf79 SHA512 3569083ba0162c901d15494e079b253c45e4f13b93c7c8a329e9c4235f8fb13ee05980375aaedf1321564180cf8addc392e3c33d1623db656dbfcff0ddbaba94
23 +DIST intel-graphics-compiler-1.0.9441.tar.gz 7893557 BLAKE2B f050df0eddf63f880757fb04dded4ddc133c11fd7a7c8ceab152ac233ba9953b7efbe948433056654b2b43db2254a1edc15e5aada24fd3873face6f43d1307f9 SHA512 eaccec4213ea7af7deeaf8772784065839bb2f1dc98fb88b49acfcfc2b299f7e6ecb48c5df854448fa7db79f738654db722fcf684e9bbc94051d3bcfe449e20f
24
25 diff --git a/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.9441.ebuild b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.9441.ebuild
26 new file mode 100644
27 index 000000000000..0e7e9889129e
28 --- /dev/null
29 +++ b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.9441.ebuild
30 @@ -0,0 +1,79 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +CMAKE_BUILD_TYPE="Release"
37 +LLVM_MAX_SLOT="11"
38 +MY_PN="igc"
39 +MY_P="${MY_PN}-${PV}"
40 +PYTHON_COMPAT=( python3_{8..10} )
41 +
42 +inherit cmake flag-o-matic llvm python-any-r1
43 +
44 +DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware"
45 +HOMEPAGE="https://github.com/intel/intel-graphics-compiler"
46 +SRC_URI="https://github.com/intel/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}/${PN}-${MY_P}"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64"
52 +IUSE="debug"
53 +
54 +DEPEND="
55 + dev-libs/opencl-clang:${LLVM_MAX_SLOT}=
56 + sys-devel/llvm:${LLVM_MAX_SLOT}=
57 +"
58 +
59 +RDEPEND="${DEPEND}"
60 +
61 +BDEPEND="
62 + ${PYTHON_DEPS}
63 + >=sys-devel/lld-${LLVM_MAX_SLOT}
64 +"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/${PN}-1.0.9-no_Werror.patch"
68 + "${FILESDIR}/${PN}-1.0.8173-opencl-clang_version.patch"
69 + "${FILESDIR}/${PN}-1.0.8365-disable-git.patch"
70 + "${FILESDIR}/${PN}-1.0.8365-cmake-project.patch"
71 +)
72 +
73 +pkg_setup() {
74 + llvm_pkg_setup
75 + python-any-r1_pkg_setup
76 +}
77 +
78 +src_configure() {
79 + # Since late March 2020 cmake.eclass does not set -DNDEBUG any more,
80 + # and the way IGC uses this definition causes problems for some users.
81 + # See bug #718824 for more information.
82 + ! use debug && append-cppflags -DNDEBUG
83 +
84 + # Get LLVM version
85 + local llvm_version="$(best_version -d sys-devel/llvm:${LLVM_MAX_SLOT})"
86 +
87 + local mycmakeargs=(
88 + # Those options are ensuring, that we are using
89 + # the system LLVM with the correct slot.
90 + -DCCLANG_SONAME_VERSION="${LLVM_MAX_SLOT}"
91 + -DCMAKE_LIBRARY_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})/$(get_libdir)"
92 + -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64"
93 + -DIGC_OPTION__CLANG_MODE="Prebuilds"
94 + -DIGC_OPTION__LLD_MODE="Prebuilds"
95 + -DIGC_OPTION__LLDELF_H_DIR="${EPREFIX}/usr/include/lld/Common"
96 + -DIGC_OPTION__LLVM_MODE="Prebuilds"
97 + -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}"
98 +
99 + # VectorCompiler needs work, as at the moment upstream
100 + # only supports building vc-intrinsics in place.
101 + -DIGC_BUILD__VC_ENABLED="NO"
102 +
103 + # This will suspress some CMake warnings,
104 + # which cannot be fixed at the moment.
105 + -Wno-dev
106 + )
107 +
108 + cmake_src_configure
109 +}