1 |
commit: c5ff2b759f9d072bb1b413c6d40cc063cd6ffd86 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 24 16:16:30 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 16:25:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ff2b75 |
7 |
|
8 |
media-libs/mesa-amber: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
media-libs/mesa-amber/Manifest | 1 - |
13 |
media-libs/mesa-amber/mesa-amber-21.3.8.ebuild | 206 ------------------------- |
14 |
2 files changed, 207 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/mesa-amber/Manifest b/media-libs/mesa-amber/Manifest |
17 |
index db13cde7caff..3bedcf5babcb 100644 |
18 |
--- a/media-libs/mesa-amber/Manifest |
19 |
+++ b/media-libs/mesa-amber/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST mesa-21.3.8.tar.xz 16593540 BLAKE2B 89a471af3354ae0cf0597c1b6bcd2aff8074d58c16504154291f86cd9a9701f98883cf1077f60a8f17d24be800691a5bfb7ef4ddb10dfa355181bf87805b660c SHA512 0462c44fa8e358dafd03088411452bc172a365902795b3198df1e6cfbf1d87675ef5b72b572de7f15e5ee87b30ce5b2f217c81ea72b376962f6428c6ff83f2e9 |
22 |
DIST mesa-21.3.9.tar.xz 16607716 BLAKE2B 79669f9492c505b1729c526adf5a8261737b6088bdf01db654a0dca8ba22600ec985b574edfeee3a28c76e6e0f815782362973876e1d75b58f4417f45df70add SHA512 4cec6f4f50f444fcd327f7c40f8899c2f265e348e121455262b540b1f890a1468bbea59965af0876c548fa97aa0a05a1b23fa6ca7d308bd60328cfdeab757684 |
23 |
|
24 |
diff --git a/media-libs/mesa-amber/mesa-amber-21.3.8.ebuild b/media-libs/mesa-amber/mesa-amber-21.3.8.ebuild |
25 |
deleted file mode 100644 |
26 |
index 260958124591..000000000000 |
27 |
--- a/media-libs/mesa-amber/mesa-amber-21.3.8.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,206 +0,0 @@ |
30 |
-# Copyright 1999-2022 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=7 |
34 |
- |
35 |
-PYTHON_COMPAT=( python3_{8..10} ) |
36 |
- |
37 |
-inherit meson-multilib python-any-r1 linux-info |
38 |
- |
39 |
-MY_P="${P/-amber}" |
40 |
-MY_P="${MY_P/_/-}" |
41 |
- |
42 |
-DESCRIPTION="OpenGL-like graphic library for Linux" |
43 |
-HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/" |
44 |
- |
45 |
-if [[ ${PV} == 9999 ]]; then |
46 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git" |
47 |
- inherit git-r3 |
48 |
-else |
49 |
- SRC_URI="https://archive.mesa3d.org/${MY_P}.tar.xz" |
50 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris" |
51 |
-fi |
52 |
- |
53 |
-LICENSE="MIT" |
54 |
-SLOT="amber" |
55 |
-RESTRICT="!test? ( test )" |
56 |
- |
57 |
-RADEON_CARDS="r100 r200 radeon" |
58 |
-VIDEO_CARDS="${RADEON_CARDS} i915 i965 intel nouveau" |
59 |
-for card in ${VIDEO_CARDS}; do |
60 |
- IUSE_VIDEO_CARDS+=" video_cards_${card}" |
61 |
-done |
62 |
- |
63 |
-IUSE="${IUSE_VIDEO_CARDS} |
64 |
- cpu_flags_x86_sse2 debug gles1 +gles2 selinux test valgrind wayland +X |
65 |
- +zstd" |
66 |
- |
67 |
-LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.107" |
68 |
-RDEPEND=" |
69 |
- !<=media-libs/mesa-21.3.8 |
70 |
- !media-libs/mesa:amber |
71 |
- media-libs/mesa[${MULTILIB_USEDEP}] |
72 |
- |
73 |
- >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}] |
74 |
- >=media-libs/libglvnd-1.3.2[X?,${MULTILIB_USEDEP}] |
75 |
- >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}] |
76 |
- selinux? ( sys-libs/libselinux[${MULTILIB_USEDEP}] ) |
77 |
- wayland? ( |
78 |
- >=dev-libs/wayland-1.18.0:=[${MULTILIB_USEDEP}] |
79 |
- >=dev-libs/wayland-protocols-1.8 |
80 |
- ) |
81 |
- ${LIBDRM_DEPSTRING}[video_cards_nouveau?,${MULTILIB_USEDEP}] |
82 |
- video_cards_intel? ( |
83 |
- !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
84 |
- ) |
85 |
- video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
86 |
- X? ( |
87 |
- >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
88 |
- >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}] |
89 |
- >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}] |
90 |
- >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}] |
91 |
- >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}] |
92 |
- x11-libs/libXfixes:=[${MULTILIB_USEDEP}] |
93 |
- ) |
94 |
- zstd? ( app-arch/zstd:=[${MULTILIB_USEDEP}] ) |
95 |
-" |
96 |
-for card in ${RADEON_CARDS}; do |
97 |
- RDEPEND="${RDEPEND} |
98 |
- video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] ) |
99 |
- " |
100 |
-done |
101 |
- |
102 |
-DEPEND="${RDEPEND} |
103 |
- valgrind? ( dev-util/valgrind ) |
104 |
- X? ( |
105 |
- x11-libs/libXrandr[${MULTILIB_USEDEP}] |
106 |
- x11-base/xorg-proto |
107 |
- ) |
108 |
-" |
109 |
-BDEPEND=" |
110 |
- ${PYTHON_DEPS} |
111 |
- sys-devel/bison |
112 |
- sys-devel/flex |
113 |
- virtual/pkgconfig |
114 |
- $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") |
115 |
- wayland? ( dev-util/wayland-scanner ) |
116 |
-" |
117 |
- |
118 |
-S="${WORKDIR}/${MY_P}" |
119 |
-EGIT_CHECKOUT_DIR=${S} |
120 |
- |
121 |
-QA_WX_LOAD=" |
122 |
-x86? ( |
123 |
- usr/lib/libGLX_amber.so.0.0.0 |
124 |
-)" |
125 |
- |
126 |
-python_check_deps() { |
127 |
- has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" |
128 |
-} |
129 |
- |
130 |
-pkg_setup() { |
131 |
- if use video_cards_i965; then |
132 |
- if kernel_is -ge 5 11 3; then |
133 |
- CONFIG_CHECK="~KCMP" |
134 |
- elif kernel_is -ge 5 11; then |
135 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
136 |
- elif kernel_is -ge 5 10 20; then |
137 |
- CONFIG_CHECK="~KCMP" |
138 |
- else |
139 |
- CONFIG_CHECK="~CHECKPOINT_RESTORE" |
140 |
- fi |
141 |
- linux-info_pkg_setup |
142 |
- fi |
143 |
- |
144 |
- python-any-r1_pkg_setup |
145 |
-} |
146 |
- |
147 |
-multilib_src_configure() { |
148 |
- local emesonargs=() |
149 |
- |
150 |
- # Intel code |
151 |
- dri_driver_enable video_cards_i915 i915 |
152 |
- dri_driver_enable video_cards_i965 i965 |
153 |
- if ! use video_cards_i915 && \ |
154 |
- ! use video_cards_i965; then |
155 |
- dri_driver_enable video_cards_intel i915 i965 |
156 |
- fi |
157 |
- |
158 |
- # Nouveau code |
159 |
- dri_driver_enable video_cards_nouveau nouveau |
160 |
- |
161 |
- # ATI code |
162 |
- dri_driver_enable video_cards_r100 r100 |
163 |
- dri_driver_enable video_cards_r200 r200 |
164 |
- if ! use video_cards_r100 && \ |
165 |
- ! use video_cards_r200; then |
166 |
- dri_driver_enable video_cards_radeon r100 r200 |
167 |
- fi |
168 |
- |
169 |
- local platforms |
170 |
- use X && platforms+="x11" |
171 |
- use wayland && platforms+=",wayland" |
172 |
- emesonargs+=(-Dplatforms=${platforms#,}) |
173 |
- |
174 |
- driver_list() { |
175 |
- local drivers="$(sort -u <<< "${1// /$'\n'}")" |
176 |
- echo "${drivers//$'\n'/,}" |
177 |
- } |
178 |
- |
179 |
- emesonargs+=( |
180 |
- -Damber=true |
181 |
- $(meson_use test build-tests) |
182 |
- -Dglx=$(usex X dri disabled) |
183 |
- -Dshared-glapi=enabled |
184 |
- -Ddri3=enabled |
185 |
- -Degl=enabled |
186 |
- -Dgbm=enabled |
187 |
- $(meson_feature gles1) |
188 |
- $(meson_feature gles2) |
189 |
- -Dglvnd=true |
190 |
- -Dosmesa=false |
191 |
- -Dllvm=disabled |
192 |
- $(meson_use selinux) |
193 |
- $(meson_feature zstd) |
194 |
- $(meson_use cpu_flags_x86_sse2 sse2) |
195 |
- -Dvalgrind=$(usex valgrind auto disabled) |
196 |
- -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}") |
197 |
- -Dgallium-drivers='' |
198 |
- -Dvulkan-drivers='' |
199 |
- --buildtype $(usex debug debug plain) |
200 |
- -Db_ndebug=$(usex debug false true) |
201 |
- ) |
202 |
- meson_src_configure |
203 |
-} |
204 |
- |
205 |
-multilib_src_test() { |
206 |
- meson_src_test -t 100 |
207 |
-} |
208 |
- |
209 |
-multilib_src_install_all() { |
210 |
- # These are provided by media-libs/mesa:0 |
211 |
- local files=( |
212 |
- "${ED}"/usr/lib*/libgbm.so* |
213 |
- "${ED}"/usr/lib*/libglapi.so* |
214 |
- "${ED}"/usr/include |
215 |
- "${ED}"/usr/lib*/pkgconfig |
216 |
- "${ED}"/usr/share/drirc.d/00-mesa-defaults.conf |
217 |
- ) |
218 |
- rm -r "${files[@]}" || die |
219 |
- |
220 |
- # Move i915_dri.so -> i915c_dri.so to not conflict with media-libs/mesa:0. |
221 |
- for dridir in "${ED}"/usr/lib*/dri; do |
222 |
- if [[ -e ${dridir}/i915_dri.so ]]; then |
223 |
- mv ${dridir}/i915{,c}_dri.so || die |
224 |
- fi |
225 |
- done |
226 |
-} |
227 |
- |
228 |
-# $1 - VIDEO_CARDS flag (check skipped for "--") |
229 |
-# other args - names of DRI drivers to enable |
230 |
-dri_driver_enable() { |
231 |
- if [[ $1 == -- ]] || use $1; then |
232 |
- shift |
233 |
- DRI_DRIVERS+=("$@") |
234 |
- fi |
235 |
-} |