Diff rocm-opencl-runtime-5.3.3-r1 with a rocm-opencl-runtime-5.4.3-r1

/usr/portage/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild 2023-10-09 14:52:29.760368357 +0300
7 7

  
8 8
DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
9 9
HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime"
10
SRC_URI="https://github.com/ROCm-Developer-Tools/ROCclr/archive/rocm-${PV}.tar.gz -> rocclr-${PV}.tar.gz
10

  
11
if [[ ${PV} == *9999 ]] ; then
12
	EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime"
13
	EGIT_CLR_REPO_URI="https://github.com/ROCm-Developer-Tools/ROCclr"
14
	inherit git-r3
15
	S="${WORKDIR}/${P}"
16
else
17
	KEYWORDS="~amd64"
18
	SRC_URI="https://github.com/ROCm-Developer-Tools/ROCclr/archive/rocm-${PV}.tar.gz -> rocclr-${PV}.tar.gz
11 19
	https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/archive/rocm-${PV}.tar.gz -> rocm-opencl-runtime-${PV}.tar.gz"
20
	S="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}"
21
fi
12 22

  
13 23
LICENSE="Apache-2.0 MIT"
14 24
SLOT="0/$(ver_cut 1-2)"
15 25
IUSE="debug test"
16 26
RESTRICT="!test? ( test )"
17
KEYWORDS="~amd64"
18 27

  
19
RDEPEND=">=dev-libs/rocr-runtime-${PV}
20
	>=dev-libs/rocm-comgr-${PV}
21
	>=dev-libs/rocm-device-libs-${PV}
28
RDEPEND=">=dev-libs/rocr-runtime-5.3
29
	>=dev-libs/rocm-comgr-5.3
30
	>=dev-libs/rocm-device-libs-5.3
22 31
	>=virtual/opencl-3
23 32
	media-libs/mesa"
24 33
DEPEND="${RDEPEND}
25 34
	dev-util/opencl-headers"
26
BDEPEND=">=dev-util/rocm-cmake-${PV}
27
	media-libs/glew
28
	test? ( >=x11-apps/mesa-progs-8.5.0[X] )
35
BDEPEND=">=dev-util/rocm-cmake-5.3
36
	test? (
37
		>=x11-apps/mesa-progs-8.5.0[X]
38
		media-libs/glew
39
	)
29 40
	"
30 41

  
31
S="${WORKDIR}/ROCm-OpenCL-Runtime-rocm-${PV}"
32
S1="${WORKDIR}/ROCclr-rocm-${PV}"
33

  
42
CLR_S="${WORKDIR}/ROCclr-rocm-${PV}"
34 43
PATCHES=( "${FILESDIR}/${PN}-5.3.3-gcc13.patch" )
35 44

  
45
src_unpack () {
46
if [[ ${PV} == "9999" ]]; then
47
		git-r3_fetch
48
		git-r3_checkout
49
		git-r3_fetch "${EGIT_CLR_REPO_URI}"
50
		git-r3_checkout "${EGIT_CLR_REPO_URI}" "${CLR_S}"
51
	else
52
		default
53
	fi
54
}
36 55
src_prepare() {
37 56
	cmake_src_prepare
38 57

  
39
	pushd ${S1} || die
58
	pushd ${CLR_S} || die
40 59
	# Bug #753377
41 60
	# patch re-enables accidentally disabled gfx800 family
42 61
	eapply "${FILESDIR}/${PN}-5.0.2-enable-gfx800.patch"
43
	eapply "${FILESDIR}/rocclr-${PV}-fix-include.patch"
44 62
	eapply "${FILESDIR}/rocclr-5.3.3-gcc13.patch"
45 63
	popd || die
46 64
}
......
51 69

  
52 70
	local mycmakeargs=(
53 71
		-Wno-dev
54
		-DROCCLR_PATH="${S1}"
72
		-DROCCLR_PATH="${CLR_S}"
55 73
		-DAMD_OPENCL_PATH="${S}"
56 74
		-DROCM_PATH="${EPREFIX}/usr"
57 75
		-DBUILD_TESTS=$(usex test ON OFF)
......
103 121
			ewarn "${instruction2}"
104 122
			die "This display does not have AMD OpenGL vendor!"
105 123
		fi
106
		./ocltst -m liboclgl.so -A ogl.exclude
124
		./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
107 125
		eend $? || die "oclgl test failed"
108 126
	else
109 127
		ewarn "${instruction1}"
110 128
		ewarn "${instruction2}"
111 129
		die "\${OCLGL_DISPLAY} not set."
112 130
	fi
113
	edob ./ocltst -m liboclruntime.so -A oclruntime.exclude
114
	edob ./ocltst -m liboclperf.so -A oclperf.exclude
131
	edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
132
	edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
115 133
}
Thank you!