Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/amdgpu-pro-opencl/
Date: Sat, 25 May 2019 12:03:52
Message-Id: 1558785797.f035c2c6be0ff6d5575ec32e828f86b8f2d03e3f.marecki@gentoo
1 commit: f035c2c6be0ff6d5575ec32e828f86b8f2d03e3f
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 25 11:44:08 2019 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sat May 25 12:03:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f035c2c6
7
8 dev-libs/amdgpu-pro-opencl: remove old
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 dev-libs/amdgpu-pro-opencl/Manifest | 2 -
14 .../amdgpu-pro-opencl-17.50.552542.ebuild | 81 ----------------------
15 .../amdgpu-pro-opencl-18.20.606296.ebuild | 65 -----------------
16 3 files changed, 148 deletions(-)
17
18 diff --git a/dev-libs/amdgpu-pro-opencl/Manifest b/dev-libs/amdgpu-pro-opencl/Manifest
19 index 83337405581..3fea723843e 100644
20 --- a/dev-libs/amdgpu-pro-opencl/Manifest
21 +++ b/dev-libs/amdgpu-pro-opencl/Manifest
22 @@ -1,3 +1 @@
23 -DIST amdgpu-pro-17.50-552542.tar.xz 549501204 BLAKE2B 37dcda126a3bda4e87b64ce260c7e4b65a1b864363c51f06e3152f152b83a60074331e6a0bf7b831c059a50192dea8add9b38ed16971c87293ce0e56ddf26bb2 SHA512 060e96609cf1a013fddf10db9bba4b512750e5188671a669e2582c28a03213b40d073031e35a617b982374d9d1cd4078f43b27053ee34be7c83873c0814ed196
24 -DIST amdgpu-pro-18.20-606296.tar.xz 230733856 BLAKE2B 21a498a894a9712d9f0277fae7f704413be0cd01cebbe427008fa3d181d03b58268e74bd3cdaf0dfb9aeca2871dad82b4aa640bbce690ca461e3f3e4acf01ffd SHA512 6575bf963e5714657914d9116de4d9b1835851fe0609b1f072b1fbdf73c068da77aba0eca1c9cce6e05e6cd8f2c1ed6b4bd6ab4ef334be5ff796ee6a3ad73831
25 DIST amdgpu-pro-18.20-684755-ubuntu-16.04.tar.xz 229474380 BLAKE2B f589aad71f093b74e37de40ac7c45ebbbeff93609b2fff1baaba711347a4641ef17acdcbe69d371372510a48bd48262cf6269c1f4d05e264023d52a425a423f2 SHA512 240e701acfde4ebe665cf69c8bd3710d036f450822aeb7ee2a21caab289af44167afda1d3b8d0dbe2c46c4e63d9b6fb5e96778311f342c26f334dc7beb4a2d5b
26
27 diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
28 deleted file mode 100644
29 index b9f388b4b18..00000000000
30 --- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-17.50.552542.ebuild
31 +++ /dev/null
32 @@ -1,81 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit unpacker
39 -
40 -SUPER_PN='amdgpu-pro'
41 -MY_PV=$(ver_rs 2 '-')
42 -
43 -DESCRIPTION="Proprietary OpenCL implementation for AMD GPUs"
44 -HOMEPAGE="https://support.amd.com/en-us/kb-articles/Pages/Radeon-Software-for-Linux-with-Vulkan-1.1-support.aspx"
45 -SRC_URI="${SUPER_PN}-${MY_PV}.tar.xz"
46 -
47 -LICENSE="AMD-GPU-PRO-EULA"
48 -SLOT="0"
49 -KEYWORDS="~amd64"
50 -
51 -RESTRICT="mirror fetch strip"
52 -
53 -COMMON="app-eselect/eselect-opencl
54 - dev-libs/ocl-icd"
55 -DEPEND="${COMMON}
56 - dev-util/patchelf"
57 -RDEPEND="${COMMON}"
58 -
59 -QA_PREBUILT="/opt/${SUPER_PN}/lib*/*"
60 -
61 -S="${WORKDIR}/${SUPER_PN}-${MY_PV}"
62 -
63 -pkg_nofetch() {
64 - local pkgver=$(ver_cut 1-2)
65 - einfo "Please download the Radeon Software for Linux Driver ${pkgver} for Ubuntu from"
66 - einfo " ${HOMEPAGE}"
67 - einfo "The archive should then be placed in your distfiles directory."
68 -}
69 -
70 -src_unpack() {
71 - default
72 -
73 - local ids_ver="1.0.0"
74 - local libdrm_ver="2.4.82"
75 - local patchlevel=$(ver_cut 3)
76 - cd "${S}" || die
77 - unpack_deb opencl-${SUPER_PN}-icd_${MY_PV}_amd64.deb
78 - unpack_deb libdrm-amdgpu-amdgpu1_${libdrm_ver}-${patchlevel}_amd64.deb
79 - unpack_deb ids-amdgpu_${ids_ver}-${patchlevel}_all.deb
80 -}
81 -
82 -src_prepare() {
83 - default
84 -
85 - cd "${S}/opt/${SUPER_PN}/lib/x86_64-linux-gnu" || die
86 - patchelf --set-rpath '$ORIGIN' libamdocl64.so || die "Failed to fix library rpath"
87 -}
88 -
89 -src_install() {
90 - into "/opt/amdgpu"
91 - dolib.so opt/${SUPER_PN}/lib/x86_64-linux-gnu/*
92 - dolib.so opt/amdgpu/lib/x86_64-linux-gnu/*
93 - insinto "/opt/amdgpu"
94 - doins -r opt/amdgpu/share
95 -
96 - insinto /etc/OpenCL/vendors/
97 - echo "/opt/amdgpu/$(get_libdir)/libamdocl64.so" > "${SUPER_PN}.icd" || die "Failed to generate ICD file"
98 - doins "${SUPER_PN}.icd"
99 -}
100 -
101 -pkg_postinst() {
102 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
103 - ewarn "Please note that using proprietary OpenCL libraries together with the"
104 - ewarn "Open Source amdgpu stack is not officially supported by AMD. Do not ask them"
105 - ewarn "for support in case of problems with this package."
106 - ewarn ""
107 - ewarn "Furthermore, if you have the whole AMDGPU-Pro stack installed this package"
108 - ewarn "will almost certainly conflict with it. This might change once AMDGPU-Pro"
109 - ewarn "has become officially supported by Gentoo."
110 - fi
111 -
112 - "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
113 -}
114
115 diff --git a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild b/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
116 deleted file mode 100644
117 index 03574c8b01e..00000000000
118 --- a/dev-libs/amdgpu-pro-opencl/amdgpu-pro-opencl-18.20.606296.ebuild
119 +++ /dev/null
120 @@ -1,65 +0,0 @@
121 -# Copyright 1999-2018 Gentoo Foundation
122 -# Distributed under the terms of the GNU General Public License v2
123 -
124 -EAPI=7
125 -
126 -inherit unpacker
127 -
128 -SUPER_PN='amdgpu-pro'
129 -MY_PV=$(ver_rs 2 '-')
130 -
131 -DESCRIPTION="Proprietary OpenCL implementation for AMD GPUs"
132 -HOMEPAGE="https://support.amd.com/en-us/kb-articles/Pages/Radeon-Software-for-Linux-Release-Notes.aspx"
133 -SRC_URI="${SUPER_PN}-${MY_PV}.tar.xz"
134 -
135 -LICENSE="AMD-GPU-PRO-EULA"
136 -SLOT="0"
137 -KEYWORDS="~amd64"
138 -
139 -RESTRICT="mirror fetch strip"
140 -
141 -COMMON="app-eselect/eselect-opencl
142 - dev-libs/ocl-icd"
143 -DEPEND="${COMMON}"
144 -RDEPEND="${COMMON}"
145 -
146 -QA_PREBUILT="/opt/${SUPER_PN}/lib*/*"
147 -
148 -S="${WORKDIR}/${SUPER_PN}-${MY_PV}"
149 -
150 -pkg_nofetch() {
151 - local pkgver=$(ver_cut 1-2)
152 - einfo "Please download the Radeon Software for Linux Driver ${pkgver} for Ubuntu 16 from"
153 - einfo " ${HOMEPAGE}"
154 - einfo "The archive should then be placed in your distfiles directory."
155 -}
156 -
157 -src_unpack() {
158 - default
159 -
160 - cd "${S}" || die
161 - unpack_deb opencl-orca-amdgpu-pro-icd_${MY_PV}_amd64.deb
162 -}
163 -
164 -src_install() {
165 - into "/opt/amdgpu"
166 - dolib.so opt/${SUPER_PN}/lib/x86_64-linux-gnu/*
167 -
168 - insinto /etc/OpenCL/vendors/
169 - echo "/opt/amdgpu/$(get_libdir)/libamdocl-orca64.so" > "${SUPER_PN}.icd" || die "Failed to generate ICD file"
170 - doins "${SUPER_PN}.icd"
171 -}
172 -
173 -pkg_postinst() {
174 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
175 - ewarn "Please note that using proprietary OpenCL libraries together with the"
176 - ewarn "Open Source amdgpu stack is not officially supported by AMD. Do not ask them"
177 - ewarn "for support in case of problems with this package."
178 - ewarn ""
179 - ewarn "Furthermore, if you have the whole AMDGPU-Pro stack installed this package"
180 - ewarn "will almost certainly conflict with it. This might change once AMDGPU-Pro"
181 - ewarn "has become officially supported by Gentoo."
182 - fi
183 -
184 - "${ROOT}"/usr/bin/eselect opencl set --use-old ocl-icd
185 -}