Gentoo Archives: gentoo-commits

From: "Steve Dibb (beandog)" <beandog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/mplayer: ChangeLog mplayer-1.0_rc2_p26454.ebuild
Date: Wed, 16 Apr 2008 15:27:12
Message-Id: E1Jm9XQ-0004zj-Qq@stork.gentoo.org
1 beandog 08/04/16 15:27:08
2
3 Modified: ChangeLog
4 Added: mplayer-1.0_rc2_p26454.ebuild
5 Log:
6 Snapshot bump
7 (Portage version: 2.1.5_rc3)
8
9 Revision Changes Path
10 1.566 media-video/mplayer/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.566&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.566&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?r1=1.565&r2=1.566
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v
19 retrieving revision 1.565
20 retrieving revision 1.566
21 diff -u -r1.565 -r1.566
22 --- ChangeLog 15 Apr 2008 02:22:32 -0000 1.565
23 +++ ChangeLog 16 Apr 2008 15:27:08 -0000 1.566
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/mplayer
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.565 2008/04/15 02:22:32 beandog Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.566 2008/04/16 15:27:08 beandog Exp $
29 +
30 +*mplayer-1.0_rc2_p26454 (16 Apr 2008)
31 +
32 + 16 Apr 2008; Steve Dibb <beandog@g.o>
33 + +mplayer-1.0_rc2_p26454.ebuild:
34 + Snapshot bump
35
36 *mplayer-1.0_rc2_p24929-r4 (15 Apr 2008)
37
38
39
40
41 1.1 media-video/mplayer/mplayer-1.0_rc2_p26454.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26454.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26454.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mplayer-1.0_rc2_p26454.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26454.ebuild,v 1.1 2008/04/16 15:27:08 beandog Exp $
51
52 EAPI="1"
53
54 inherit eutils flag-o-matic multilib
55
56 RESTRICT="strip"
57 IUSE="3dnow 3dnowext +a52 aac -aalib +alsa altivec amrnb amrwb -arts bidi bl
58 bindist cddb cdio cdparanoia cpudetection custom-cflags debug dga doc dts dvb
59 directfb +dvd dv enca encode esd -fbcon ftp -gif ggi gtk iconv ipv6 jack joystick
60 -jpeg kernel_linux ladspa -libcaca lirc live lzo +mad -md5sum +mmx mmxext mp2
61 +mp3 musepack nas nemesi unicode +vorbis opengl openal oss -png -pnm pulseaudio
62 quicktime radio -rar real rtc -samba sdl speex srt sse sse2 ssse3 svga teletext
63 tga +theora -tivo +truetype v4l v4l2 vidix win32codecs +X x264 xanim xinerama
64 +xscreensaver +xv xvid xvmc zoran"
65
66 VIDEO_CARDS="s3virge mga tdfx vesa"
67
68 for x in ${VIDEO_CARDS}; do
69 IUSE="${IUSE} video_cards_${x}"
70 done
71
72 BLUV="1.7"
73 SVGV="1.9.17"
74 AMR_URI="http://www.3gpp.org/ftp/Specs/archive"
75 SRC_URI="mirror://gentoo/${P}.tar.bz2
76 !truetype? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
77 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
78 mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 )
79 !iconv? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
80 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
81 mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 )
82 gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )
83 svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )"
84
85 DESCRIPTION="Media Player for Linux"
86 HOMEPAGE="http://www.mplayerhq.hu/"
87
88 RDEPEND="sys-libs/ncurses
89 !bindist? (
90 x86? (
91 win32codecs? ( media-libs/win32codecs )
92 real? ( media-libs/win32codecs
93 media-video/realplayer )
94 )
95 amd64? ( real? ( media-libs/amd64codecs ) )
96 )
97 aalib? ( media-libs/aalib )
98 alsa? ( media-libs/alsa-lib )
99 amrnb? ( media-libs/amrnb )
100 amrwb? ( media-libs/amrwb )
101 arts? ( kde-base/arts )
102 openal? ( media-libs/openal )
103 bidi? ( dev-libs/fribidi )
104 cdio? ( dev-libs/libcdio )
105 cdparanoia? ( media-sound/cdparanoia )
106 directfb? ( dev-libs/DirectFB )
107 dga? ( x11-libs/libXxf86dga )
108 dts? ( media-libs/libdca )
109 dv? ( media-libs/libdv )
110 dvb? ( media-tv/linuxtv-dvb-headers )
111 encode? (
112 aac? ( media-libs/faac )
113 mp2? ( media-sound/twolame )
114 mp3? ( media-sound/lame )
115 x264? ( media-libs/x264 )
116 )
117 esd? ( media-sound/esound )
118 enca? ( app-i18n/enca )
119 gif? ( media-libs/giflib )
120 ggi? ( media-libs/libggi
121 media-libs/libggiwmh )
122 gtk? ( media-libs/libpng
123 x11-libs/libXxf86vm
124 x11-libs/libXext
125 x11-libs/libXi
126 =x11-libs/gtk+-2* )
127 jpeg? ( media-libs/jpeg )
128 ladspa? ( media-libs/ladspa-sdk )
129 libcaca? ( media-libs/libcaca )
130 lirc? ( app-misc/lirc )
131 lzo? ( >=dev-libs/lzo-2 )
132 mad? ( media-libs/libmad )
133 musepack? ( >=media-libs/libmpcdec-1.2.2 )
134 nas? ( media-libs/nas )
135 opengl? ( virtual/opengl )
136 png? ( media-libs/libpng )
137 pnm? ( media-libs/netpbm )
138 pulseaudio? ( media-sound/pulseaudio )
139 samba? ( net-fs/samba )
140 sdl? ( media-libs/libsdl )
141 speex? ( >=media-libs/speex-1.1.7 )
142 srt? ( >=media-libs/freetype-2.1
143 media-libs/fontconfig )
144 svga? ( media-libs/svgalib )
145 theora? ( media-libs/libtheora )
146 live? ( >=media-plugins/live-2007.02.20 )
147 truetype? ( >=media-libs/freetype-2.1
148 media-libs/fontconfig )
149 vidix? ( x11-libs/libXxf86vm
150 x11-libs/libXext )
151 xanim? ( media-video/xanim )
152 xinerama? ( x11-libs/libXinerama
153 x11-libs/libXxf86vm
154 x11-libs/libXext )
155 xscreensaver? ( x11-libs/libXScrnSaver )
156 xv? ( x11-libs/libXv
157 x11-libs/libXxf86vm
158 x11-libs/libXext
159 xvmc? ( x11-libs/libXvMC ) )
160 xvid? ( media-libs/xvid )
161 X? ( x11-libs/libXxf86vm
162 x11-libs/libXext
163 )"
164
165 DEPEND="${RDEPEND}
166 doc? ( >=app-text/docbook-sgml-dtd-4.1.2
167 app-text/docbook-xml-dtd
168 >=app-text/docbook-xml-simple-dtd-1.50.0
169 dev-libs/libxslt )
170 dga? ( x11-proto/xf86dgaproto )
171 xinerama? ( x11-proto/xineramaproto )
172 xv? ( x11-proto/videoproto
173 x11-proto/xf86vidmodeproto )
174 gtk? ( x11-proto/xextproto
175 x11-proto/xf86vidmodeproto )
176 X? ( x11-proto/xextproto
177 x11-proto/xf86vidmodeproto )
178 xscreensaver? ( x11-proto/scrnsaverproto )
179 iconv? ( virtual/libiconv )"
180 # Make sure the assembler USE flags are unmasked on amd64
181 # Remove this once default-linux/amd64/2006.1 is deprecated
182 DEPEND="${DEPEND} amd64? ( >=sys-apps/portage-2.1.2 )
183 mp2? ( >=sys-apps/portage-2.1.2 )"
184
185 SLOT="0"
186 LICENSE="GPL-2"
187 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
188
189 pkg_setup() {
190
191 if [[ -n ${LINGUAS} ]]; then
192 elog "For MPlayer's language support, the configuration will"
193 elog "use your LINGUAS variable from /etc/make.conf. If you have more"
194 elog "than one language enabled, then the first one in the list will"
195 elog "be used to output the messages, if a translation is available."
196 elog "man pages will be created for all languages where translations"
197 elog "are also available."
198 fi
199
200 if use x86 || use amd64; then
201 if ! use mmx && use custom-cflags; then
202 ewarn "You have the 'mmx' use flag disabled for this package, which"
203 ewarn "means that no CPU optimizations will be used at all."
204 ewarn "The build will either break or encode very slowly. Check your"
205 ewarn "/proc/cpuinfo for possible CPU optimization flags that"
206 ewarn "apply to this ebuild (mmx, mmxext, 3dnow, 3dnowext, sse,"
207 ewarn "sse2)."
208 fi
209 fi
210
211 }
212
213 src_unpack() {
214 unpack ${A}
215
216 if ! use truetype ; then
217 unpack font-arial-iso-8859-1.tar.bz2 \
218 font-arial-iso-8859-2.tar.bz2 \
219 font-arial-cp1250.tar.bz2
220 fi
221
222 use gtk && unpack "Blue-${BLUV}.tar.bz2"
223
224 use svga && unpack "svgalib_helper-${SVGV}-mplayer.tar.bz2"
225
226 cd "${S}"
227
228 # Fix hppa compilation
229 use hppa && sed -i -e "s/-O4/-O1/" "${S}/configure"
230
231 if use svga; then
232 echo
233 einfo "Enabling vidix non-root mode."
234 einfo "(You need a proper svgalib_helper.o module for your kernel"
235 einfo "to actually use this)"
236 echo
237
238 mv "${WORKDIR}/svgalib_helper" "${S}/libdha"
239 fi
240
241 # Fix polish spelling errors
242 [[ -n ${LINGUAS} ]] && sed -e 's:Zarządano:Zażądano:' -i help/help_mp-pl.h
243 }
244
245 src_compile() {
246
247 local myconf=" --disable-tv-bsdbt848 \
248 --disable-faad-external"
249
250 # broken upstream, won't work with recent kernels
251 myconf="${myconf} --disable-ivtv --disable-pvr"
252
253 # MPlayer reads in the LINGUAS variable from make.conf, and sets
254 # the languages accordingly. Some will have to be altered to match
255 # upstream's naming scheme.
256 [[ -n $LINGUAS ]] && LINGUAS=${LINGUAS/da/dk}
257
258 ################
259 #Optional features#
260 ###############
261 use bidi || myconf="${myconf} --disable-fribidi"
262 use bl && myconf="${myconf} --enable-bl"
263 use enca || myconf="${myconf} --disable-enca"
264 use ftp || myconf="${myconf} --disable-ftp"
265 use nemesi || myconf="${myconf} --disable-nemesi"
266 use tivo || myconf="${myconf} --disable-vstream"
267 use xscreensaver || myconf="${myconf} --disable-xss"
268
269 # libcdio support: prefer libcdio over cdparanoia
270 # don't check for cddb w/cdio
271 if use cdio; then
272 myconf="${myconf} --disable-cdparanoia"
273 else
274 myconf="${myconf} --disable-libcdio"
275 use cdparanoia || myconf="${myconf} --disable-cdparanoia"
276 use cddb || myconf="${myconf} --disable-cddb"
277 fi
278
279 # DVD support
280 # dvdread and libdvdcss are internal libs
281 # http://www.mplayerhq.hu/DOCS/HTML/en/dvd.html
282 # You can optionally use external dvdread support, but against
283 # upstream's suggestion. We don't.
284 if ! use dvd; then
285 myconf="${myconf} --disable-dvdnav --disable-dvdread"
286 use a52 || myconf="${myconf} --disable-liba52"
287 fi
288
289 if use encode; then
290 use aac || myconf="${myconf} --disable-faac"
291 use dv || myconf="${myconf} --disable-libdv"
292 use x264 || myconf="${myconf} --disable-x264"
293 else
294 myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264 \
295 --disable-faac"
296 fi
297
298 # SRT (subtitles) requires freetype support
299 # freetype support requires iconv
300 # iconv optionally can use unicode
301 if ! use srt; then
302 myconf="${myconf} --disable-ass"
303 if ! use truetype; then
304 myconf="${myconf} --disable-freetype"
305 if ! use iconv; then
306 myconf="${myconf} --disable-iconv --charset=noconv"
307 fi
308 fi
309 fi
310 use iconv && use unicode && myconf="${myconf} --charset=UTF-8"
311
312 use lirc || myconf="${myconf} --disable-lirc --disable-lircc"
313 myconf="${myconf} $(use_enable joystick)"
314 use ipv6 || myconf="${myconf} --disable-inet6"
315 use rar || myconf="${myconf} --disable-unrarexec"
316 use rtc || myconf="${myconf} --disable-rtc"
317 use samba || myconf="${myconf} --disable-smb"
318
319 # DVB / Video4Linux / Radio support
320 if { use dvb || use v4l || use v4l2 || use radio; }; then
321 use dvb || myconf="${myconf} --disable-dvb --disable-dvbhead"
322 use v4l || myconf="${myconf} --disable-tv-v4l1"
323 use v4l2 || myconf="${myconf} --disable-tv-v4l2"
324 use teletext || myconf="${myconf} --disable-tv-teletext"
325 if use radio && { use dvb || use v4l || use v4l2; }; then
326 myconf="${myconf} --enable-radio $(use_enable encode radio-capture)"
327 else
328 myconf="${myconf} --disable-radio-v4l2 --disable-radio-bsdbt848"
329 fi
330 else
331 myconf="${myconf} --disable-tv --disable-tv-v4l1 --disable-tv-v4l2 \
332 --disable-radio --disable-radio-v4l2 --disable-radio-bsdbt848 \
333 --disable-dvb --disable-dvbhead --disable-tv-teletext"
334 fi
335
336 #########
337 # Codecs #
338 ########
339 for x in gif jpeg live mad musepack pnm speex tga theora xanim xvid; do
340 use ${x} || myconf="${myconf} --disable-${x}"
341 done
342 use aac || myconf="${myconf} --disable-faad-internal"
343 use amrnb || myconf="${myconf} --disable-libamr_nb"
344 use amrwb || myconf="${myconf} --disable-libamr_wb"
345 use dts || myconf="${myconf} --disable-libdca"
346 ! use png && ! use gtk && myconf="${myconf} --disable-png"
347 use lzo || myconf="${myconf} --disable-liblzo"
348 use encode && use mp2 || myconf="${myconf} --disable-twolame \
349 --disable-toolame"
350 use mp3 || myconf="${myconf} --disable-mp3lib"
351 use vorbis || myconf="${myconf} --disable-libvorbis"
352 use xanim && myconf="${myconf} --xanimcodecsdir=/usr/lib/xanim/mods"
353 if use x86 || use amd64; then
354 # Real codec support, only available on x86, amd64
355 if use real && use x86; then
356 myconf="${myconf} --realcodecsdir=/opt/RealPlayer/codecs"
357 elif use real && use amd64; then
358 myconf="${myconf} --realcodecsdir=/usr/$(get_libdir)/codecs"
359 else
360 myconf="${myconf} --disable-real"
361 fi
362 if ! use bindist && ! use real; then
363 myconf="${myconf} $(use_enable win32codecs win32dll)"
364 fi
365 fi
366 # bug 213836
367 if ! use x86 || ! use win32codecs; then
368 use quicktime || myconf="${myconf} --disable-qtx"
369 fi
370
371 #############
372 # Video Output #
373 #############
374 for x in directfb ggi md5sum sdl xinerama; do
375 use ${x} || myconf="${myconf} --disable-${x}"
376 done
377 use aalib || myconf="${myconf} --disable-aa"
378 use dga || myconf="${myconf} --disable-dga1 --disable-dga2"
379 use fbcon || myconf="${myconf} --disable-fbdev"
380 use fbcon && use video_cards_s3virge && myconf="${myconf} --enable-s3fb"
381 use libcaca || myconf="${myconf} --disable-caca"
382 use opengl || myconf="${myconf} --disable-gl"
383 use video_cards_vesa || myconf="${myconf} --disable-vesa"
384 use vidix || myconf="${myconf} --disable-vidix-internal \
385 --disable-vidix-external \
386 --disable-vidix-pcidb"
387 use zoran || myconf="${myconf} --disable-zr"
388
389 # GTK gmplayer gui
390 myconf="${myconf} $(use_enable gtk gui)"
391
392 if use xv; then
393 if use xvmc; then
394 myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCW"
395 else
396 myconf="${myconf} --disable-xvmc"
397 fi
398 else
399 myconf="${myconf} --disable-xv --disable-xvmc"
400 fi
401
402 if ! use kernel_linux && ! use video_cards_mga; then
403 myconf="${myconf} --disable-mga --disable-xmga"
404 fi
405
406 if use video_cards_tdfx; then
407 myconf="${myconf} $(use_enable video_cards_tdfx tdfxvid) \
408 $(use_enable fbcon tdfxfb)"
409 else
410 myconf="${myconf} --disable-3dfx --disable-tdfxvid --disable-tdfxfb"
411 fi
412
413 #############
414 # Audio Output #
415 #############
416 for x in alsa arts esd jack ladspa nas openal; do
417 use ${x} || myconf="${myconf} --disable-${x}"
418 done
419 use pulseaudio || myconf="${myconf} --disable-pulse"
420 if ! use radio; then
421 use oss || myconf="${myconf} --disable-ossaudio"
422 fi
423 #################
424 # Advanced Options #
425 #################
426 # Platform specific flags, hardcoded on amd64 (see below)
427 if use x86 || use amd64 || use ppc; then
428 if use cpudetection || use bindist; then
429 myconf="${myconf} --enable-runtime-cpudetection"
430 fi
431 fi
432 # Letting users turn off optimizations results in epic build fail
433 # across the board. MPlayer's build system by default will
434 # detect them and use them just fine, so don't let them change
435 # them unless they really know what they are doing anyway.
436 if use custom-cflags; then
437 if use mmx; then
438 for x in 3dnow 3dnowext mmxext sse sse2 ssse3; do
439 use ${x} || myconf="${myconf} --disable-${x}"
440 done
441 else
442 myconf="${myconf} --disable-mmx --disable-mmxext --disable-sse \
443 --disable-sse2 --disable-ssse3 --disable-3dnow \
444 --disable-3dnowext"
445 fi
446 fi
447
448 use debug && myconf="${myconf} --enable-debug=3"
449
450 myconf="${myconf} $(use_enable altivec)"
451
452 if use custom-cflags; then
453 # let's play the filtration game! MPlayer hates on all!
454 strip-flags
455 # ugly optimizations cause MPlayer to cry on x86 systems!
456 if use x86 || use x86-fbsd ; then
457 replace-flags -O* -O2
458 filter-flags -fPIC -fPIE
459
460 use debug || append-flags -fomit-frame-pointer
461 fi
462 append-flags -D__STDC_LIMIT_MACROS
463 else
464 unset CFLAGS CXXFLAGS
465 fi
466
467 myconf="--cc=$(tc-getCC) \
468 --host-cc=$(tc-getBUILD_CC) \
469 --prefix=/usr \
470 --confdir=/etc/mplayer \
471 --datadir=/usr/share/mplayer \
472 --libdir=/usr/$(get_libdir) \
473 --enable-menu \
474 --enable-network \
475 ${myconf}"
476 #echo "CFLAGS=\"${CFLAGS}\" ./configure ${myconf}"
477 CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died"
478
479 emake || die "Failed to build MPlayer!"
480 use doc && make -C DOCS/xml html-chunked
481 }
482
483 src_install() {
484
485 make prefix="${D}/usr" \
486 BINDIR="${D}/usr/bin" \
487 LIBDIR="${D}/usr/$(get_libdir)" \
488 CONFDIR="${D}/etc/mplayer" \
489 DATADIR="${D}/usr/share/mplayer" \
490 MANDIR="${D}/usr/share/man" \
491 install || die "Failed to install MPlayer!"
492
493 dodoc AUTHORS Changelog README
494 # Install the documentation; DOCS is all mixed up not just html
495 if use doc ; then
496 find "${S}/DOCS" -type d | xargs -- chmod 0755
497 find "${S}/DOCS" -type f | xargs -- chmod 0644
498 cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die "cp docs died"
499 fi
500
501 # Copy misc tools to documentation path, as they're not installed directly
502 # and yes, we are nuking the +x bit.
503 find "${S}/TOOLS" -type d | xargs -- chmod 0755
504 find "${S}/TOOLS" -type f | xargs -- chmod 0644
505 cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die "cp docs died"
506
507 # Install the default Skin and Gnome menu entry
508 if use gtk; then
509 dodir /usr/share/mplayer/skins
510 cp -r "${WORKDIR}/Blue" \
511 "${D}/usr/share/mplayer/skins/default" || die "cp skins died"
512
513 # Fix the symlink
514 rm -rf "${D}/usr/bin/gmplayer"
515 dosym mplayer /usr/bin/gmplayer
516 fi
517
518 if ! use srt && ! use truetype; then
519 dodir /usr/share/mplayer/fonts
520 local x=
521 # Do this generic, as the mplayer people like to change the structure
522 # of their zips ...
523 for x in $(find "${WORKDIR}/" -type d -name 'font-arial-*')
524 do
525 cp -pPR "${x}" "${D}/usr/share/mplayer/fonts"
526 done
527 # Fix the font symlink ...
528 rm -rf "${D}/usr/share/mplayer/font"
529 dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
530 fi
531
532 insinto /etc/mplayer
533 newins "${S}/etc/example.conf" mplayer.conf
534
535 if use srt || use truetype; then
536 cat >> "${D}/etc/mplayer/mplayer.conf" << EOT
537 fontconfig=1
538 subfont-osd-scale=4
539 subfont-text-scale=3
540 EOT
541 fi
542
543 dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
544
545 dobin "${D}/usr/share/doc/${PF}/TOOLS/midentify"
546
547 insinto /usr/share/mplayer
548 doins "${S}/etc/input.conf"
549 doins "${S}/etc/menu.conf"
550 }
551
552 pkg_preinst() {
553
554 if [[ -d ${ROOT}/usr/share/mplayer/Skin/default ]]
555 then
556 rm -rf "${ROOT}/usr/share/mplayer/Skin/default"
557 fi
558 }
559
560 pkg_postrm() {
561
562 # Cleanup stale symlinks
563 if [ -L "${ROOT}/usr/share/mplayer/font" -a \
564 ! -e "${ROOT}/usr/share/mplayer/font" ]
565 then
566 rm -f "${ROOT}/usr/share/mplayer/font"
567 fi
568
569 if [ -L "${ROOT}/usr/share/mplayer/subfont.ttf" -a \
570 ! -e "${ROOT}/usr/share/mplayer/subfont.ttf" ]
571 then
572 rm -f "${ROOT}/usr/share/mplayer/subfont.ttf"
573 fi
574 }
575
576
577
578 --
579 gentoo-commits@l.g.o mailing list