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-libs/intel-compute-runtime/
Date: Sat, 06 Aug 2022 20:24:29
Message-Id: 1659817424.628f8a1a380e5b7e655b26db955651ec5de97596.conikost@gentoo
1 commit: 628f8a1a380e5b7e655b26db955651ec5de97596
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 6 20:23:44 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 6 20:23:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=628f8a1a
7
8 dev-libs/intel-compute-runtime: add 22.31.23852
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 dev-libs/intel-compute-runtime/Manifest | 1 +
13 .../intel-compute-runtime-22.31.23852.ebuild | 79 ++++++++++++++++++++++
14 2 files changed, 80 insertions(+)
15
16 diff --git a/dev-libs/intel-compute-runtime/Manifest b/dev-libs/intel-compute-runtime/Manifest
17 index 1309116cb493..0dffdb9c4d46 100644
18 --- a/dev-libs/intel-compute-runtime/Manifest
19 +++ b/dev-libs/intel-compute-runtime/Manifest
20 @@ -3,3 +3,4 @@ DIST intel-compute-runtime-22.27.23681.tar.gz 5593740 BLAKE2B 5d627623e7b0ec89aa
21 DIST intel-compute-runtime-22.28.23726.tar.gz 5609087 BLAKE2B ec5b70090e58b08d63f006034d4326426f4caf42b681e32027da79876d019875540ed52cf048fe9919d54bcbac5911bac6ea8a228b8020b9e56d5a61bd1c3c2b SHA512 5e59c678a146eb995e6bcfcedb96c812e40d4561cd4725740742691fc79fd597f4c31659b08763376263ff6100a0f7960f4d5f05a35ff97bed2dc870df189c48
22 DIST intel-compute-runtime-22.29.23750.tar.gz 5613298 BLAKE2B 7c662c85732d2053d64a68651484030a16aeae4bac3943c2891771c865c623912d4466dea8258caf7a150d34cc06e2f7e451fde831cc6023ebee4036d55207f0 SHA512 8f9b7f87a93585a0a71d2e5339ec64d01f150722051ca844c47db1803491b6c4d8a371e3332ce6c0e85c6e129711cdba210000176904e922577c3e6c42b791a2
23 DIST intel-compute-runtime-22.30.23789.tar.gz 5625283 BLAKE2B 0a59926453ae8a58afbd49a40d8b94ac9171d23a141f967c6d908b26ab66decbd082d42fe6e75bf9fd2b4327cbe5b4c71f6ef390a8a62435c06b749078d67cd4 SHA512 8f2caee7376a9a489efc7ee5b907786d1fc04ed3143dfc66e28069f4d19c13393c64cf6ea0159ce269ee2198dadddd7ef967a11efac90e616ce1f1c996b07153
24 +DIST intel-compute-runtime-22.31.23852.tar.gz 5644386 BLAKE2B 90eb629187d0aba7a713c600234f18a5472d7ad4e9a7c1130e61011970a9247165f17dab936abb875ee4dd9b4ba167135d158a1b19fce9f20d2bd1c23c9d065b SHA512 66fae1c0e3173f45f0565906d455d4511d40bc392a966625f60315e6a72daa30c741dddc799c50b8e020092577af6aa03810cd5a5e3e729ab19815cdb5e6a27a
25
26 diff --git a/dev-libs/intel-compute-runtime/intel-compute-runtime-22.31.23852.ebuild b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.31.23852.ebuild
27 new file mode 100644
28 index 000000000000..af9f16456a1e
29 --- /dev/null
30 +++ b/dev-libs/intel-compute-runtime/intel-compute-runtime-22.31.23852.ebuild
31 @@ -0,0 +1,79 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +CMAKE_BUILD_TYPE="Release"
38 +MY_PN="${PN/intel-/}"
39 +MY_P="${MY_PN}-${PV}"
40 +
41 +inherit cmake flag-o-matic
42 +
43 +DESCRIPTION="Intel Graphics Compute Runtime for oneAPI Level Zero and OpenCL Driver"
44 +HOMEPAGE="https://github.com/intel/compute-runtime"
45 +SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +S="${WORKDIR}/${MY_P}"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64"
51 +IUSE="+l0 +vaapi"
52 +
53 +RDEPEND=">=media-libs/gmmlib-22.1.7:="
54 +
55 +DEPEND="
56 + ${DEPEND}
57 + >=dev-libs/intel-metrics-library-0_pre20220526:=
58 + dev-libs/libnl:3
59 + dev-libs/libxml2:2
60 + >=dev-util/intel-graphics-compiler-1.0.11485
61 + >=dev-util/intel-graphics-system-controller-0.8.0:=
62 + media-libs/mesa
63 + >=virtual/opencl-3
64 + l0? ( >=dev-libs/level-zero-1.8.5:= )
65 + vaapi? (
66 + x11-libs/libdrm[video_cards_intel]
67 + x11-libs/libva
68 + )
69 +"
70 +
71 +BDEPEND="virtual/pkgconfig"
72 +
73 +DOCS=( "README.md" "FAQ.md" )
74 +
75 +PATCHES=( "${FILESDIR}/${PN}-22.24.23453-remove-fortify-sources.patch" )
76 +
77 +src_prepare() {
78 + # Remove '-Werror' from default
79 + sed -e '/Werror/d' -i CMakeLists.txt || die
80 +
81 + cmake_src_prepare
82 +}
83 +
84 +src_configure() {
85 + # See https://github.com/intel/compute-runtime/issues/531
86 + filter-flags -flto=* -flto
87 +
88 + local mycmakeargs=(
89 + -DCCACHE_ALLOWED="OFF"
90 + -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
91 + -DCMAKE_INSTALL_LIBDIR="$(get_libdir)"
92 + -DBUILD_WITH_L0="$(usex l0)"
93 + -DDISABLE_LIBVA="$(usex !vaapi)"
94 + -DNEO__METRICS_LIBRARY_INCLUDE_DIR="${ESYSROOT}/usr/include"
95 + -DKHRONOS_GL_HEADERS_DIR="${ESYSROOT}/usr/include"
96 + -DOCL_ICD_VENDORDIR="${EPREFIX}/etc/OpenCL/vendors"
97 + -DSUPPORT_DG1="ON"
98 + -Wno-dev
99 +
100 + # See https://github.com/intel/intel-graphics-compiler/issues/204
101 + # -DNEO_DISABLE_BUILTINS_COMPILATION="ON"
102 +
103 + # If enabled, tests are automatically run during
104 + # the compile phase and we cannot run them because
105 + # they require permissions to access the hardware.
106 + -DSKIP_UNIT_TESTS="1"
107 + )
108 +
109 + cmake_src_configure
110 +}