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

Diff of /eclass/chromium.eclass

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

Revision 1.1 Revision 1.3
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.1 2012/03/14 15:54:24 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/chromium.eclass,v 1.3 2012/03/23 19:53:51 floppym 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:
10# @BLURB: Shared functions for chromium and google-chrome 10# @BLURB: Shared functions for chromium and google-chrome
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
16if [[ ${PN} == chromium ]]; then
17 IUSE+=" custom-cflags"
18fi
15 19
16# @FUNCTION: chromium_check_kernel_config 20# @FUNCTION: chromium_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 is configured for full Chromium functionality.
159 # Prevent user problems like bug #348235. 163 # Prevent user problems like bug #348235.
160 eshopts_push -s extglob 164 eshopts_push -s extglob
161 if is-flagq '-g?(gdb)?([1-9])'; then 165 if is-flagq '-g?(gdb)?([1-9])'; then
162 ewarn 166 ewarn
163 ewarn "You have enabled debug info (i.e. -g or -ggdb in your CFLAGS/CXXFLAGS)." 167 ewarn "You have enabled debug info (i.e. -g or -ggdb in your CFLAGS/CXXFLAGS)."
168 ewarn "This produces very large build files causes the linker to consume large"
169 ewarn "amounts of memory."
170 ewarn
164 ewarn "Please try removing -g{,gdb} before reporting a bug." 171 ewarn "Please try removing -g{,gdb} before reporting a bug."
165 ewarn 172 ewarn
166 fi 173 fi
167 eshopts_pop 174 eshopts_pop
168 175

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20