Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium: chromium-16.0.912.59.ebuild ChangeLog chromium-16.0.912.36.ebuild
Date: Fri, 02 Dec 2011 12:02:28
Message-Id: 20111202120218.4F5822004B@flycatcher.gentoo.org
1 floppym 11/12/02 12:02:17
2
3 Modified: ChangeLog
4 Added: chromium-16.0.912.59.ebuild
5 Removed: chromium-16.0.912.36.ebuild
6 Log:
7 Version bump for beta channel release.
8
9 (Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.514 www-client/chromium/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.514&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.514&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.513&r2=1.514
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
21 retrieving revision 1.513
22 retrieving revision 1.514
23 diff -u -r1.513 -r1.514
24 --- ChangeLog 2 Dec 2011 07:47:14 -0000 1.513
25 +++ ChangeLog 2 Dec 2011 12:02:17 -0000 1.514
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-client/chromium
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.513 2011/12/02 07:47:14 phajdan.jr Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.514 2011/12/02 12:02:17 floppym Exp $
31 +
32 +*chromium-16.0.912.59 (02 Dec 2011)
33 +
34 + 02 Dec 2011; Mike Gilbert <floppym@g.o> +chromium-16.0.912.59.ebuild,
35 + -chromium-16.0.912.36.ebuild:
36 + Version bump for beta channel release.
37
38 02 Dec 2011; Pawel Hajdan jr <phajdan.jr@g.o> chromium-9999-r1.ebuild:
39 Update nacl-toolchain-newlib dependency to fix bug #392389 by Julien Sanchez.
40
41
42
43 1.1 www-client/chromium/chromium-16.0.912.59.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-16.0.912.59.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-16.0.912.59.ebuild?rev=1.1&content-type=text/plain
47
48 Index: chromium-16.0.912.59.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-16.0.912.59.ebuild,v 1.1 2011/12/02 12:02:17 floppym Exp $
53
54 EAPI="4"
55 PYTHON_DEPEND="2:2.6"
56
57 inherit eutils fdo-mime flag-o-matic gnome2-utils linux-info multilib \
58 pax-utils portability python toolchain-funcs versionator virtualx
59
60 DESCRIPTION="Open-source version of Google Chrome web browser"
61 HOMEPAGE="http://chromium.org/"
62 SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio"
68
69 # en_US is ommitted on purpose from the list below. It must always be available.
70 LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
71 hu id it ja kn ko lt lv ml mr nb nl pl pt_BR pt_PT ro ru sk sl sr sv sw ta te th
72 tr uk vi zh_CN zh_TW"
73 for lang in ${LANGS}; do
74 IUSE+=" linguas_${lang}"
75 done
76
77 RDEPEND="app-arch/bzip2
78 cups? (
79 dev-libs/libgcrypt
80 >=net-print/cups-1.3.11
81 )
82 >=dev-lang/v8-3.6.5.1
83 dev-libs/dbus-glib
84 dev-libs/elfutils
85 >=dev-libs/icu-4.4.1
86 >=dev-libs/libevent-1.4.13
87 dev-libs/libxml2[icu]
88 dev-libs/libxslt
89 >=dev-libs/nss-3.12.3
90 gnome? ( >=gnome-base/gconf-2.24.0 )
91 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
92 >=media-libs/alsa-lib-1.0.19
93 media-libs/flac
94 virtual/jpeg
95 media-libs/libpng
96 >=media-libs/libwebp-0.1.2
97 media-libs/speex
98 pulseaudio? ( media-sound/pulseaudio )
99 sys-libs/zlib
100 x11-libs/gtk+:2
101 x11-libs/libXinerama
102 x11-libs/libXScrnSaver
103 x11-libs/libXtst
104 kerberos? ( virtual/krb5 )"
105 DEPEND="${RDEPEND}
106 dev-lang/nacl-toolchain-newlib
107 dev-lang/perl
108 dev-python/simplejson
109 >=dev-util/gperf-3.0.3
110 >=dev-util/pkgconfig-0.23
111 >=sys-devel/bison-2.4.3
112 sys-devel/flex
113 >=sys-devel/make-3.81-r2
114 test? ( dev-python/pyftpdlib )"
115 RDEPEND+="
116 !=www-client/chromium-9999
117 x11-misc/xdg-utils
118 virtual/ttf-fonts"
119
120 gyp_use() {
121 if [[ $# -lt 2 ]]; then
122 echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
123 return 1
124 fi
125 if use "$1"; then echo "-D$2=1"; else echo "-D$2=0"; fi
126 }
127
128 egyp() {
129 set -- build/gyp_chromium --depth=. "${@}"
130 echo "${@}" >&2
131 "${@}"
132 }
133
134 # Chromium uses different names for some langs,
135 # return Chromium name corresponding to a Gentoo lang.
136 chromium_lang() {
137 if [[ "$1" == "es_LA" ]]; then
138 echo "es_419"
139 else
140 echo "$1"
141 fi
142 }
143
144 get_bundled_v8_version() {
145 "$(PYTHON -2)" "${FILESDIR}"/extract_v8_version.py v8/src/version.cc
146 }
147
148 get_installed_v8_version() {
149 best_version dev-lang/v8 | sed -e 's@dev-lang/v8-@@g'
150 }
151
152 if ! has chromium-pkg_die ${EBUILD_DEATH_HOOKS}; then
153 EBUILD_DEATH_HOOKS+=" chromium-pkg_die";
154 fi
155
156 chromium-pkg_die() {
157 if [[ "${EBUILD_PHASE}" != "compile" ]]; then
158 return
159 fi
160
161 # Prevent user problems like bug #348235.
162 eshopts_push -s extglob
163 if is-flagq '-g?(gdb)?([1-9])'; then
164 ewarn
165 ewarn "You have enabled debug info (i.e. -g or -ggdb in your CFLAGS/CXXFLAGS)."
166 ewarn "Please try removing -g{,gdb} before reporting a bug."
167 ewarn
168 fi
169 eshopts_pop
170
171 # ccache often causes bogus compile failures, especially when the cache gets
172 # corrupted.
173 if has ccache ${FEATURES}; then
174 ewarn
175 ewarn "You have enabled ccache. Please try disabling ccache"
176 ewarn "before reporting a bug."
177 ewarn
178 fi
179
180 # If the system doesn't have enough memory, the compilation is known to
181 # fail. Print info about memory to recognize this condition.
182 einfo
183 einfo "$(grep MemTotal /proc/meminfo)"
184 einfo "$(grep SwapTotal /proc/meminfo)"
185 einfo
186 }
187
188 pkg_setup() {
189 if [[ "${SLOT}" == "0" ]]; then
190 CHROMIUM_SUFFIX=""
191 else
192 CHROMIUM_SUFFIX="-${SLOT}"
193 fi
194 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
195
196 # Make sure the build system will use the right tools, bug #340795.
197 tc-export AR CC CXX RANLIB
198
199 # Make sure the build system will use the right python, bug #344367.
200 python_set_active_version 2
201 python_pkg_setup
202
203 if [[ "${MERGE_TYPE}" == "source" || "${MERGE_TYPE}" == "binary" ]]; then
204 # Fail if the kernel doesn't support features needed for sandboxing,
205 # bug #363907.
206 ERROR_PID_NS="PID_NS is required for sandbox to work"
207 ERROR_NET_NS="NET_NS is required for sandbox to work"
208 CONFIG_CHECK="~PID_NS ~NET_NS"
209 check_extra_config
210 fi
211
212 if use bindist; then
213 elog "bindist enabled: H.264 video support will be disabled."
214 else
215 elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
216 fi
217 }
218
219 src_prepare() {
220 ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
221 native_client/toolchain/linux_x86_newlib || die
222
223 # zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
224 sed -i '1i#define OF(x) x' \
225 third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.c \
226 chrome/common/zip.cc || die
227
228 epatch "${FILESDIR}/${PN}-cups-r0.patch"
229
230 epatch_user
231
232 # Remove most bundled libraries. Some are still needed.
233 find third_party -type f \! -iname '*.gyp*' \
234 \! -path 'third_party/WebKit/*' \
235 \! -path 'third_party/angle/*' \
236 \! -path 'third_party/cacheinvalidation/*' \
237 \! -path 'third_party/cld/*' \
238 \! -path 'third_party/expat/*' \
239 \! -path 'third_party/ffmpeg/*' \
240 \! -path 'third_party/flac/flac.h' \
241 \! -path 'third_party/gpsd/*' \
242 \! -path 'third_party/harfbuzz/*' \
243 \! -path 'third_party/hunspell/*' \
244 \! -path 'third_party/iccjpeg/*' \
245 \! -path 'third_party/launchpad_translations/*' \
246 \! -path 'third_party/leveldb/*' \
247 \! -path 'third_party/leveldatabase/*' \
248 \! -path 'third_party/libjingle/*' \
249 \! -path 'third_party/libphonenumber/*' \
250 \! -path 'third_party/libvpx/*' \
251 \! -path 'third_party/lss/*' \
252 \! -path 'third_party/mesa/*' \
253 \! -path 'third_party/modp_b64/*' \
254 \! -path 'third_party/mongoose/*' \
255 \! -path 'third_party/npapi/*' \
256 \! -path 'third_party/openmax/*' \
257 \! -path 'third_party/ots/*' \
258 \! -path 'third_party/protobuf/*' \
259 \! -path 'third_party/scons-2.0.1/*' \
260 \! -path 'third_party/sfntly/*' \
261 \! -path 'third_party/skia/*' \
262 \! -path 'third_party/smhasher/*' \
263 \! -path 'third_party/speex/speex.h' \
264 \! -path 'third_party/sqlite/*' \
265 \! -path 'third_party/tcmalloc/*' \
266 \! -path 'third_party/tlslite/*' \
267 \! -path 'third_party/undoview/*' \
268 \! -path 'third_party/v8-i18n/*' \
269 \! -path 'third_party/webdriver/*' \
270 \! -path 'third_party/webgl_conformance/*' \
271 \! -path 'third_party/webrtc/*' \
272 \! -path 'third_party/yasm/*' \
273 \! -path 'third_party/zlib/contrib/minizip/*' \
274 -delete || die
275
276 local v8_bundled="$(get_bundled_v8_version)"
277 local v8_installed="$(get_installed_v8_version)"
278 elog "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}"
279
280 # Remove bundled v8.
281 find v8 -type f \! -iname '*.gyp*' -delete || die
282
283 # The implementation files include v8 headers with full path,
284 # like #include "v8/include/v8.h". Make sure the system headers
285 # will be used.
286 # TODO: find a solution that can be upstreamed.
287 rmdir v8/include || die
288 ln -s /usr/include v8/include || die
289
290 # Make sure the build system will use the right python, bug #344367.
291 # Only convert directories that need it, to save time.
292 python_convert_shebangs -q -r 2 build tools
293 }
294
295 src_configure() {
296 local myconf=""
297
298 # Never tell the build system to "enable" SSE2, it has a few unexpected
299 # additions, bug #336871.
300 myconf+=" -Ddisable_sse2=1"
301
302 # Use system-provided libraries.
303 # TODO: use_system_ffmpeg
304 # TODO: use_system_hunspell (upstream changes needed).
305 # TODO: use_system_ssl (http://crbug.com/58087).
306 # TODO: use_system_sqlite (http://crbug.com/22208).
307 # TODO: use_system_vpx
308 myconf+="
309 -Duse_system_bzip2=1
310 -Duse_system_flac=1
311 -Duse_system_icu=1
312 -Duse_system_libevent=1
313 -Duse_system_libjpeg=1
314 -Duse_system_libpng=1
315 -Duse_system_libwebp=1
316 -Duse_system_libxml=1
317 -Duse_system_speex=1
318 -Duse_system_v8=1
319 -Duse_system_xdg_utils=1
320 -Duse_system_zlib=1"
321
322 # Optional dependencies.
323 # TODO: linux_link_kerberos, bug #381289.
324 myconf+="
325 $(gyp_use cups use_cups)
326 $(gyp_use gnome use_gconf)
327 $(gyp_use gnome-keyring use_gnome_keyring)
328 $(gyp_use gnome-keyring linux_link_gnome_keyring)
329 $(gyp_use kerberos use_kerberos)
330 $(gyp_use pulseaudio use_pulseaudio)"
331
332 # Enable sandbox.
333 myconf+="
334 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
335 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
336
337 # if host-is-pax; then
338 # # Prevent the build from failing (bug #301880). The performance
339 # # difference is very small.
340 # myconf+=" -Dv8_use_snapshot=0"
341 # fi
342
343 # Our system ffmpeg should support more codecs than the bundled one
344 # for Chromium.
345 # myconf+=" -Dproprietary_codecs=1"
346
347 if ! use bindist; then
348 # Enable H.624 support in bundled ffmpeg.
349 myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome"
350 fi
351
352 local myarch="$(tc-arch)"
353 if [[ $myarch = amd64 ]] ; then
354 myconf+=" -Dtarget_arch=x64"
355 elif [[ $myarch = x86 ]] ; then
356 myconf+=" -Dtarget_arch=ia32"
357 elif [[ $myarch = arm ]] ; then
358 # TODO: check this again after
359 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
360 append-flags -fno-tree-sink
361
362 myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
363 else
364 die "Failed to determine target arch, got '$myarch'."
365 fi
366
367 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
368 # Depending on GCC version the warnings are different and we don't want
369 # the build to fail because of that.
370 myconf+=" -Dwerror="
371
372 # Avoid CFLAGS problems, bug #352457, bug #390147.
373 replace-flags "-Os" "-O2"
374 strip-flags
375
376 egyp ${myconf} || die
377 }
378
379 src_compile() {
380 emake chrome chrome_sandbox chromedriver BUILDTYPE=Release V=1 || die
381 pax-mark m out/Release/chrome
382 if use test; then
383 emake {base,crypto,googleurl,net}_unittests BUILDTYPE=Release V=1 || die
384 pax-mark m out/Release/{base,crypto,googleurl,net}_unittests
385 fi
386 }
387
388 src_test() {
389 # For more info see bug #350349.
390 local mylocale='en_US.utf8'
391 if ! locale -a | grep -q "$mylocale"; then
392 eerror "${PN} requires ${mylocale} locale for tests"
393 eerror "Please read the following guides for more information:"
394 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
395 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
396 die "locale ${mylocale} is not supported"
397 fi
398
399 # For more info see bug #370957.
400 if [[ $UID -eq 0 ]]; then
401 die "Tests must be run as non-root. Please use FEATURES=userpriv."
402 fi
403
404 # For more info see bug #350347.
405 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \
406 '--gtest_filter=-ICUStringConversionsTest.*'
407
408 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/crypto_unittests virtualmake
409 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/googleurl_unittests virtualmake
410
411 # NetUtilTest: bug #361885.
412 # NetUtilTest.GenerateFileName: some locale-related mismatch.
413 # UDP: unstable, active development. We should revisit this later.
414 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/net_unittests virtualmake \
415 '--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:NetUtilTest.GenerateFileName:*UDP*'
416 }
417
418 src_install() {
419 exeinto "${CHROMIUM_HOME}"
420 doexe out/Release/chrome || die
421 doexe out/Release/chrome_sandbox || die
422 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
423
424 doexe out/Release/chromedriver || die
425
426 # Install Native Client files on platforms that support it.
427 insinto "${CHROMIUM_HOME}"
428 case "$(tc-arch)" in
429 amd64)
430 doexe out/Release/nacl_helper{,_bootstrap} || die
431 doins out/Release/nacl_irt_x86_64.nexe || die
432 doins out/Release/libppGoogleNaClPluginChrome.so || die
433 ;;
434 x86)
435 doexe out/Release/nacl_helper{,_bootstrap} || die
436 doins out/Release/nacl_irt_x86_32.nexe || die
437 doins out/Release/libppGoogleNaClPluginChrome.so || die
438 ;;
439 esac
440
441 newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
442 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
443 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
444 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
445 sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \
446 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
447 sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \
448 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
449 fi
450
451 # It is important that we name the target "chromium-browser",
452 # xdg-utils expect it; bug #355517.
453 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
454 # keep the old symlink around for consistency
455 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
456
457 # Allow users to override command-line options, bug #357629.
458 dodir /etc/chromium || die
459 insinto /etc/chromium
460 newins "${FILESDIR}/chromium.default" "default" || die
461
462 # Support LINGUAS, bug #332751.
463 local pak
464 for pak in out/Release/locales/*.pak; do
465 local pakbasename="$(basename ${pak})"
466 local pakname="${pakbasename%.pak}"
467 local langname="${pakname//-/_}"
468
469 # Do not issue warning for en_US locale. This is the fallback
470 # locale so it should always be installed.
471 if [[ "${langname}" == "en_US" ]]; then
472 continue
473 fi
474
475 local found=false
476 local lang
477 for lang in ${LANGS}; do
478 local crlang="$(chromium_lang ${lang})"
479 if [[ "${langname}" == "${crlang}" ]]; then
480 found=true
481 break
482 fi
483 done
484 if ! $found; then
485 ewarn "LINGUAS warning: no ${langname} in LANGS"
486 fi
487 done
488 local lang
489 for lang in ${LANGS}; do
490 local crlang="$(chromium_lang ${lang})"
491 local pakfile="out/Release/locales/${crlang//_/-}.pak"
492 if [ ! -f "${pakfile}" ]; then
493 ewarn "LINGUAS warning: no .pak file for ${lang} (${pakfile} not found)"
494 fi
495 if ! use linguas_${lang}; then
496 rm "${pakfile}" || die
497 fi
498 done
499
500 insinto "${CHROMIUM_HOME}"
501 doins out/Release/chrome.pak || die
502 doins out/Release/resources.pak || die
503
504 doins -r out/Release/locales || die
505 doins -r out/Release/resources || die
506
507 newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
508 newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
509
510 # Chromium looks for these in its folder
511 # See media_posix.cc and base_paths_linux.cc
512 # dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die
513 # dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die
514 # dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die
515 doexe out/Release/libffmpegsumo.so || die
516
517 # Install icons and desktop entry.
518 for SIZE in 16 22 24 32 48 64 128 256 ; do
519 insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps
520 newins chrome/app/theme/chromium/product_logo_${SIZE}.png \
521 chromium-browser${CHROMIUM_SUFFIX}.png || die
522 done
523 local mime_types="text/html;text/xml;application/xhtml+xml;"
524 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
525 make_desktop_entry \
526 chromium-browser${CHROMIUM_SUFFIX} \
527 "Chromium${CHROMIUM_SUFFIX}" \
528 chromium-browser${CHROMIUM_SUFFIX} \
529 "Network;WebBrowser" \
530 "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
531 sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
532
533 # Install GNOME default application entry (bug #303100).
534 if use gnome; then
535 dodir /usr/share/gnome-control-center/default-apps || die
536 insinto /usr/share/gnome-control-center/default-apps
537 newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
538 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
539 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
540 "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
541 fi
542 fi
543 }
544
545 pkg_preinst() {
546 gnome2_icon_savelist
547 }
548
549 pkg_postinst() {
550 fdo-mime_desktop_database_update
551 gnome2_icon_cache_update
552
553 # For more info see bug #292201, bug #352263, bug #361859.
554 elog
555 elog "Depending on your desktop environment, you may need"
556 elog "to install additional packages to get icons on the Downloads page."
557 elog
558 elog "For KDE, the required package is kde-base/oxygen-icons."
559 elog
560 elog "For other desktop environments, try one of the following:"
561 elog " - x11-themes/gnome-icon-theme"
562 elog " - x11-themes/tango-icon-theme"
563
564 # For more info see bug #359153.
565 elog
566 elog "Some web pages may require additional fonts to display properly."
567 elog "Try installing some of the following packages if some characters"
568 elog "are not displayed properly:"
569 elog " - media-fonts/arphicfonts"
570 elog " - media-fonts/bitstream-cyberbit"
571 elog " - media-fonts/droid"
572 elog " - media-fonts/ipamonafont"
573 elog " - media-fonts/ja-ipafonts"
574 elog " - media-fonts/takao-fonts"
575 elog " - media-fonts/wqy-microhei"
576 elog " - media-fonts/wqy-zenhei"
577 }
578
579 pkg_postrm() {
580 gnome2_icon_cache_update
581 }