/[gentoo-x86]/eclass/chromium.eclass
Gentoo

Diff of /eclass/chromium.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.7
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/chromium.eclass,v 1.2 2012/03/14 19:15:44 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/chromium.eclass,v 1.7 2012/09/11 08:15:08 phajdan.jr Exp $
4 4
5# @ECLASS: chromium.eclass 5# @ECLASS: chromium.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Chromium Herd <chromium@gentoo.org> 7# Chromium Herd <chromium@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
11 11
12inherit eutils fdo-mime gnome2-utils linux-info 12inherit eutils fdo-mime gnome2-utils linux-info
13 13
14EXPORT_FUNCTIONS pkg_preinst pkg_postinst pkg_postrm 14EXPORT_FUNCTIONS pkg_preinst pkg_postinst pkg_postrm
15 15
16if [[ ${PN} == chromium ]]; then
17 IUSE+=" custom-cflags"
18fi
19
16# @FUNCTION: chromium_check_kernel_config 20# @FUNCTION: chromium_suid_sandbox_check_kernel_config
17# @USAGE: 21# @USAGE:
18# @DESCRIPTION: 22# @DESCRIPTION:
19# Ensures the system kernel is configured for full Chromium functionality. 23# Ensures the system kernel supports features needed for SUID sandbox to work.
20chromium_check_kernel_config() { 24chromium_suid_sandbox_check_kernel_config() {
21 has "${EAPI:-0}" 0 1 2 3 && die "EAPI=${EAPI} is not supported" 25 has "${EAPI:-0}" 0 1 2 3 && die "EAPI=${EAPI} is not supported"
22 26
23 if [[ "${MERGE_TYPE}" == "source" || "${MERGE_TYPE}" == "binary" ]]; then 27 if [[ "${MERGE_TYPE}" == "source" || "${MERGE_TYPE}" == "binary" ]]; then
24 # Warn if the kernel does not support features needed for sandboxing. 28 # Warn if the kernel does not support features needed for sandboxing.
25 # Bug #363987. 29 # Bug #363987.
106 if ! has ${lang} ${CHROMIUM_LANGS}; then 110 if ! has ${lang} ${CHROMIUM_LANGS}; then
107 eqawarn "LINGUAS warning: no ${lang} in LANGS" 111 eqawarn "LINGUAS warning: no ${lang} in LANGS"
108 continue 112 continue
109 fi 113 fi
110 if ! use linguas_${lang}; then 114 if ! use linguas_${lang}; then
111 rm -v "$(_chromium_crlang ${lang}).pak" || die 115 rm "$(_chromium_crlang ${lang}).pak" || die
112 fi 116 fi
113 done 117 done
114} 118}
115 119
116chromium_pkg_preinst() { 120chromium_pkg_preinst() {
120chromium_pkg_postinst() { 124chromium_pkg_postinst() {
121 fdo-mime_desktop_database_update 125 fdo-mime_desktop_database_update
122 gnome2_icon_cache_update 126 gnome2_icon_cache_update
123 127
124 # For more info see bug #292201, bug #352263, bug #361859. 128 # For more info see bug #292201, bug #352263, bug #361859.
129 if ! has_version x11-themes/gnome-icon-theme &&
130 ! has_version x11-themes/oxygen-icons ; then
125 elog 131 elog
126 elog "Depending on your desktop environment, you may need" 132 elog "Depending on your desktop environment, you may need"
127 elog "to install additional packages to get icons on the Downloads page." 133 elog "to install additional packages to get icons on the Downloads page."
128 elog 134 elog
129 elog "For KDE, the required package is kde-base/oxygen-icons." 135 elog "For KDE, the required package is kde-base/oxygen-icons."
130 elog 136 elog
131 elog "For other desktop environments, try one of the following:" 137 elog "For other desktop environments, try one of the following:"
132 elog " - x11-themes/gnome-icon-theme" 138 elog " - x11-themes/gnome-icon-theme"
133 elog " - x11-themes/tango-icon-theme" 139 elog " - x11-themes/tango-icon-theme"
140 fi
134 141
135 # For more info see bug #359153. 142 # For more info see bug #359153.
136 elog 143 elog
137 elog "Some web pages may require additional fonts to display properly." 144 elog "Some web pages may require additional fonts to display properly."
138 elog "Try installing some of the following packages if some characters" 145 elog "Try installing some of the following packages if some characters"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20