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