1 |
commit: af245b43dbcb450b4a3c5dc99eb0c7c52312e54d |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Dec 25 23:23:16 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 00:10:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af245b43 |
7 |
|
8 |
media-video/mpv: verbump to 0.23.0. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/3247 |
12 |
|
13 |
media-video/mpv/Manifest | 1 + |
14 |
....23.0-make-libavdevice-check-accept-libav.patch | 20 ++ |
15 |
media-video/mpv/mpv-0.23.0.ebuild | 345 +++++++++++++++++++++ |
16 |
3 files changed, 366 insertions(+) |
17 |
|
18 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
19 |
index 24739ac..16564e8 100644 |
20 |
--- a/media-video/mpv/Manifest |
21 |
+++ b/media-video/mpv/Manifest |
22 |
@@ -1,5 +1,6 @@ |
23 |
DIST mpv-0.18.0.tar.gz 2758960 SHA256 b656638d4f6bce2621baaacb60d8be384aa492fcd86dfd43996aaa2c16fee02b SHA512 5a899ea680b4da6d668a6e77a254e623bafef16f376ee46639e40f151da5a000de84b382f2b07f3a1e87b60fc8e524132767fdf243e36474966af11a88277437 WHIRLPOOL c491e61cb2d7f453cfc23605120048e81c2b7621b8d9591cad6415d3b550f55db6a6c8c6f90d27c7ce214ff89f92a9861d202b457c2de25c5b7de11d8d1d40af |
24 |
DIST mpv-0.22.0.tar.gz 2822645 SHA256 c0f9ac8f0e37a391d19007b333ef8787c2f45d75a0d4401c0098cde52c5082f6 SHA512 6c021bfb79cbedee842bf122ebb29df56e8b1cbfcb038bd54bf6e2f2db2a6550b71fd9fe8998dbd79b4ceeab3fbcab65ec60695f255c5cb36fb1feae17b797c0 WHIRLPOOL 3458dfe646bab65408a7fe45f98ae168f439b4939064b009ba87d0ae08c1f2067bd252558a92f9fdb0822bf5a35b2377bce7f46aeb190d60a4e115394f0506c9 |
25 |
+DIST mpv-0.23.0.tar.gz 2812103 SHA256 8aeefe5970587dfc454d2b89726b603f156bd7a9ae427654eef0d60c68d94998 SHA512 16304a729684ba177cb902e2508bdba09b344228c44ac78b27302ee4e0bcfb344b3522969e834516547bf82825009afd3bef1701327fdcaa42a9696065cca591 WHIRLPOOL fa214186ae80f4b26d967b8d6c68f0c4c56a77caaf06088249d30551e2cd5efbfc4f0a06e1944ef24ac679f1a3d47faa0d6152d192f032b3d279d5ada6567c8e |
26 |
DIST mpv-0.9.2.tar.gz 2701306 SHA256 c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 SHA512 4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 WHIRLPOOL 1512bacc2ce50e875770c76106a1bb2bc1d0cc5f6e2bdce91ff8c5cfc8bf13ffb48519858a5fa2a7d57880820dc12e5eb20f34ab71eca5d76ec303618da8f3fe |
27 |
DIST waf-1.8.12 97567 SHA256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 WHIRLPOOL c36d37c2d8c08e4048b4800f511611af5cf534304fcb58388ca491ff308bfcbcdd959d153edfd6ff8c118404e7293d8b786e43b07486139bf915a82aa75d792b |
28 |
DIST waf-1.8.4 96179 SHA256 f02035fa5d8814f33f19b2b20d43822ddef6bb39b955ca196c2a247a1f9ffaa8 SHA512 3a132d8b1cba0af0e3df046c0204c5df706fae4e0fac41cf74b53f6cdea6210ed798671c7a3cb3fee70573aacab16d4c0cc699cc4b7aa74c8a416346c5513f4c WHIRLPOOL fe8d7f42e5118a1f9490a0c9add1355c969185376b57d0bab024068dd6e7364632d862bf9432e1209165c5313ae843479ef334f4bd6285db05dfebff9a1b640e |
29 |
|
30 |
diff --git a/media-video/mpv/files/mpv-0.23.0-make-libavdevice-check-accept-libav.patch b/media-video/mpv/files/mpv-0.23.0-make-libavdevice-check-accept-libav.patch |
31 |
new file mode 100644 |
32 |
index 00000000..de70a4f |
33 |
--- /dev/null |
34 |
+++ b/media-video/mpv/files/mpv-0.23.0-make-libavdevice-check-accept-libav.patch |
35 |
@@ -0,0 +1,20 @@ |
36 |
+build: make libavdevice configure check accept libav-12 |
37 |
+ |
38 |
+libav-12 is supported, but configure script expects |
39 |
+a higher libavdevice version than libav-12 provides. |
40 |
+ |
41 |
+Gentoo-Bug: 603122 |
42 |
+ |
43 |
+diff --git a/wscript b/wscript |
44 |
+index 94db7e296..7f61f54cc 100644 |
45 |
+--- a/wscript |
46 |
++++ b/wscript |
47 |
+@@ -444,7 +444,7 @@ FFmpeg/Libav libraries. You need at least {0}. Aborting.".format(libav_versions_ |
48 |
+ }, { |
49 |
+ 'name': '--libavdevice', |
50 |
+ 'desc': 'libavdevice', |
51 |
+- 'func': check_pkg_config('libavdevice', '>= 57.0.0'), |
52 |
++ 'func': check_pkg_config('libavdevice', '>= 56.1.0'), |
53 |
+ }, { |
54 |
+ 'name': 'avcodec-chroma-pos-api', |
55 |
+ 'desc': 'libavcodec avcodec_enum_to_chroma_pos API', |
56 |
|
57 |
diff --git a/media-video/mpv/mpv-0.23.0.ebuild b/media-video/mpv/mpv-0.23.0.ebuild |
58 |
new file mode 100644 |
59 |
index 00000000..0069f84 |
60 |
--- /dev/null |
61 |
+++ b/media-video/mpv/mpv-0.23.0.ebuild |
62 |
@@ -0,0 +1,345 @@ |
63 |
+# Copyright 1999-2016 Gentoo Foundation |
64 |
+# Distributed under the terms of the GNU General Public License v2 |
65 |
+# $Id$ |
66 |
+ |
67 |
+EAPI=6 |
68 |
+ |
69 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
70 |
+PYTHON_REQ_USE='threads(+)' |
71 |
+ |
72 |
+WAF_PV=1.8.12 |
73 |
+ |
74 |
+inherit gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
75 |
+ |
76 |
+DESCRIPTION="Media player based on MPlayer and mplayer2" |
77 |
+HOMEPAGE="https://mpv.io/" |
78 |
+ |
79 |
+if [[ ${PV} != *9999* ]]; then |
80 |
+ SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
81 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux" |
82 |
+ DOCS=( RELEASE_NOTES ) |
83 |
+else |
84 |
+ EGIT_REPO_URI=( {https,git}://github.com/mpv-player/mpv.git ) |
85 |
+ inherit git-r3 |
86 |
+fi |
87 |
+SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
88 |
+DOCS+=( README.md ) |
89 |
+ |
90 |
+# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
91 |
+LICENSE="GPL-2+ BSD ISC" |
92 |
+SLOT="0" |
93 |
+IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb dvd +egl encode |
94 |
+ gbm +iconv jack jpeg lcms +libass libav libcaca libmpv +lua luajit openal |
95 |
+ +opengl oss pulseaudio raspberry-pi rubberband samba -sdl selinux test |
96 |
+ tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver |
97 |
+ +xv zsh-completion" |
98 |
+ |
99 |
+REQUIRED_USE=" |
100 |
+ || ( cli libmpv ) |
101 |
+ aqua? ( opengl ) |
102 |
+ egl? ( || ( gbm X wayland ) ) |
103 |
+ gbm? ( drm egl ) |
104 |
+ lcms? ( || ( opengl egl ) ) |
105 |
+ luajit? ( lua ) |
106 |
+ tools? ( cli ) |
107 |
+ uchardet? ( iconv ) |
108 |
+ v4l? ( || ( alsa oss ) ) |
109 |
+ vaapi? ( || ( gbm X wayland ) ) |
110 |
+ vdpau? ( X ) |
111 |
+ wayland? ( egl ) |
112 |
+ xinerama? ( X ) |
113 |
+ xscreensaver? ( X ) |
114 |
+ xv? ( X ) |
115 |
+ zsh-completion? ( cli ) |
116 |
+" |
117 |
+ |
118 |
+COMMON_DEPEND=" |
119 |
+ !libav? ( >=media-video/ffmpeg-3.2.2:=[encode?,threads,vaapi?,vdpau?] ) |
120 |
+ libav? ( >=media-video/libav-12:=[encode?,threads,vaapi?,vdpau?] ) |
121 |
+ sys-libs/zlib |
122 |
+ alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
123 |
+ archive? ( >=app-arch/libarchive-3.0.0:= ) |
124 |
+ bluray? ( >=media-libs/libbluray-0.3.0 ) |
125 |
+ cdda? ( dev-libs/libcdio-paranoia ) |
126 |
+ drm? ( x11-libs/libdrm ) |
127 |
+ dvb? ( virtual/linuxtv-dvb-headers ) |
128 |
+ dvd? ( |
129 |
+ >=media-libs/libdvdnav-4.2.0 |
130 |
+ >=media-libs/libdvdread-4.1.0 |
131 |
+ ) |
132 |
+ egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
133 |
+ iconv? ( |
134 |
+ virtual/libiconv |
135 |
+ uchardet? ( dev-libs/uchardet ) |
136 |
+ ) |
137 |
+ jack? ( virtual/jack ) |
138 |
+ jpeg? ( virtual/jpeg:0 ) |
139 |
+ lcms? ( >=media-libs/lcms-2.6:2 ) |
140 |
+ libass? ( |
141 |
+ >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
142 |
+ virtual/ttf-fonts |
143 |
+ ) |
144 |
+ libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
145 |
+ lua? ( |
146 |
+ !luajit? ( <dev-lang/lua-5.3:= ) |
147 |
+ luajit? ( dev-lang/luajit:2 ) |
148 |
+ ) |
149 |
+ openal? ( >=media-libs/openal-1.13 ) |
150 |
+ opengl? ( !aqua? ( virtual/opengl ) ) |
151 |
+ pulseaudio? ( media-sound/pulseaudio ) |
152 |
+ raspberry-pi? ( |
153 |
+ >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
154 |
+ media-libs/mesa[egl,gles2] |
155 |
+ ) |
156 |
+ rubberband? ( >=media-libs/rubberband-1.8.0 ) |
157 |
+ samba? ( net-fs/samba[smbclient(+)] ) |
158 |
+ sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
159 |
+ v4l? ( media-libs/libv4l ) |
160 |
+ vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
161 |
+ wayland? ( |
162 |
+ >=dev-libs/wayland-1.6.0 |
163 |
+ >=x11-libs/libxkbcommon-0.3.0 |
164 |
+ ) |
165 |
+ X? ( |
166 |
+ x11-libs/libX11 |
167 |
+ x11-libs/libXext |
168 |
+ >=x11-libs/libXrandr-1.2.0 |
169 |
+ opengl? ( x11-libs/libXdamage ) |
170 |
+ vdpau? ( >=x11-libs/libvdpau-0.2 ) |
171 |
+ xinerama? ( x11-libs/libXinerama ) |
172 |
+ xscreensaver? ( x11-libs/libXScrnSaver ) |
173 |
+ xv? ( x11-libs/libXv ) |
174 |
+ ) |
175 |
+" |
176 |
+DEPEND="${COMMON_DEPEND} |
177 |
+ ${PYTHON_DEPS} |
178 |
+ dev-python/docutils |
179 |
+ virtual/pkgconfig |
180 |
+ doc? ( dev-python/rst2pdf ) |
181 |
+ test? ( >=dev-util/cmocka-1.0.0 ) |
182 |
+ zsh-completion? ( dev-lang/perl ) |
183 |
+" |
184 |
+RDEPEND="${COMMON_DEPEND} |
185 |
+ selinux? ( sec-policy/selinux-mplayer ) |
186 |
+ tools? ( ${PYTHON_DEPS} ) |
187 |
+" |
188 |
+ |
189 |
+PATCHES=( |
190 |
+ "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch" |
191 |
+ "${FILESDIR}/${PN}-0.23.0-make-libavdevice-check-accept-libav.patch" |
192 |
+) |
193 |
+ |
194 |
+mpv_check_compiler() { |
195 |
+ if [[ ${MERGE_TYPE} != "binary" ]] && use vaapi && use egl && ! tc-has-tls; then |
196 |
+ die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
197 |
+ fi |
198 |
+} |
199 |
+ |
200 |
+pkg_pretend() { |
201 |
+ mpv_check_compiler |
202 |
+} |
203 |
+ |
204 |
+pkg_setup() { |
205 |
+ mpv_check_compiler |
206 |
+ [[ ${MERGE_TYPE} != "binary" ]] && python_setup |
207 |
+} |
208 |
+ |
209 |
+src_prepare() { |
210 |
+ cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
211 |
+ chmod +x "${S}"/waf || die |
212 |
+ default_src_prepare |
213 |
+} |
214 |
+ |
215 |
+src_configure() { |
216 |
+ local mywafargs=( |
217 |
+ --confdir="${EPREFIX}/etc/${PN}" |
218 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" |
219 |
+ --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
220 |
+ |
221 |
+ $(usex cli '' '--disable-cplayer') |
222 |
+ $(use_enable libmpv libmpv-shared) |
223 |
+ |
224 |
+ # See deep down below for build-date. |
225 |
+ --disable-libmpv-static |
226 |
+ --disable-static-build |
227 |
+ --disable-optimize # Don't add '-O2' to CFLAGS. |
228 |
+ --disable-debug-build # Don't add '-g' to CFLAGS. |
229 |
+ --enable-html-build |
230 |
+ |
231 |
+ $(use_enable doc pdf-build) |
232 |
+ $(use_enable vf-dlopen vf-dlopen-filters) |
233 |
+ $(use_enable zsh-completion zsh-comp) |
234 |
+ $(use_enable test) |
235 |
+ |
236 |
+ $(use_enable iconv) |
237 |
+ $(use_enable samba libsmbclient) |
238 |
+ $(use_enable lua) |
239 |
+ $(usex luajit '--lua=luajit' '') |
240 |
+ $(use_enable libass) |
241 |
+ $(use_enable libass libass-osd) |
242 |
+ $(use_enable encode encoding) |
243 |
+ $(use_enable bluray libbluray) |
244 |
+ $(use_enable dvd dvdread) |
245 |
+ $(use_enable dvd dvdnav) |
246 |
+ $(use_enable cdda) |
247 |
+ $(use_enable uchardet) |
248 |
+ $(use_enable rubberband) |
249 |
+ $(use_enable lcms lcms2) |
250 |
+ --disable-vapoursynth # Only available in overlays. |
251 |
+ --disable-vapoursynth-lazy |
252 |
+ $(use_enable archive libarchive) |
253 |
+ |
254 |
+ --enable-libavdevice |
255 |
+ |
256 |
+ # Audio outputs: |
257 |
+ $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
258 |
+ --disable-sdl1 |
259 |
+ $(use_enable oss oss-audio) |
260 |
+ --disable-rsound # Only available in overlays. |
261 |
+ --disable-sndio # Only available in overlays. |
262 |
+ $(use_enable pulseaudio pulse) |
263 |
+ $(use_enable jack) |
264 |
+ $(use_enable openal) |
265 |
+ --disable-opensles |
266 |
+ $(use_enable alsa) |
267 |
+ $(use_enable coreaudio) |
268 |
+ |
269 |
+ # Video outputs: |
270 |
+ $(use_enable aqua cocoa) |
271 |
+ $(use_enable drm) |
272 |
+ $(use_enable gbm) |
273 |
+ $(use_enable wayland) |
274 |
+ $(use_enable X x11) |
275 |
+ $(use_enable xscreensaver xss) |
276 |
+ $(use_enable X xext) |
277 |
+ $(use_enable xv) |
278 |
+ $(use_enable xinerama) |
279 |
+ $(use_enable X xrandr) |
280 |
+ $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
281 |
+ $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
282 |
+ $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
283 |
+ $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
284 |
+ $(use_enable wayland gl-wayland) |
285 |
+ $(use_enable vdpau) |
286 |
+ $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
287 |
+ $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
288 |
+ $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
289 |
+ $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
290 |
+ $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
291 |
+ $(use_enable libcaca caca) |
292 |
+ $(use_enable jpeg) |
293 |
+ --disable-android |
294 |
+ $(use_enable raspberry-pi rpi) |
295 |
+ --disable-ios-gl |
296 |
+ $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
297 |
+ --disable-mali-fbdev # Only available in overlays. |
298 |
+ |
299 |
+ # HWaccels: |
300 |
+ # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
301 |
+ $(use_enable vaapi vaapi-hwaccel) |
302 |
+ $(use_enable vdpau vdpau-hwaccel) |
303 |
+ --disable-cuda-hwaccel # No support in ffmpeg. See Gentoo bug 595450. |
304 |
+ |
305 |
+ # TV features: |
306 |
+ $(use_enable v4l tv) |
307 |
+ $(use_enable v4l tv-v4l2) |
308 |
+ $(use_enable v4l libv4l2) |
309 |
+ $(use_enable v4l audio-input) |
310 |
+ $(use_enable dvb dvbin) |
311 |
+ |
312 |
+ # Miscellaneous features: |
313 |
+ --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
314 |
+ ) |
315 |
+ |
316 |
+ if use vaapi && use X; then |
317 |
+ mywafargs+=( |
318 |
+ $(use_enable opengl vaapi-glx) |
319 |
+ $(use_enable egl vaapi-x-egl) |
320 |
+ ) |
321 |
+ fi |
322 |
+ |
323 |
+ if ! use egl && ! use opengl && ! use raspberry-pi; then |
324 |
+ mywafargs+=(--disable-gl) |
325 |
+ fi |
326 |
+ |
327 |
+ # Create reproducible non-live builds. |
328 |
+ [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
329 |
+ |
330 |
+ waf-utils_src_configure "${mywafargs[@]}" |
331 |
+} |
332 |
+ |
333 |
+src_install() { |
334 |
+ waf-utils_src_install |
335 |
+ |
336 |
+ if use lua; then |
337 |
+ insinto /usr/share/${PN} |
338 |
+ doins -r TOOLS/lua |
339 |
+ fi |
340 |
+ |
341 |
+ if use cli && use luajit; then |
342 |
+ pax-mark -m "${ED}"usr/bin/${PN} |
343 |
+ fi |
344 |
+ |
345 |
+ if use tools; then |
346 |
+ dobin TOOLS/{mpv_identify.sh,umpv} |
347 |
+ newbin TOOLS/idet.sh mpv_idet.sh |
348 |
+ python_replicate_script "${ED}"usr/bin/umpv |
349 |
+ fi |
350 |
+} |
351 |
+ |
352 |
+pkg_preinst() { |
353 |
+ gnome2_icon_savelist |
354 |
+} |
355 |
+ |
356 |
+pkg_postinst() { |
357 |
+ local rv softvol_0_18_1=0 |
358 |
+ for rv in ${REPLACING_VERSIONS}; do |
359 |
+ version_compare ${rv} 0.18.1-r1 |
360 |
+ [[ $? -eq 1 ]] && softvol_0_18_1=1 |
361 |
+ done |
362 |
+ |
363 |
+ if [[ ${softvol_0_18_1} -eq 1 ]]; then |
364 |
+ elog "Starting from version 0.18.1 the software volume control is" |
365 |
+ elog "enabled by default, see:" |
366 |
+ elog "https://github.com/mpv-player/mpv/blob/v0.18.1/DOCS/interface-changes.rst" |
367 |
+ elog "https://github.com/mpv-player/mpv/issues/3322" |
368 |
+ elog |
369 |
+ elog "This means that volume controls don't change the system volume," |
370 |
+ elog "e.g. per-application volume with PulseAudio." |
371 |
+ elog "If you want to restore the old behaviour, please refer to" |
372 |
+ elog |
373 |
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=588492#c7" |
374 |
+ elog |
375 |
+ fi |
376 |
+ |
377 |
+ # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
378 |
+ if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
379 |
+ ! has_version 'app-shells/mpv-bash-completion'; then |
380 |
+ elog "If you want to have command-line completion via bash-completion," |
381 |
+ elog "please install app-shells/mpv-bash-completion." |
382 |
+ fi |
383 |
+ |
384 |
+ if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
385 |
+ has_version 'app-shells/mpv-bash-completion'; then |
386 |
+ elog "If command-line completion doesn't work after mpv update," |
387 |
+ elog "please rebuild app-shells/mpv-bash-completion." |
388 |
+ fi |
389 |
+ |
390 |
+ gnome2_icon_cache_update |
391 |
+ xdg_desktop_database_update |
392 |
+} |
393 |
+ |
394 |
+pkg_postrm() { |
395 |
+ gnome2_icon_cache_update |
396 |
+ xdg_desktop_database_update |
397 |
+} |
398 |
+ |
399 |
+src_test() { |
400 |
+ cd "${S}"/build/test || die |
401 |
+ local test |
402 |
+ for test in *; do |
403 |
+ if [[ -x ${test} ]]; then |
404 |
+ ./"${test}" || die "Test suite failed" |
405 |
+ fi |
406 |
+ done |
407 |
+} |