Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/raspberrypi-userland/
Date: Tue, 07 Mar 2017 07:28:57
Message-Id: 1488871714.d1ff3c306a37380e39b459652e57ff1846d4ab23.xmw@gentoo
1 commit: d1ff3c306a37380e39b459652e57ff1846d4ab23
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 7 07:28:34 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 7 07:28:34 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1ff3c30
7
8 media-libs/raspberrypi-userland: Remove old versions.
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 media-libs/raspberrypi-userland/Manifest | 7 --
13 .../raspberrypi-userland-0_pre20130705-r1.ebuild | 60 ------------
14 .../raspberrypi-userland-0_pre20140117.ebuild | 60 ------------
15 .../raspberrypi-userland-0_pre20140830.ebuild | 60 ------------
16 .../raspberrypi-userland-0_pre20150921.ebuild | 60 ------------
17 .../raspberrypi-userland-0_pre20160305-r1.ebuild | 107 ---------------------
18 .../raspberrypi-userland-0_pre20160330.ebuild | 107 ---------------------
19 .../raspberrypi-userland-0_pre20160408.ebuild | 107 ---------------------
20 8 files changed, 568 deletions(-)
21
22 diff --git a/media-libs/raspberrypi-userland/Manifest b/media-libs/raspberrypi-userland/Manifest
23 index 9aeb8badae3..01faf4aa39f 100644
24 --- a/media-libs/raspberrypi-userland/Manifest
25 +++ b/media-libs/raspberrypi-userland/Manifest
26 @@ -1,8 +1 @@
27 -DIST raspberrypi-userland-0_pre20130705.tar.xz 31966608 SHA256 6307cc9d6103cd8afddf1b94ab44c4071f80884ec85d8e5aadd0f2f3d631c713 SHA512 d83de618e8fa6d49bd0b5b265706c7b290fa5800ac9a674dbf3d34222ab25e92c99877d61c4f706292666bf130ee0118ad54f35c8379a281f8ee90ce76a89651 WHIRLPOOL 8077d99e7a970f37bb4961ac928f9860b47be8aee83bff00eb4c44ee511aa322c532c9ff52528aece0897247ed8472aa70c147794aafe546ece8f8a08c5eb208
28 -DIST raspberrypi-userland-0_pre20140117.tar.xz 31998784 SHA256 2999d711465ddbc6b70d429a0253b8a9c1f838351a96f2b25cc86109a879005f SHA512 5c3dfebdcb36a2a17da94cafcc92067b24b454d5694b0bd216dd0d6752c4f505840880094c22125ab5da60f7b53b9114e8d04359a223e9e00be967cb8585e42e WHIRLPOOL 5179758c2be4b45f640eb8759554e19ea4fc8c83e63b0d4396ae84e67ae82e97824bf12f0766df5a70e2ca5b80e90be80e5c9b2eaa968752829765463d3f6d0d
29 -DIST raspberrypi-userland-0_pre20140830.tar.xz 32066536 SHA256 f9a06d2ca7d41cdc700b83eeb7c3e06d3ea6bd3fd187880a563144a6bf6ee901 SHA512 775005177e760fff611d7ce7e4beb466ea111dfc4652b97593d1061b97b1ded32979f8666a0aada6338791abab988883bbfd902f267eba5734e8aa932ebcf487 WHIRLPOOL 3066272a88b868ef20f27614f6f680aa6eb8a43cd2e281a7a930b99be341b037fa843a1c36bfdc6be619544e5b4b8751e5ab58c853b1baff44894b39284bfa55
30 -DIST raspberrypi-userland-0_pre20150921.tar.xz 32395092 SHA256 771bf96111d40c3b86cf2590f22d02306e5f56668f6ee11ace389c719bfccb2b SHA512 0aad096f5c6d54ef1d494708e80f8fb921e30e0d93ced79b4e939afffa8e824e35347595d6f925d1d7ee86917e72fa0b160ad56c8a4df7711d5e87b5cc399be1 WHIRLPOOL 2204dd8f8acf79c3d8baab770e133d18596f00fbf714e9ab46bf4a5ae1a1c0cf9edcbf763bf7fc0403126bb0ca9de7f422a3427dd429d849df6aee1be08b4b6a
31 -DIST raspberrypi-userland-0_pre20160305.tar.gz 32888927 SHA256 01cc6dfb5ee50733d58e6cb1ba0f79cb90ab7ef46718c302cbac0fd9e3a09b6a SHA512 8621f48d699b2736d4a22f03e5cdde6be564b8d2100f46ab85d3f6e0fc958634436fafc8d218f55a114a37acaf6dbe21b5cf2bf57c258a3067af2720d63d0c27 WHIRLPOOL 109aabddfc483900741758a737f93c1f3bc4074de2e2f0d25d28a620f8381adb44d21b5fa8eb3f59a69eb3a9903b95b32e3a5d9d9353560d42e37d19aaa9b085
32 -DIST raspberrypi-userland-0_pre20160330.tar.gz 32928211 SHA256 a1f3772afee594c7f08e5362cff96d783d2a0a4970d0172c611a638fe93cfeea SHA512 5b56885a1d832fff7d806718341d0050df66641d698ead4997e684c2aedb8faebd5cd9ce84a69537cc0ed362ca1b6c487ff2fd5575f5a3fbb1d4a7fe8602fb6e WHIRLPOOL ec3d224715e351150f72d021fd5a623287a64bc39379137cde01f8c460e083069f9cc18cf4899fff43d69a711b4c5bd9c69f51113b3b0a6b5092bb62441d9355
33 -DIST raspberrypi-userland-0_pre20160408.tar.gz 32930276 SHA256 006500715b4131db263b81059685877eeb46b2591c13f772fa9f79b2368f195a SHA512 f42c561d1b9ebe9fe6335166a35e47d5dc932c1fefe567458f6a4ae9c57849ccf33e8ede8144989e3a1fa4c9b2a6c892cf61f77d69350d590443d0360388814b WHIRLPOOL 786ca22ad4e7a9740b853d7adbf362b618add9f12e987192f40bf012fdb313dcf9a38b27c963e87566cf91c98c4f02d59d8ef2eee602ea13369036c4e3a7891c
34 DIST raspberrypi-userland-0_pre20160424.tar.gz 32933952 SHA256 e040448cec34b9cea0072977397391af3131b2b43b057beba2ecf8b098d70b77 SHA512 04a71837b1247ecbbe479b3b09b5705638a9e576dc99a1ab2200727509195a4a2f2a9b184e3c23ce3933a3236b260afc8bd2b75bc218567b386445bdd8208a5b WHIRLPOOL 95d6472d2f64e047d296cbebc122fe62eb392f861ad069e5a092a2d5710e7f85824e7a69e68d5af68d91b567c973b7e8b95135bf8b5a0bcfa58b683b35a8ed44
35
36 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20130705-r1.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20130705-r1.ebuild
37 deleted file mode 100644
38 index 3d43e4934e9..00000000000
39 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20130705-r1.ebuild
40 +++ /dev/null
41 @@ -1,60 +0,0 @@
42 -# Copyright 1999-2014 Gentoo Foundation
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI=5
46 -
47 -inherit cmake-utils
48 -
49 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
50 -HOMEPAGE="https://github.com/raspberrypi/userland"
51 -
52 -if [[ ${PV} == 9999* ]]; then
53 - inherit git-2
54 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
55 - SRC_URI=""
56 - KEYWORDS=""
57 -else
58 - SRC_URI="mirror://gentoo/${P}.tar.xz"
59 - KEYWORDS="~arm"
60 -fi
61 -
62 -LICENSE="BSD"
63 -SLOT="0"
64 -
65 -# TODO:
66 -# * port vcfiled init script
67 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
68 -# anything else depends on it being there
69 -# * live ebuild
70 -
71 -src_unpack() {
72 - if [[ ${PV} == 9999* ]]; then
73 - git-2_src_unpack
74 - else
75 - default
76 - mv userland-*/ ${P}/ || die
77 - fi
78 -}
79 -
80 -src_prepare() {
81 - # init script for Debian, not useful on Gentoo
82 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
83 -}
84 -
85 -src_configure() {
86 - # toolchain file not needed, but build fails if it is not specified
87 - local mycmakeargs="-DCMAKE_TOOLCHAIN_FILE=/dev/null"
88 - cmake-utils_src_configure
89 -}
90 -
91 -src_install() {
92 - cmake-utils_src_install
93 - doenvd "${FILESDIR}"/04${PN}
94 -
95 - # enable dynamic switching of the GL implementation
96 - dodir /usr/lib/opengl
97 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
98 -
99 - # tell eselect opengl that we do not have libGL
100 - touch "${ED}"/opt/vc/.gles-only
101 -}
102
103 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20140117.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20140117.ebuild
104 deleted file mode 100644
105 index 3d43e4934e9..00000000000
106 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20140117.ebuild
107 +++ /dev/null
108 @@ -1,60 +0,0 @@
109 -# Copyright 1999-2014 Gentoo Foundation
110 -# Distributed under the terms of the GNU General Public License v2
111 -
112 -EAPI=5
113 -
114 -inherit cmake-utils
115 -
116 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
117 -HOMEPAGE="https://github.com/raspberrypi/userland"
118 -
119 -if [[ ${PV} == 9999* ]]; then
120 - inherit git-2
121 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
122 - SRC_URI=""
123 - KEYWORDS=""
124 -else
125 - SRC_URI="mirror://gentoo/${P}.tar.xz"
126 - KEYWORDS="~arm"
127 -fi
128 -
129 -LICENSE="BSD"
130 -SLOT="0"
131 -
132 -# TODO:
133 -# * port vcfiled init script
134 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
135 -# anything else depends on it being there
136 -# * live ebuild
137 -
138 -src_unpack() {
139 - if [[ ${PV} == 9999* ]]; then
140 - git-2_src_unpack
141 - else
142 - default
143 - mv userland-*/ ${P}/ || die
144 - fi
145 -}
146 -
147 -src_prepare() {
148 - # init script for Debian, not useful on Gentoo
149 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
150 -}
151 -
152 -src_configure() {
153 - # toolchain file not needed, but build fails if it is not specified
154 - local mycmakeargs="-DCMAKE_TOOLCHAIN_FILE=/dev/null"
155 - cmake-utils_src_configure
156 -}
157 -
158 -src_install() {
159 - cmake-utils_src_install
160 - doenvd "${FILESDIR}"/04${PN}
161 -
162 - # enable dynamic switching of the GL implementation
163 - dodir /usr/lib/opengl
164 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
165 -
166 - # tell eselect opengl that we do not have libGL
167 - touch "${ED}"/opt/vc/.gles-only
168 -}
169
170 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20140830.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20140830.ebuild
171 deleted file mode 100644
172 index 3d43e4934e9..00000000000
173 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20140830.ebuild
174 +++ /dev/null
175 @@ -1,60 +0,0 @@
176 -# Copyright 1999-2014 Gentoo Foundation
177 -# Distributed under the terms of the GNU General Public License v2
178 -
179 -EAPI=5
180 -
181 -inherit cmake-utils
182 -
183 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
184 -HOMEPAGE="https://github.com/raspberrypi/userland"
185 -
186 -if [[ ${PV} == 9999* ]]; then
187 - inherit git-2
188 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
189 - SRC_URI=""
190 - KEYWORDS=""
191 -else
192 - SRC_URI="mirror://gentoo/${P}.tar.xz"
193 - KEYWORDS="~arm"
194 -fi
195 -
196 -LICENSE="BSD"
197 -SLOT="0"
198 -
199 -# TODO:
200 -# * port vcfiled init script
201 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
202 -# anything else depends on it being there
203 -# * live ebuild
204 -
205 -src_unpack() {
206 - if [[ ${PV} == 9999* ]]; then
207 - git-2_src_unpack
208 - else
209 - default
210 - mv userland-*/ ${P}/ || die
211 - fi
212 -}
213 -
214 -src_prepare() {
215 - # init script for Debian, not useful on Gentoo
216 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
217 -}
218 -
219 -src_configure() {
220 - # toolchain file not needed, but build fails if it is not specified
221 - local mycmakeargs="-DCMAKE_TOOLCHAIN_FILE=/dev/null"
222 - cmake-utils_src_configure
223 -}
224 -
225 -src_install() {
226 - cmake-utils_src_install
227 - doenvd "${FILESDIR}"/04${PN}
228 -
229 - # enable dynamic switching of the GL implementation
230 - dodir /usr/lib/opengl
231 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
232 -
233 - # tell eselect opengl that we do not have libGL
234 - touch "${ED}"/opt/vc/.gles-only
235 -}
236
237 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild
238 deleted file mode 100644
239 index d2c3cffe9ed..00000000000
240 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20150921.ebuild
241 +++ /dev/null
242 @@ -1,60 +0,0 @@
243 -# Copyright 1999-2015 Gentoo Foundation
244 -# Distributed under the terms of the GNU General Public License v2
245 -
246 -EAPI=5
247 -
248 -inherit cmake-utils
249 -
250 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
251 -HOMEPAGE="https://github.com/raspberrypi/userland"
252 -
253 -if [[ ${PV} == 9999* ]]; then
254 - inherit git-2
255 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
256 - SRC_URI=""
257 - KEYWORDS=""
258 -else
259 - SRC_URI="mirror://gentoo/${P}.tar.xz"
260 - KEYWORDS="~arm"
261 -fi
262 -
263 -LICENSE="BSD"
264 -SLOT="0"
265 -
266 -# TODO:
267 -# * port vcfiled init script
268 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
269 -# anything else depends on it being there
270 -# * live ebuild
271 -
272 -src_unpack() {
273 - if [[ ${PV} == 9999* ]]; then
274 - git-2_src_unpack
275 - else
276 - default
277 - mv userland-*/ ${P}/ || die
278 - fi
279 -}
280 -
281 -src_prepare() {
282 - # init script for Debian, not useful on Gentoo
283 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
284 -}
285 -
286 -src_configure() {
287 - # toolchain file not needed, but build fails if it is not specified
288 - local mycmakeargs="-DCMAKE_TOOLCHAIN_FILE=/dev/null"
289 - cmake-utils_src_configure
290 -}
291 -
292 -src_install() {
293 - cmake-utils_src_install
294 - doenvd "${FILESDIR}"/04${PN}
295 -
296 - # enable dynamic switching of the GL implementation
297 - dodir /usr/lib/opengl
298 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
299 -
300 - # tell eselect opengl that we do not have libGL
301 - touch "${ED}"/opt/vc/.gles-only
302 -}
303
304 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160305-r1.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160305-r1.ebuild
305 deleted file mode 100644
306 index 168ab44077d..00000000000
307 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160305-r1.ebuild
308 +++ /dev/null
309 @@ -1,107 +0,0 @@
310 -# Copyright 1999-2016 Gentoo Foundation
311 -# Distributed under the terms of the GNU General Public License v2
312 -
313 -EAPI=5
314 -
315 -inherit cmake-utils
316 -
317 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
318 -HOMEPAGE="https://github.com/raspberrypi/userland"
319 -
320 -if [[ ${PV} == 9999* ]]; then
321 - inherit git-2
322 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
323 - SRC_URI=""
324 - KEYWORDS=""
325 -else
326 - GIT_COMMIT="8369e39"
327 - SRC_URI="https://github.com/raspberrypi/userland/tarball/${GIT_COMMIT} -> ${P}.tar.gz"
328 - KEYWORDS="~arm"
329 - S="${WORKDIR}/raspberrypi-userland-${GIT_COMMIT}"
330 -fi
331 -
332 -RDEPEND="!media-libs/raspberrypi-userland-bin
333 - wayland? ( dev-libs/wayland )"
334 -DEPEND="${RDEPEND}
335 - wayland? ( virtual/pkgconfig )"
336 -
337 -IUSE="examples wayland"
338 -LICENSE="BSD"
339 -SLOT="0"
340 -
341 -# TODO:
342 -# * port vcfiled init script
343 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
344 -# anything else depends on it being there
345 -# * live ebuild
346 -
347 -src_unpack() {
348 - if [[ ${PV} == 9999* ]]; then
349 - git-2_src_unpack
350 - else
351 - default
352 - fi
353 -}
354 -
355 -src_prepare() {
356 - # init script for Debian, not useful on Gentoo
357 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
358 -
359 - # wayland egl support
360 - epatch "${FILESDIR}"/next-resource-handle.patch \
361 - "${FILESDIR}"/wayland-wsys.patch
362 -}
363 -
364 -src_install() {
365 - cmake-utils_src_install
366 -
367 - # provide OpenGL ES v1 according to https://github.com/raspberrypi/firmware/issues/78
368 - dosym libGLESv2.so /opt/vc/lib/libGLESv1_CM.so
369 -
370 - doenvd "${FILESDIR}"/04${PN}
371 -
372 - insinto /lib/udev/rules.d
373 - doins "${FILESDIR}"/92-local-vchiq-permissions.rules
374 -
375 - # enable dynamic switching of the GL implementation
376 - dodir /usr/lib/opengl
377 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
378 -
379 - # tell eselect opengl that we do not have libGL
380 - touch "${ED}"/opt/vc/.gles-only
381 -
382 - insinto /opt/vc/lib/pkgconfig
383 - doins "${FILESDIR}"/bcm_host.pc
384 - doins "${FILESDIR}"/egl.pc
385 - doins "${FILESDIR}"/glesv2.pc
386 - if use wayland; then
387 - # Missing wayland-egl version from the patch; claim 9.0 (a mesa version) for now, so gst-plugins-bad wayland-egl check is happy
388 - sed -i -e 's/Version: /Version: 9.0/' "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc
389 - doins "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc # Maybe move?
390 - fi
391 -
392 - # some #include instructions are wrong so we need to fix them
393 - einfo "Fixing #include \"vcos_platform_types.h\""
394 - for file in $(grep -l "#include \"vcos_platform_types.h\"" "${D}"/opt/vc/include/* -r); do
395 - einfo " Fixing file ${file}"
396 - sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file}
397 - done
398 - einfo "Fixing #include \"vcos_platform.h\""
399 - for file in $(grep -l "#include \"vcos_platform.h\"" "${D}"/opt/vc/include/* -r); do
400 - einfo " Fixing file ${file}"
401 - sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file}
402 - done
403 - einfo "Fixing #include \"vchost_config.h\""
404 - for file in $(grep -l "#include \"vchost_config.h\"" "${D}"/opt/vc/include/* -r); do
405 - einfo " Fixing file ${file}"
406 - sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file}
407 - done
408 -
409 - if use examples ; then
410 - dodir /usr/share/doc/${PF}/examples
411 - mv "${D}"/opt/vc/src/hello_pi "${D}"/usr/share/doc/${PF}/examples/ || die
412 - rm -fr "${D}"/opt/vc/src
413 - else
414 - rm -fr "${D}/opt/vc/src"
415 - fi
416 -}
417
418 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160330.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160330.ebuild
419 deleted file mode 100644
420 index 33a773f686e..00000000000
421 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160330.ebuild
422 +++ /dev/null
423 @@ -1,107 +0,0 @@
424 -# Copyright 1999-2016 Gentoo Foundation
425 -# Distributed under the terms of the GNU General Public License v2
426 -
427 -EAPI=5
428 -
429 -inherit cmake-utils
430 -
431 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
432 -HOMEPAGE="https://github.com/raspberrypi/userland"
433 -
434 -if [[ ${PV} == 9999* ]]; then
435 - inherit git-2
436 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
437 - SRC_URI=""
438 - KEYWORDS=""
439 -else
440 - GIT_COMMIT="703a2c4"
441 - SRC_URI="https://github.com/raspberrypi/userland/tarball/${GIT_COMMIT} -> ${P}.tar.gz"
442 - KEYWORDS="~arm"
443 - S="${WORKDIR}/raspberrypi-userland-${GIT_COMMIT}"
444 -fi
445 -
446 -RDEPEND="!media-libs/raspberrypi-userland-bin
447 - wayland? ( dev-libs/wayland )"
448 -DEPEND="${RDEPEND}
449 - wayland? ( virtual/pkgconfig )"
450 -
451 -IUSE="examples wayland"
452 -LICENSE="BSD"
453 -SLOT="0"
454 -
455 -# TODO:
456 -# * port vcfiled init script
457 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
458 -# anything else depends on it being there
459 -# * live ebuild
460 -
461 -src_unpack() {
462 - if [[ ${PV} == 9999* ]]; then
463 - git-2_src_unpack
464 - else
465 - default
466 - fi
467 -}
468 -
469 -src_prepare() {
470 - # init script for Debian, not useful on Gentoo
471 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
472 -
473 - # wayland egl support
474 - epatch "${FILESDIR}"/next-resource-handle.patch \
475 - "${FILESDIR}"/wayland-wsys.patch
476 -}
477 -
478 -src_install() {
479 - cmake-utils_src_install
480 -
481 - # provide OpenGL ES v1 according to https://github.com/raspberrypi/firmware/issues/78
482 - dosym libGLESv2.so /opt/vc/lib/libGLESv1_CM.so
483 -
484 - doenvd "${FILESDIR}"/04${PN}
485 -
486 - insinto /lib/udev/rules.d
487 - doins "${FILESDIR}"/92-local-vchiq-permissions.rules
488 -
489 - # enable dynamic switching of the GL implementation
490 - dodir /usr/lib/opengl
491 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
492 -
493 - # tell eselect opengl that we do not have libGL
494 - touch "${ED}"/opt/vc/.gles-only
495 -
496 - insinto /opt/vc/lib/pkgconfig
497 - doins "${FILESDIR}"/bcm_host.pc
498 - doins "${FILESDIR}"/egl.pc
499 - doins "${FILESDIR}"/glesv2.pc
500 - if use wayland; then
501 - # Missing wayland-egl version from the patch; claim 9.0 (a mesa version) for now, so gst-plugins-bad wayland-egl check is happy
502 - sed -i -e 's/Version: /Version: 9.0/' "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc
503 - doins "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc # Maybe move?
504 - fi
505 -
506 - # some #include instructions are wrong so we need to fix them
507 - einfo "Fixing #include \"vcos_platform_types.h\""
508 - for file in $(grep -l "#include \"vcos_platform_types.h\"" "${D}"/opt/vc/include/* -r); do
509 - einfo " Fixing file ${file}"
510 - sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file}
511 - done
512 - einfo "Fixing #include \"vcos_platform.h\""
513 - for file in $(grep -l "#include \"vcos_platform.h\"" "${D}"/opt/vc/include/* -r); do
514 - einfo " Fixing file ${file}"
515 - sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file}
516 - done
517 - einfo "Fixing #include \"vchost_config.h\""
518 - for file in $(grep -l "#include \"vchost_config.h\"" "${D}"/opt/vc/include/* -r); do
519 - einfo " Fixing file ${file}"
520 - sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file}
521 - done
522 -
523 - if use examples ; then
524 - dodir /usr/share/doc/${PF}/examples
525 - mv "${D}"/opt/vc/src/hello_pi "${D}"/usr/share/doc/${PF}/examples/ || die
526 - rm -fr "${D}"/opt/vc/src
527 - else
528 - rm -fr "${D}/opt/vc/src"
529 - fi
530 -}
531
532 diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160408.ebuild b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160408.ebuild
533 deleted file mode 100644
534 index 5bc7c77164c..00000000000
535 --- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160408.ebuild
536 +++ /dev/null
537 @@ -1,107 +0,0 @@
538 -# Copyright 1999-2016 Gentoo Foundation
539 -# Distributed under the terms of the GNU General Public License v2
540 -
541 -EAPI=5
542 -
543 -inherit cmake-utils
544 -
545 -DESCRIPTION="Raspberry Pi userspace tools and libraries"
546 -HOMEPAGE="https://github.com/raspberrypi/userland"
547 -
548 -if [[ ${PV} == 9999* ]]; then
549 - inherit git-2
550 - EGIT_REPO_URI="git://github.com/${PN/-//}.git"
551 - SRC_URI=""
552 - KEYWORDS=""
553 -else
554 - GIT_COMMIT="cfd971c"
555 - SRC_URI="https://github.com/raspberrypi/userland/tarball/${GIT_COMMIT} -> ${P}.tar.gz"
556 - KEYWORDS="~arm"
557 - S="${WORKDIR}/raspberrypi-userland-${GIT_COMMIT}"
558 -fi
559 -
560 -RDEPEND="!media-libs/raspberrypi-userland-bin
561 - wayland? ( dev-libs/wayland )"
562 -DEPEND="${RDEPEND}
563 - wayland? ( virtual/pkgconfig )"
564 -
565 -IUSE="examples wayland"
566 -LICENSE="BSD"
567 -SLOT="0"
568 -
569 -# TODO:
570 -# * port vcfiled init script
571 -# * stuff is still installed to hardcoded /opt/vc location, investigate whether
572 -# anything else depends on it being there
573 -# * live ebuild
574 -
575 -src_unpack() {
576 - if [[ ${PV} == 9999* ]]; then
577 - git-2_src_unpack
578 - else
579 - default
580 - fi
581 -}
582 -
583 -src_prepare() {
584 - # init script for Debian, not useful on Gentoo
585 - sed -i "/DESTINATION \/etc\/init.d/,+2d" interface/vmcs_host/linux/vcfiled/CMakeLists.txt || die
586 -
587 - # wayland egl support
588 - epatch "${FILESDIR}"/next-resource-handle.patch \
589 - "${FILESDIR}"/wayland-wsys.patch
590 -}
591 -
592 -src_install() {
593 - cmake-utils_src_install
594 -
595 - # provide OpenGL ES v1 according to https://github.com/raspberrypi/firmware/issues/78
596 - dosym libGLESv2.so /opt/vc/lib/libGLESv1_CM.so
597 -
598 - doenvd "${FILESDIR}"/04${PN}
599 -
600 - insinto /lib/udev/rules.d
601 - doins "${FILESDIR}"/92-local-vchiq-permissions.rules
602 -
603 - # enable dynamic switching of the GL implementation
604 - dodir /usr/lib/opengl
605 - dosym ../../../opt/vc /usr/lib/opengl/${PN}
606 -
607 - # tell eselect opengl that we do not have libGL
608 - touch "${ED}"/opt/vc/.gles-only
609 -
610 - insinto /opt/vc/lib/pkgconfig
611 - doins "${FILESDIR}"/bcm_host.pc
612 - doins "${FILESDIR}"/egl.pc
613 - doins "${FILESDIR}"/glesv2.pc
614 - if use wayland; then
615 - # Missing wayland-egl version from the patch; claim 9.0 (a mesa version) for now, so gst-plugins-bad wayland-egl check is happy
616 - sed -i -e 's/Version: /Version: 9.0/' "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc
617 - doins "${ED}"/opt/vc/lib/pkgconfig/wayland-egl.pc # Maybe move?
618 - fi
619 -
620 - # some #include instructions are wrong so we need to fix them
621 - einfo "Fixing #include \"vcos_platform_types.h\""
622 - for file in $(grep -l "#include \"vcos_platform_types.h\"" "${D}"/opt/vc/include/* -r); do
623 - einfo " Fixing file ${file}"
624 - sed -i "s%#include \"vcos_platform_types.h\"%#include \"interface/vcos/pthreads/vcos_platform_types.h\"%g" ${file}
625 - done
626 - einfo "Fixing #include \"vcos_platform.h\""
627 - for file in $(grep -l "#include \"vcos_platform.h\"" "${D}"/opt/vc/include/* -r); do
628 - einfo " Fixing file ${file}"
629 - sed -i "s%#include \"vcos_platform.h\"%#include \"interface/vcos/pthreads/vcos_platform.h\"%g" ${file}
630 - done
631 - einfo "Fixing #include \"vchost_config.h\""
632 - for file in $(grep -l "#include \"vchost_config.h\"" "${D}"/opt/vc/include/* -r); do
633 - einfo " Fixing file ${file}"
634 - sed -i "s%#include \"vchost_config.h\"%#include \"interface/vmcs_host/linux/vchost_config.h\"%g" ${file}
635 - done
636 -
637 - if use examples ; then
638 - dodir /usr/share/doc/${PF}/examples
639 - mv "${D}"/opt/vc/src/hello_pi "${D}"/usr/share/doc/${PF}/examples/ || die
640 - rm -fr "${D}"/opt/vc/src
641 - else
642 - rm -fr "${D}/opt/vc/src"
643 - fi
644 -}