Mike Gilbert avatar Mike Gilbert committed b03e0f8

Remove v8 and chromium.

Comments (0)

Files changed (33)

dev-lang/v8/Manifest

-DIST v8-3.12.19.13.tar.bz2 10183672 SHA256 838f4521650486a8fc26ed24ab1c0b6210688f62e2365cfde3a8ac96f97da9e1 SHA512 05517982372b262d78e4ae4b5ce9baf4468d560e0e340820dc3e46ffb186da7b380848bb067bc29386275be8101e48655831c42c853160290dd5d92fbc2e9e12 WHIRLPOOL 4368b39061ff37c7085692482fc086d0d640803f2e5df4b2b4e71e477e5547fab41a7699b85b87c1bccee69d401163eb321dcd4a37cad49084a6ea25cd2111ac
-DIST v8-3.13.7.2.tar.bz2 10202585 SHA256 ff5761dcd52c4479237e39e6e20fcfcc511764ece69109541a9b461c6a5dad5a SHA512 987e06f34d2f45ece40a3fd6957a827cb971adc44c52380b4cf9086f075885c4dcf42edb407c89b14652f4e824fb840ed8c21429230fe2d279d158b170fa0d96 WHIRLPOOL e38dd3f8f53cdfc86b4af88a47bce523ec045866d6a88c6e5f7b8caf9e5e8ab383a7428091c3048e92687df89a1718bce9fc72997ae23e503db68192b2676b9c

dev-lang/v8/files/v8-3.10.8.10-darwin-arch.patch

-https://bugs.gentoo.org/show_bug.cgi?id=417401
-
-The Prefix toolchain on OSX doesn't support -arch, even though using
-gcc-apple.  This is not really a problem (FSF GCC doesn't understand
-this flag either), because we never build FAT objects.  It is however a
-problem when people forcibly add -arch to CFLAGS and LDFLAGS.  Leave it
-to the toolchain such that we can also build 64-bits.  (Pro!)
-
-Request for removing this when unnecessary:
-http://code.google.com/p/gyp/issues/detail?id=260
-
---- build/gyp/pylib/gyp/xcode_emulation.py
-+++ build/gyp/pylib/gyp/xcode_emulation.py
-@@ -317,7 +317,6 @@
-       # TODO: Supporting fat binaries will be annoying.
-       self._WarnUnimplemented('ARCHS')
-       archs = ['i386']
--    cflags.append('-arch ' + archs[0])
- 
-     if archs[0] in ('i386', 'x86_64'):
-       if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
-@@ -435,7 +434,6 @@
-       # TODO: Supporting fat binaries will be annoying.
-       self._WarnUnimplemented('ARCHS')
-       archs = ['i386']
--    ldflags.append('-arch ' + archs[0])
- 
-     # Xcode adds the product directory by default.
-     ldflags.append('-L' + product_dir)

dev-lang/v8/files/v8-3.10.8.10-freebsd9.patch

-diff --git a/build/gyp/pylib/gyp/common.py b/build/gyp/pylib/gyp/common.py
-index fb11029..a33efd0 100644
---- a/build/gyp/pylib/gyp/common.py
-+++ b/build/gyp/pylib/gyp/common.py
-@@ -355,6 +355,7 @@ def GetFlavor(params):
-     'sunos5': 'solaris',
-     'freebsd7': 'freebsd',
-     'freebsd8': 'freebsd',
-+    'freebsd9': 'freebsd',
-   }
-   flavor = flavors.get(sys.platform, 'linux')
-   return params.get('flavor', flavor)

dev-lang/v8/files/v8-makefile-hardfp-r0.patch

-Index: Makefile
-===================================================================
---- Makefile	(revision 12403)
-+++ Makefile	(working copy)
-@@ -99,6 +99,10 @@
- ifeq ($(regexp), interpreted)
-   GYPFLAGS += -Dv8_interpreted_regexp=1
- endif
-+# hardfp=on
-+ifeq ($(hardfp), on)
-+  GYPFLAGS += -Dv8_use_arm_eabi_hardfloat=true
-+endif
- 
- # ----------------- available targets: --------------------
- # - "dependencies": pulls in external dependencies (currently: GYP)

dev-lang/v8/metadata.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>chromium</herd>
-</pkgmetadata>

dev-lang/v8/v8-3.12.19.13.ebuild

-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-PYTHON_DEPEND="2:2.6"
-
-inherit eutils multilib pax-utils python toolchain-funcs versionator
-
-DESCRIPTION="Google's open source JavaScript engine"
-HOMEPAGE="http://code.google.com/p/v8"
-SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
-LICENSE="BSD"
-
-soname_version="$(get_version_component_range 1-3)"
-SLOT="0/${soname_version}"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
-IUSE=""
-
-pkg_setup() {
-	python_set_active_version 2
-	python_pkg_setup
-}
-
-src_prepare() {
-	epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
-}
-
-src_compile() {
-	tc-export AR CC CXX RANLIB
-	export LINK=${CXX}
-
-	# Use target arch detection logic from bug #354601.
-	case ${CHOST} in
-		i?86-*) myarch=ia32 ;;
-		x86_64-*)
-			if [[ $ABI = x86 ]] ; then
-				myarch=ia32
-			else
-				myarch=x64
-			fi ;;
-		arm*-*) myarch=arm ;;
-		*) die "Unrecognized CHOST: ${CHOST}"
-	esac
-	mytarget=${myarch}.release
-
-	local snapshot=on
-	host-is-pax && snapshot=off
-
-	# TODO: Add console=readline option once implemented upstream
-	# http://code.google.com/p/v8/issues/detail?id=1781
-
-	emake V=1 \
-		library=shared \
-		werror=no \
-		soname_version=${soname_version} \
-		snapshot=${snapshot} \
-		${mytarget} || die
-
-	pax-mark m out/${mytarget}/{cctest,d8,shell} || die
-}
-
-src_test() {
-	local arg testjobs
-	for arg in ${MAKEOPTS}; do
-		case ${arg} in
-			-j*) testjobs=${arg#-j} ;;
-			--jobs=*) testjobs=${arg#--jobs=} ;;
-		esac
-	done
-
-	tools/test-wrapper-gypbuild.py \
-		-j${testjobs:-1} \
-		--arch-and-mode=${mytarget} \
-		--no-presubmit \
-		--progress=dots || die
-}
-
-src_install() {
-	insinto /usr
-	doins -r include || die
-
-	if [[ ${CHOST} == *-darwin* ]] ; then
-		# buildsystem is too horrific to get this built correctly
-		mkdir -p out/${mytarget}/lib.target
-		mv out/${mytarget}/libv8.so.${soname_version} \
-			out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
-		install_name_tool \
-			-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
-			out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
-			|| die
-		install_name_tool \
-			-change \
-			"${S}"/out/${mytarget}/libv8.so.${soname_version} \
-			"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
-			out/${mytarget}/d8 || die
-	fi
-
-	dobin out/${mytarget}/d8 || die
-
-	dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
-	dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
-
-	dodoc AUTHORS ChangeLog || die
-}

dev-lang/v8/v8-3.13.7.2.ebuild

-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-PYTHON_DEPEND="2:2.6"
-
-inherit eutils multilib pax-utils python toolchain-funcs versionator
-
-DESCRIPTION="Google's open source JavaScript engine"
-HOMEPAGE="http://code.google.com/p/v8"
-SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
-LICENSE="BSD"
-
-soname_version="$(get_version_component_range 1-3)"
-SLOT="0/${soname_version}"
-KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
-IUSE=""
-
-pkg_setup() {
-	python_set_active_version 2
-	python_pkg_setup
-}
-
-src_prepare() {
-	epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
-}
-
-src_compile() {
-	tc-export AR CC CXX RANLIB
-	export LINK=${CXX}
-
-	local hardfp=off
-
-	# Use target arch detection logic from bug #354601.
-	case ${CHOST} in
-		i?86-*) myarch=ia32 ;;
-		x86_64-*)
-			if [[ $ABI = x86 ]] ; then
-				myarch=ia32
-			else
-				myarch=x64
-			fi ;;
-		arm*-hardfloat-*)
-			hardfp=on
-			myarch=arm ;;
-		arm*-*) myarch=arm ;;
-		*) die "Unrecognized CHOST: ${CHOST}"
-	esac
-	mytarget=${myarch}.release
-
-	local snapshot=on
-	host-is-pax && snapshot=off
-
-	# TODO: Add console=readline option once implemented upstream
-	# http://code.google.com/p/v8/issues/detail?id=1781
-
-	emake V=1 \
-		library=shared \
-		werror=no \
-		soname_version=${soname_version} \
-		snapshot=${snapshot} \
-		hardfp=${hardfp} \
-		${mytarget} || die
-
-	pax-mark m out/${mytarget}/{cctest,d8,shell} || die
-}
-
-src_test() {
-	local arg testjobs
-	for arg in ${MAKEOPTS}; do
-		case ${arg} in
-			-j*) testjobs=${arg#-j} ;;
-			--jobs=*) testjobs=${arg#--jobs=} ;;
-		esac
-	done
-
-	tools/test-wrapper-gypbuild.py \
-		-j${testjobs:-1} \
-		--arch-and-mode=${mytarget} \
-		--no-presubmit \
-		--progress=dots || die
-}
-
-src_install() {
-	insinto /usr
-	doins -r include || die
-
-	if [[ ${CHOST} == *-darwin* ]] ; then
-		# buildsystem is too horrific to get this built correctly
-		mkdir -p out/${mytarget}/lib.target
-		mv out/${mytarget}/libv8.so.${soname_version} \
-			out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
-		install_name_tool \
-			-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
-			out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
-			|| die
-		install_name_tool \
-			-change \
-			"${S}"/out/${mytarget}/libv8.so.${soname_version} \
-			"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
-			out/${mytarget}/d8 || die
-	fi
-
-	dobin out/${mytarget}/d8 || die
-
-	dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
-	dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
-
-	dodoc AUTHORS ChangeLog || die
-}

www-client/chromium/Manifest

-DIST chromium-24.0.1284.2.tar.bz2 217993014 SHA256 7dfaa01849e9dbe82062e1c67e518a31b09d6ededcb1dfacf03c9c362cc9e352 SHA512 54a88f304dec8de32613b917520f570a57d10ba337e374d7c545d1c30a40e17284cdfb1f43d6a38251deaba2f9ce85f217dd1206ba729035f96c4d51fd56e5e1 WHIRLPOOL 94635af0c2ef6d766ad148d98660f87a270184ff8ef0c4dca863251b2a53c3ce543ad55d0623f8b4dc71ca3ddab049dfc2891a6d0966620ea44bd4ad6f78b16c

www-client/chromium/chromium-24.0.1284.2.ebuild

-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-24.0.1284.2.ebuild,v 1.2 2012/10/03 16:16:22 phajdan.jr Exp $
-
-EAPI="5"
-PYTHON_DEPEND="2:2.6"
-
-CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
-	hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr
-	sv sw ta te th tr uk vi zh_CN zh_TW"
-
-inherit chromium eutils flag-o-matic multilib \
-	pax-utils portability python toolchain-funcs versionator virtualx
-
-DESCRIPTION="Open-source version of Google Chrome web browser"
-HOMEPAGE="http://chromium.org/"
-SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux tcmalloc"
-
-RDEPEND="app-arch/bzip2
-	cups? (
-		dev-libs/libgcrypt
-		>=net-print/cups-1.3.11
-	)
-	>=dev-lang/v8-3.11.10.6:=
-	>=dev-libs/elfutils-0.149
-	dev-libs/expat
-	>=dev-libs/icu-49.1.1-r1
-	>=dev-libs/libevent-1.4.13
-	dev-libs/libxml2[icu]
-	dev-libs/libxslt
-	>=dev-libs/nss-3.12.3
-	gnome? ( >=gnome-base/gconf-2.24.0 )
-	gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
-	>=media-libs/alsa-lib-1.0.19
-	media-libs/flac
-	>=media-libs/libjpeg-turbo-1.2.0-r1
-	media-libs/libpng
-	>=media-libs/libwebp-0.2.0_rc1
-	media-libs/speex
-	pulseaudio? ( media-sound/pulseaudio )
-	sys-apps/dbus
-	sys-fs/udev
-	virtual/libusb:1
-	x11-libs/gtk+:2
-	x11-libs/libXinerama
-	x11-libs/libXScrnSaver
-	x11-libs/libXtst
-	kerberos? ( virtual/krb5 )
-	selinux? ( sys-libs/libselinux )"
-DEPEND="${RDEPEND}
-	dev-lang/perl
-	dev-lang/yasm
-	dev-python/ply
-	dev-python/simplejson
-	>=dev-util/gperf-3.0.3
-	>=sys-devel/bison-2.4.3
-	sys-devel/flex
-	>=sys-devel/make-3.81-r2
-	virtual/pkgconfig
-	test? ( dev-python/pyftpdlib )"
-RDEPEND+="
-	!=www-client/chromium-9999
-	x11-misc/xdg-utils
-	virtual/ttf-fonts"
-
-if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
-	EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
-fi
-
-pkg_setup() {
-	if [[ "${SLOT}" == "0" ]]; then
-		CHROMIUM_SUFFIX=""
-	else
-		CHROMIUM_SUFFIX="-${SLOT}"
-	fi
-	CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
-
-	# Make sure the build system will use the right tools, bug #340795.
-	tc-export AR CC CXX RANLIB
-
-	# Make sure the build system will use the right python, bug #344367.
-	python_set_active_version 2
-	python_pkg_setup
-
-	if ! use selinux; then
-		chromium_suid_sandbox_check_kernel_config
-	fi
-
-	if use bindist; then
-		elog "bindist enabled: H.264 video support will be disabled."
-	else
-		elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
-	fi
-}
-
-src_prepare() {
-	# if ! use arm; then
-	#	ebegin "Preparing NaCl newlib toolchain"
-	#	pushd "${T}" >/dev/null || die
-	#	mkdir sdk || die
-	#	cp -a /usr/$(get_libdir)/nacl-toolchain-newlib sdk/nacl-sdk || die
-	#	mkdir -p "${S}"/native_client/toolchain/.tars || die
-	#	tar czf "${S}"/native_client/toolchain/.tars/naclsdk_linux_x86.tgz sdk || die
-	#	popd >/dev/null || die
-	#	eend $?
-	# fi
-
-	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
-	# sed -i '1i#define OF(x) x' \
-	#	third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.h || die
-
-	# Fix build without NaCl glibc toolchain.
-	# epatch "${FILESDIR}/${PN}-ppapi-r0.patch"
-
-	# Fix build with system speex, bug #432748.
-	epatch "${FILESDIR}/${PN}-system-speex-r0.patch"
-
-	# Missing gyp files in tarball.
-	# https://code.google.com/p/chromium/issues/detail?id=144823
-	# if [[ -e chrome/test/data/nacl/nacl_test_data.gyp ]]; then
-	#	die "tarball fixed, please remove workaround"
-	# fi
-
-	# mkdir -p chrome/test/data/nacl
-	# cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF
-	# {
-	#   'targets': [
-	#     {
-	#       'target_name': 'nacl_tests',
-	#       'type': 'none',
-	#     },
-	#   ],
-	# }
-	# EOF
-
-	epatch_user
-
-	# Remove most bundled libraries. Some are still needed.
-	find third_party -type f \! -iname '*.gyp*' \
-		\! -path 'third_party/WebKit/*' \
-		\! -path 'third_party/angle/*' \
-		\! -path 'third_party/cacheinvalidation/*' \
-		\! -path 'third_party/cld/*' \
-		\! -path 'third_party/ffmpeg/*' \
-		\! -path 'third_party/flac/flac.h' \
-		\! -path 'third_party/flot/*' \
-		\! -path 'third_party/gpsd/*' \
-		\! -path 'third_party/harfbuzz/*' \
-		\! -path 'third_party/hunspell/*' \
-		\! -path 'third_party/hyphen/*' \
-		\! -path 'third_party/iccjpeg/*' \
-		\! -path 'third_party/jsoncpp/*' \
-		\! -path 'third_party/khronos/*' \
-		\! -path 'third_party/launchpad_translations/*' \
-		\! -path 'third_party/leveldatabase/*' \
-		\! -path 'third_party/libjingle/*' \
-		\! -path 'third_party/libphonenumber/*' \
-		\! -path 'third_party/libsrtp/*' \
-		\! -path 'third_party/libusb/libusb.h' \
-		\! -path 'third_party/libva/*' \
-		\! -path 'third_party/libvpx/*' \
-		\! -path 'third_party/libxml/chromium/*' \
-		\! -path 'third_party/libXNVCtrl/*' \
-		\! -path 'third_party/libyuv/*' \
-		\! -path 'third_party/lss/*' \
-		\! -path 'third_party/mesa/*' \
-		\! -path 'third_party/modp_b64/*' \
-		\! -path 'third_party/mongoose/*' \
-		\! -path 'third_party/mt19937ar/*' \
-		\! -path 'third_party/npapi/*' \
-		\! -path 'third_party/openmax/*' \
-		\! -path 'third_party/ots/*' \
-		\! -path 'third_party/protobuf/*' \
-		\! -path 'third_party/qcms/*' \
-		\! -path 'third_party/re2/*' \
-		\! -path 'third_party/scons-2.0.1/*' \
-		\! -path 'third_party/sfntly/*' \
-		\! -path 'third_party/skia/*' \
-		\! -path 'third_party/smhasher/*' \
-		\! -path 'third_party/speex/speex.h' \
-		\! -path 'third_party/sqlite/*' \
-		\! -path 'third_party/tcmalloc/*' \
-		\! -path 'third_party/tlslite/*' \
-		\! -path 'third_party/trace-viewer/*' \
-		\! -path 'third_party/undoview/*' \
-		\! -path 'third_party/v8-i18n/*' \
-		\! -path 'third_party/webdriver/*' \
-		\! -path 'third_party/webgl_conformance/*' \
-		\! -path 'third_party/webrtc/*' \
-		\! -path 'third_party/zlib/*' \
-		-delete || die
-
-	local v8_bundled="$(chromium_bundled_v8_version)"
-	local v8_installed="$(chromium_installed_v8_version)"
-	einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}"
-
-	# Remove bundled v8.
-	find v8 -type f \! -iname '*.gyp*' -delete || die
-
-	# The implementation files include v8 headers with full path,
-	# like #include "v8/include/v8.h". Make sure the system headers
-	# will be used.
-	# TODO: find a solution that can be upstreamed.
-	rmdir v8/include || die
-	ln -s /usr/include v8/include || die
-
-	# Make sure the build system will use the right python, bug #344367.
-	# Only convert directories that need it, to save time.
-	python_convert_shebangs -q -r 2 build tools
-}
-
-src_configure() {
-	local myconf=""
-
-	# Never tell the build system to "enable" SSE2, it has a few unexpected
-	# additions, bug #336871.
-	myconf+=" -Ddisable_sse2=1"
-
-	# Optional tcmalloc. Note it causes problems with e.g. NVIDIA
-	# drivers, bug #413637.
-	myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)"
-
-	# TODO: build with NaCl (pnacl is sort of required).
-	myconf+=" -Ddisable_nacl=1"
-
-	# Disable glibc Native Client toolchain, we don't need it (bug #417019).
-	# myconf+=" -Ddisable_glibc=1"
-
-	# TODO: also build with pnacl
-	# myconf+=" -Ddisable_pnacl=1
-	#	-Dbuild_pnacl_newlib=0"
-
-	# Make it possible to remove third_party/adobe.
-	echo > "${T}/flapper_version.h" || die
-	myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
-
-	# Use system-provided libraries.
-	# TODO: use_system_ffmpeg
-	# TODO: use_system_hunspell (upstream changes needed).
-	# TODO: use_system_speex (needs additional shims, bug #432748).
-	# TODO: use_system_ssl (http://crbug.com/58087).
-	# TODO: use_system_sqlite (http://crbug.com/22208).
-	# TODO: use_system_vpx
-	# TODO: use_system_zlib (forked, bug #432746).
-	myconf+="
-		-Duse_system_bzip2=1
-		-Duse_system_flac=1
-		-Duse_system_icu=1
-		-Duse_system_libevent=1
-		-Duse_system_libjpeg=1
-		-Duse_system_libpng=1
-		-Duse_system_libusb=1
-		-Duse_system_libwebp=1
-		-Duse_system_libxml=1
-		-Duse_system_speex=1
-		-Duse_system_v8=1
-		-Duse_system_xdg_utils=1
-		-Duse_system_yasm=1
-		-Duse_system_zlib=0"
-
-	# Optional dependencies.
-	# TODO: linux_link_kerberos, bug #381289.
-	myconf+="
-		$(gyp_use cups)
-		$(gyp_use gnome use_gconf)
-		$(gyp_use gnome-keyring use_gnome_keyring)
-		$(gyp_use gnome-keyring linux_link_gnome_keyring)
-		$(gyp_use kerberos)
-		$(gyp_use pulseaudio)
-		$(gyp_use selinux selinux)"
-
-	# Use explicit library dependencies instead of dlopen.
-	# This makes breakages easier to detect by revdep-rebuild.
-	myconf+="
-		-Dlinux_link_gsettings=1"
-
-	if ! use selinux; then
-		# Enable SUID sandbox.
-		myconf+="
-			-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
-			-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
-	fi
-
-	# Never use bundled gold binary. Disable gold linker flags for now.
-	myconf+="
-		-Dlinux_use_gold_binary=0
-		-Dlinux_use_gold_flags=0"
-
-	if ! use bindist; then
-		# Enable H.624 support in bundled ffmpeg.
-		myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome"
-	fi
-
-	local myarch="$(tc-arch)"
-	if [[ $myarch = amd64 ]] ; then
-		myconf+=" -Dtarget_arch=x64"
-	elif [[ $myarch = x86 ]] ; then
-		myconf+=" -Dtarget_arch=ia32"
-	elif [[ $myarch = arm ]] ; then
-		# TODO: re-enable NaCl (NativeClient).
-		myconf+=" -Dtarget_arch=arm
-			-Darm_neon=0
-			-Ddisable_nacl=1"
-	else
-		die "Failed to determine target arch, got '$myarch'."
-	fi
-
-	# Make sure that -Werror doesn't get added to CFLAGS by the build system.
-	# Depending on GCC version the warnings are different and we don't want
-	# the build to fail because of that.
-	myconf+=" -Dwerror="
-
-	# Avoid CFLAGS problems, bug #352457, bug #390147.
-	if ! use custom-cflags; then
-		replace-flags "-Os" "-O2"
-		strip-flags
-	fi
-
-	egyp_chromium ${myconf} || die
-}
-
-src_compile() {
-	local test_targets
-	for x in base cacheinvalidation crypto \
-		googleurl gpu media net printing sql; do
-		test_targets+=" ${x}_unittests"
-	done
-
-	local make_targets="chrome chromedriver"
-	if ! use selinux; then
-		make_targets+=" chrome_sandbox"
-	fi
-	if use test; then
-		make_targets+=$test_targets
-	fi
-
-	# See bug #410883 for more info about the .host mess.
-	emake ${make_targets} BUILDTYPE=Release V=1 \
-		CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \
-		CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \
-		LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \
-		AR.host="$(tc-getAR)" || die
-
-	pax-mark m out/Release/chrome
-	if use test; then
-		for x in $test_targets; do
-			pax-mark m out/Release/${x}
-		done
-	fi
-}
-
-src_test() {
-	# For more info see bug #350349.
-	local mylocale='en_US.utf8'
-	if ! locale -a | grep -q "$mylocale"; then
-		eerror "${PN} requires ${mylocale} locale for tests"
-		eerror "Please read the following guides for more information:"
-		eerror "  http://www.gentoo.org/doc/en/guide-localization.xml"
-		eerror "  http://www.gentoo.org/doc/en/utf-8.xml"
-		die "locale ${mylocale} is not supported"
-	fi
-
-	# For more info see bug #370957.
-	if [[ $UID -eq 0 ]]; then
-		die "Tests must be run as non-root. Please use FEATURES=userpriv."
-	fi
-
-	runtest() {
-		local cmd=$1
-		shift
-		local filter="--gtest_filter=$(IFS=:; echo "-${*}")"
-		einfo "${cmd}" "${filter}"
-		LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}"
-	}
-
-	local excluded_base_unittests=(
-		"ICUStringConversionsTest.*" # bug #350347
-		"MessagePumpLibeventTest.*" # bug #398591
-	)
-	runtest out/Release/base_unittests "${excluded_base_unittests[@]}"
-
-	runtest out/Release/cacheinvalidation_unittests
-	runtest out/Release/crypto_unittests
-	runtest out/Release/googleurl_unittests
-	runtest out/Release/gpu_unittests
-	runtest out/Release/media_unittests
-
-	local excluded_net_unittests=(
-		"NetUtilTest.IDNToUnicode*" # bug 361885
-		"NetUtilTest.FormatUrl*" # see above
-		"DnsConfigServiceTest.GetSystemConfig" # bug #394883
-		"CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269
-		"URLFetcher*" # bug #425764
-		"HTTPSOCSPTest.*" # bug #426630
-		"HTTPSEVCRLSetTest.*" # see above
-		"HTTPSCRLSetTest.*" # see above
-	)
-	runtest out/Release/net_unittests "${excluded_net_unittests[@]}"
-
-	runtest out/Release/printing_unittests
-	runtest out/Release/sql_unittests
-}
-
-src_install() {
-	exeinto "${CHROMIUM_HOME}"
-	doexe out/Release/chrome || die
-
-	if ! use selinux; then
-		doexe out/Release/chrome_sandbox || die
-		fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
-	fi
-
-	doexe out/Release/chromedriver || die
-
-	# if ! use arm; then
-	#	doexe out/Release/nacl_helper{,_bootstrap} || die
-	#	insinto "${CHROMIUM_HOME}"
-	#	doins out/Release/nacl_irt_*.nexe || die
-	#	doins out/Release/libppGoogleNaClPluginChrome.so || die
-	# fi
-
-	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
-	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
-		sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
-			-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
-		sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \
-			-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
-		sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \
-			-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
-	fi
-
-	# It is important that we name the target "chromium-browser",
-	# xdg-utils expect it; bug #355517.
-	dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
-	# keep the old symlink around for consistency
-	dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
-
-	# Allow users to override command-line options, bug #357629.
-	dodir /etc/chromium || die
-	insinto /etc/chromium
-	newins "${FILESDIR}/chromium.default" "default" || die
-
-	pushd out/Release/locales > /dev/null || die
-	chromium_remove_language_paks
-	popd
-
-	insinto "${CHROMIUM_HOME}"
-	doins out/Release/*.pak || die
-
-	doins -r out/Release/locales || die
-	doins -r out/Release/resources || die
-
-	newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
-	newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
-
-	doexe out/Release/libffmpegsumo.so || die
-
-	# Install icons and desktop entry.
-	local branding size
-	for size in 16 22 24 32 48 64 128 256 ; do
-		case ${size} in
-			16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
-				*) branding="chrome/app/theme/chromium" ;;
-		esac
-		newicon -s ${size} "${branding}/product_logo_${size}.png" \
-			chromium-browser${CHROMIUM_SUFFIX}.png
-	done
-
-	local mime_types="text/html;text/xml;application/xhtml+xml;"
-	mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
-	mime_types+="x-scheme-handler/ftp;" # bug #412185
-	mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
-	make_desktop_entry \
-		chromium-browser${CHROMIUM_SUFFIX} \
-		"Chromium${CHROMIUM_SUFFIX}" \
-		chromium-browser${CHROMIUM_SUFFIX} \
-		"Network;WebBrowser" \
-		"MimeType=${mime_types}\nStartupWMClass=chromium-browser"
-	sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
-
-	# Install GNOME default application entry (bug #303100).
-	if use gnome; then
-		dodir /usr/share/gnome-control-center/default-apps || die
-		insinto /usr/share/gnome-control-center/default-apps
-		newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
-		if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
-			sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
-				"${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
-		fi
-	fi
-}

www-client/chromium/files/chromium-alignment-r0.patch

-Index: third_party/WebKit/Source/WebCore/platform/audio/AudioArray.h
-===================================================================
---- third_party/WebKit/Source/WebCore/platform/audio/AudioArray.h	(revision 105431)
-+++ third_party/WebKit/Source/WebCore/platform/audio/AudioArray.h	(revision 118455)
-@@ -61,6 +61,9 @@
-         unsigned initialSize = sizeof(T) * n;
- 
--        // 16-byte alignment for 128bit SIMD.
-+#if USE(WEBAUDIO_FFMPEG)
-+        const size_t alignment = 32;
-+#else
-         const size_t alignment = 16;
-+#endif
- 
-         if (m_allocation)

www-client/chromium/files/chromium-bison-2.6-r0.patch

-Build fix with newer bison 2.6.
-http://trac.webkit.org/changeset/124099
-https://bugs.gentoo.org/show_bug.cgi?id=427438
---- third_party/WebKit/Source/WebCore/css/CSSParser.cpp
-+++ third_party/WebKit/Source/WebCore/css/CSSParser.cpp
-@@ -114,7 +114,7 @@
- extern int cssyydebug;
- #endif
- 
--extern int cssyyparse(void* parser);
-+extern int cssyyparse(WebCore::CSSParser*);
- 
- using namespace std;
- using namespace WTF;
---- third_party/WebKit/Source/WebCore/css/CSSGrammar.y
-+++ third_party/WebKit/Source/WebCore/css/CSSGrammar.y
-@@ -53,14 +53,13 @@
- #define YYMAXDEPTH 10000
- #define YYDEBUG 0
- 
--// FIXME: Replace with %parse-param { CSSParser* parser } once we can depend on bison 2.x
--#define YYPARSE_PARAM parser
--#define YYLEX_PARAM parser
--
- %}
- 
- %pure_parser
- 
-+%parse-param { CSSParser* parser }
-+%lex-param { CSSParser* parser }
-+
- %union {
-     bool boolean;
-     char character;
-@@ -89,7 +88,7 @@
- 
- %{
- 
--static inline int cssyyerror(const char*)
-+static inline int cssyyerror(void*, const char*)
- {
-     return 1;
- }
---- third_party/WebKit/Source/WebCore/xml/XPathParser.cpp
-+++ third_party/WebKit/Source/WebCore/xml/XPathParser.cpp
-@@ -32,24 +32,21 @@
- #include "XPathEvaluator.h"
- #include "XPathException.h"
- #include "XPathNSResolver.h"
-+#include "XPathPath.h"
- #include "XPathStep.h"
- #include <wtf/StdLibExtras.h>
- #include <wtf/text/StringHash.h>
- 
--int xpathyyparse(void*);
--
-+using namespace WebCore;
- using namespace WTF;
- using namespace Unicode;
-+using namespace XPath;
- 
--namespace WebCore {
--namespace XPath {
-+extern int xpathyyparse(WebCore::XPath::Parser*);
-+#include "XPathGrammar.h"
- 
--class LocationPath;
-+Parser* Parser::currentParser = 0;
- 
--#include "XPathGrammar.h"    
--
--Parser* Parser::currentParser = 0;
--    
- enum XMLCat { NameStart, NameCont, NotPartOfName };
- 
- typedef HashMap<String, Step::Axis> AxisNamesMap;
-@@ -630,5 +627,3 @@
-     delete t;
- }
- 
--}
--}
---- third_party/WebKit/Source/WebCore/xml/XPathGrammar.y
-+++ third_party/WebKit/Source/WebCore/xml/XPathGrammar.y
-@@ -34,6 +34,7 @@
- #include "XPathParser.h"
- #include "XPathPath.h"
- #include "XPathPredicate.h"
-+#include "XPathStep.h"
- #include "XPathVariableReference.h"
- #include <wtf/FastMalloc.h>
- 
-@@ -44,8 +45,6 @@
- #define YYLTYPE_IS_TRIVIAL 1
- #define YYDEBUG 0
- #define YYMAXDEPTH 10000
--#define YYPARSE_PARAM parserParameter
--#define PARSER static_cast<Parser*>(parserParameter)
- 
- using namespace WebCore;
- using namespace XPath;
-@@ -53,6 +52,7 @@
- %}
- 
- %pure_parser
-+%parse-param { WebCore::XPath::Parser* parser }
- 
- %union
- {
-@@ -71,7 +71,7 @@
- %{
- 
- static int xpathyylex(YYSTYPE* yylval) { return Parser::current()->lex(yylval); }
--static void xpathyyerror(const char*) { }
-+static void xpathyyerror(void*, const char*) { }
-     
- %}
- 
-@@ -118,7 +118,7 @@
- Expr:
-     OrExpr
-     {
--        PARSER->m_topExpr = $1;
-+        parser->m_topExpr = $1;
-     }
-     ;
- 
-@@ -138,7 +138,7 @@
-     '/'
-     {
-         $$ = new LocationPath;
--        PARSER->registerParseNode($$);
-+        parser->registerParseNode($$);
-     }
-     |
-     '/' RelativeLocationPath
-@@ -150,7 +150,7 @@
-     {
-         $$ = $2;
-         $$->insertFirstStep($1);
--        PARSER->unregisterParseNode($1);
-+        parser->unregisterParseNode($1);
-     }
-     ;
- 
-@@ -159,22 +159,22 @@
-     {
-         $$ = new LocationPath;
-         $$->appendStep($1);
--        PARSER->unregisterParseNode($1);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     RelativeLocationPath '/' Step
-     {
-         $$->appendStep($3);
--        PARSER->unregisterParseNode($3);
-+        parser->unregisterParseNode($3);
-     }
-     |
-     RelativeLocationPath DescendantOrSelf Step
-     {
-         $$->appendStep($2);
-         $$->appendStep($3);
--        PARSER->unregisterParseNode($2);
--        PARSER->unregisterParseNode($3);
-+        parser->unregisterParseNode($2);
-+        parser->unregisterParseNode($3);
-     }
-     ;
- 
-@@ -183,58 +183,58 @@
-     {
-         if ($2) {
-             $$ = new Step(Step::ChildAxis, *$1, *$2);
--            PARSER->deletePredicateVector($2);
-+            parser->deletePredicateVector($2);
-         } else
-             $$ = new Step(Step::ChildAxis, *$1);
--        PARSER->deleteNodeTest($1);
--        PARSER->registerParseNode($$);
-+        parser->deleteNodeTest($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     NAMETEST OptionalPredicateList
-     {
-         String localName;
-         String namespaceURI;
--        if (!PARSER->expandQName(*$1, localName, namespaceURI)) {
--            PARSER->m_gotNamespaceError = true;
-+        if (!parser->expandQName(*$1, localName, namespaceURI)) {
-+            parser->m_gotNamespaceError = true;
-             YYABORT;
-         }
-         
-         if ($2) {
-             $$ = new Step(Step::ChildAxis, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI), *$2);
--            PARSER->deletePredicateVector($2);
-+            parser->deletePredicateVector($2);
-         } else
-             $$ = new Step(Step::ChildAxis, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI));
--        PARSER->deleteString($1);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     AxisSpecifier NodeTest OptionalPredicateList
-     {
-         if ($3) {
-             $$ = new Step($1, *$2, *$3);
--            PARSER->deletePredicateVector($3);
-+            parser->deletePredicateVector($3);
-         } else
-             $$ = new Step($1, *$2);
--        PARSER->deleteNodeTest($2);
--        PARSER->registerParseNode($$);
-+        parser->deleteNodeTest($2);
-+        parser->registerParseNode($$);
-     }
-     |
-     AxisSpecifier NAMETEST OptionalPredicateList
-     {
-         String localName;
-         String namespaceURI;
--        if (!PARSER->expandQName(*$2, localName, namespaceURI)) {
--            PARSER->m_gotNamespaceError = true;
-+        if (!parser->expandQName(*$2, localName, namespaceURI)) {
-+            parser->m_gotNamespaceError = true;
-             YYABORT;
-         }
- 
-         if ($3) {
-             $$ = new Step($1, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI), *$3);
--            PARSER->deletePredicateVector($3);
-+            parser->deletePredicateVector($3);
-         } else
-             $$ = new Step($1, Step::NodeTest(Step::NodeTest::NameTest, localName, namespaceURI));
--        PARSER->deleteString($2);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($2);
-+        parser->registerParseNode($$);
-     }
-     |
-     AbbreviatedStep
-@@ -259,23 +259,23 @@
-         else if (*$1 == "comment")
-             $$ = new Step::NodeTest(Step::NodeTest::CommentNodeTest);
- 
--        PARSER->deleteString($1);
--        PARSER->registerNodeTest($$);
-+        parser->deleteString($1);
-+        parser->registerNodeTest($$);
-     }
-     |
-     PI '(' ')'
-     {
-         $$ = new Step::NodeTest(Step::NodeTest::ProcessingInstructionNodeTest);
--        PARSER->deleteString($1);        
--        PARSER->registerNodeTest($$);
-+        parser->deleteString($1);
-+        parser->registerNodeTest($$);
-     }
-     |
-     PI '(' LITERAL ')'
-     {
-         $$ = new Step::NodeTest(Step::NodeTest::ProcessingInstructionNodeTest, $3->stripWhiteSpace());
--        PARSER->deleteString($1);        
--        PARSER->deleteString($3);
--        PARSER->registerNodeTest($$);
-+        parser->deleteString($1);
-+        parser->deleteString($3);
-+        parser->registerNodeTest($$);
-     }
-     ;
- 
-@@ -293,14 +293,14 @@
-     {
-         $$ = new Vector<Predicate*>;
-         $$->append(new Predicate($1));
--        PARSER->unregisterParseNode($1);
--        PARSER->registerPredicateVector($$);
-+        parser->unregisterParseNode($1);
-+        parser->registerPredicateVector($$);
-     }
-     |
-     PredicateList Predicate
-     {
-         $$->append(new Predicate($2));
--        PARSER->unregisterParseNode($2);
-+        parser->unregisterParseNode($2);
-     }
-     ;
- 
-@@ -315,7 +315,7 @@
-     SLASHSLASH
-     {
-         $$ = new Step(Step::DescendantOrSelfAxis, Step::NodeTest(Step::NodeTest::AnyNodeTest));
--        PARSER->registerParseNode($$);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -323,13 +323,13 @@
-     '.'
-     {
-         $$ = new Step(Step::SelfAxis, Step::NodeTest(Step::NodeTest::AnyNodeTest));
--        PARSER->registerParseNode($$);
-+        parser->registerParseNode($$);
-     }
-     |
-     DOTDOT
-     {
-         $$ = new Step(Step::ParentAxis, Step::NodeTest(Step::NodeTest::AnyNodeTest));
--        PARSER->registerParseNode($$);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -337,8 +337,8 @@
-     VARIABLEREFERENCE
-     {
-         $$ = new VariableReference(*$1);
--        PARSER->deleteString($1);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     '(' Expr ')'
-@@ -349,15 +349,15 @@
-     LITERAL
-     {
-         $$ = new StringExpression(*$1);
--        PARSER->deleteString($1);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     NUMBER
-     {
-         $$ = new Number($1->toDouble());
--        PARSER->deleteString($1);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     FunctionCall
-@@ -369,8 +369,8 @@
-         $$ = createFunction(*$1);
-         if (!$$)
-             YYABORT;
--        PARSER->deleteString($1);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($1);
-+        parser->registerParseNode($$);
-     }
-     |
-     FUNCTIONNAME '(' ArgumentList ')'
-@@ -378,9 +378,9 @@
-         $$ = createFunction(*$1, *$3);
-         if (!$$)
-             YYABORT;
--        PARSER->deleteString($1);
--        PARSER->deleteExpressionVector($3);
--        PARSER->registerParseNode($$);
-+        parser->deleteString($1);
-+        parser->deleteExpressionVector($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -389,14 +389,14 @@
-     {
-         $$ = new Vector<Expression*>;
-         $$->append($1);
--        PARSER->unregisterParseNode($1);
--        PARSER->registerExpressionVector($$);
-+        parser->unregisterParseNode($1);
-+        parser->registerExpressionVector($$);
-     }
-     |
-     ArgumentList ',' Argument
-     {
-         $$->append($3);
--        PARSER->unregisterParseNode($3);
-+        parser->unregisterParseNode($3);
-     }
-     ;
- 
-@@ -412,9 +412,9 @@
-         $$ = new Union;
-         $$->addSubExpression($1);
-         $$->addSubExpression($3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -430,9 +430,9 @@
-     {
-         $3->setAbsolute(true);
-         $$ = new Path(static_cast<Filter*>($1), $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     |
-     FilterExpr DescendantOrSelf RelativeLocationPath
-@@ -440,10 +440,10 @@
-         $3->insertFirstStep($2);
-         $3->setAbsolute(true);
-         $$ = new Path(static_cast<Filter*>($1), $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($2);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($2);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -453,9 +453,9 @@
-     PrimaryExpr PredicateList
-     {
-         $$ = new Filter($1, *$2);
--        PARSER->unregisterParseNode($1);
--        PARSER->deletePredicateVector($2);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->deletePredicateVector($2);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -465,9 +465,9 @@
-     OrExpr OR AndExpr
-     {
-         $$ = new LogicalOp(LogicalOp::OP_Or, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -477,9 +477,9 @@
-     AndExpr AND EqualityExpr
-     {
-         $$ = new LogicalOp(LogicalOp::OP_And, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -489,9 +489,9 @@
-     EqualityExpr EQOP RelationalExpr
-     {
-         $$ = new EqTestOp($2, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -501,9 +501,9 @@
-     RelationalExpr RELOP AdditiveExpr
-     {
-         $$ = new EqTestOp($2, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -513,17 +513,17 @@
-     AdditiveExpr PLUS MultiplicativeExpr
-     {
-         $$ = new NumericOp(NumericOp::OP_Add, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     |
-     AdditiveExpr MINUS MultiplicativeExpr
-     {
-         $$ = new NumericOp(NumericOp::OP_Sub, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -533,9 +533,9 @@
-     MultiplicativeExpr MULOP UnaryExpr
-     {
-         $$ = new NumericOp($2, $1, $3);
--        PARSER->unregisterParseNode($1);
--        PARSER->unregisterParseNode($3);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($1);
-+        parser->unregisterParseNode($3);
-+        parser->registerParseNode($$);
-     }
-     ;
- 
-@@ -546,8 +546,8 @@
-     {
-         $$ = new Negative;
-         $$->addSubExpression($2);
--        PARSER->unregisterParseNode($2);
--        PARSER->registerParseNode($$);
-+        parser->unregisterParseNode($2);
-+        parser->registerParseNode($$);
-     }
-     ;
- 

www-client/chromium/files/chromium-browser.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
-<default-apps>
-  <web-browsers>
-    <web-browser>
-      <name>Chromium</name>
-      <executable>chromium-browser</executable>
-      <command>chromium-browser %s</command>
-      <icon-name>chromium-browser</icon-name>
-      <run-in-terminal>false</run-in-terminal>
-    </web-browser>
-  </web-browsers>
-</default-apps>

www-client/chromium/files/chromium-dbus-glib-r0.patch

-Index: build/linux/system.gyp
-===================================================================
---- build/linux/system.gyp	(revision 158796)
-+++ build/linux/system.gyp	(working copy)
-@@ -112,7 +112,28 @@
-           ],
-         },
-       ],  # targets
--    }]  # chromeos==0
-+    }, {  # chromeos==1
-+      'targets': [
-+        {
-+          # TODO(satorux): Remove this once dbus-glib clients are gone.
-+          'target_name': 'dbus-glib',
-+          'type': 'none',
-+          'direct_dependent_settings': {
-+            'cflags': [
-+              '<!@(<(pkg-config) --cflags dbus-glib-1)',
-+            ],
-+          },
-+          'link_settings': {
-+            'ldflags': [
-+              '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)',
-+            ],
-+            'libraries': [
-+              '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
-+            ],
-+          },
-+        },
-+      ],
-+    }]
-   ],  # conditions
-   'targets': [
-     {
-@@ -477,24 +498,6 @@
-       },
-     },
-     {
--      # TODO(satorux): Remove this once dbus-glib clients are gone.
--      'target_name': 'dbus-glib',
--      'type': 'none',
--      'direct_dependent_settings': {
--        'cflags': [
--          '<!@(<(pkg-config) --cflags dbus-glib-1)',
--        ],
--      },
--      'link_settings': {
--        'ldflags': [
--          '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)',
--        ],
--        'libraries': [
--          '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
--        ],
--      },
--    },
--    {
-       'target_name': 'glib',
-       'type': 'none',
-       'toolsets': ['host', 'target'],

www-client/chromium/files/chromium-expat-r0.patch

---- chrome/browser/autofill/autofill_xml_parser.h.orig	2012-06-03 16:45:24.000000000 +0200
-+++ chrome/browser/autofill/autofill_xml_parser.h	2012-06-03 16:45:33.000000000 +0200
-@@ -13,7 +13,6 @@
- #include "base/compiler_specific.h"
- #include "chrome/browser/autofill/field_types.h"
- #include "chrome/browser/autofill/form_structure.h"
--#include "third_party/expat/files/lib/expat.h"
- #include "third_party/libjingle/source/talk/xmllite/xmlparser.h"
- 
- // The base class that contains common functionality between

www-client/chromium/files/chromium-glib-r0.patch

-Index: l10n/l10n_util.cc
-===================================================================
-diff --git a/trunk/src/ui/base/l10n/l10n_util.cc b/trunk/src/ui/base/l10n/l10n_util.cc
---- a/trunk/src/ui/base/l10n/l10n_util.cc	(revision 115790)
-+++ b/trunk/src/ui/base/l10n/l10n_util.cc	(working copy)
-@@ -5,7 +5,7 @@
- #include "ui/base/l10n/l10n_util.h"
- 
- #if defined(USE_X11)
--#include <glib/gutils.h>
-+#include <glib.h>
- #endif
- 
- #include <algorithm>

www-client/chromium/files/chromium-gyp-settings-r0.patch

---- third_party/flac/flac.gyp.orig	2012-02-01 09:48:17.000000000 +0100
-+++ third_party/flac/flac.gyp	2012-02-01 09:51:21.000000000 +0100
-@@ -93,7 +93,7 @@
-       'targets': [
-         {
-           'target_name': 'libflac',
--          'type': 'settings',
-+          'type': 'none',
-           'direct_dependent_settings': {
-             'defines': [
-               'USE_SYSTEM_FLAC',

www-client/chromium/files/chromium-launcher-r2.sh

-#!/bin/bash
-
-# Allow the user to override command-line flags, bug #357629.
-# This is based on Debian's chromium-browser package, and is intended
-# to be consistent with Debian.
-if [ -f /etc/chromium/default ] ; then
-	. /etc/chromium/default
-fi
-
-# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
-# default CHROMIUM_FLAGS (from /etc/chromium/default).
-CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-"$CHROMIUM_FLAGS"}
-
-# Let the wrapped binary know that it has been run through the wrapper
-export CHROME_WRAPPER="`readlink -f "$0"`"
-
-PROGDIR="`dirname "$CHROME_WRAPPER"`"
-
-case ":$PATH:" in
-  *:$PROGDIR:*)
-    # $PATH already contains $PROGDIR
-    ;;
-  *)
-    # Append $PROGDIR to $PATH
-    export PATH="$PATH:$PROGDIR"
-    ;;
-esac
-
-# Set the .desktop file name
-export CHROME_DESKTOP="chromium-browser-chromium.desktop"
-
-exec -a "chromium-browser" "$PROGDIR/chrome" --extra-plugin-dir=/usr/lib/nsbrowser/plugins ${CHROMIUM_FLAGS} "$@"

www-client/chromium/files/chromium-libyuv-system-libjpeg-r0.patch

-https://webrtc-codereview.appspot.com/701006/
---- a/third_party/libyuv/libyuv.gyp
-+++ b/third_party/libyuv/libyuv.gyp
-@@ -7,12 +7,25 @@
- # be found in the AUTHORS file in the root of the source tree.
- 
- {
-+  'variables': {
-+    'use_system_libjpeg%': 0,
-+  },
-   'targets': [
-     {
-       'target_name': 'libyuv',
-       'type': 'static_library',
--      'dependencies': [
--         '<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
-+      'conditions': [
-+        ['use_system_libjpeg==0', {
-+          'dependencies': [
-+             '<(DEPTH)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
-+          ],
-+        }, {
-+          'link_settings': {
-+            'libraries': [
-+              '-ljpeg',
-+            ],
-+          },
-+        }],
-       ],
-       'defines': [
-         'HAVE_JPEG',

www-client/chromium/files/chromium-media-no-sse-r0.patch

---- media/media.gyp.orig	2012-02-02 10:03:41.000000000 +0100
-+++ media/media.gyp	2012-02-02 10:04:09.000000000 +0100
-@@ -467,14 +467,6 @@
-         [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
-           'cflags': [
-             '-msse2',
--            '-msse3',
--            '-mssse3',
--          ],
--        }],
--        [ 'OS == "openbsd"', {
--          # OpenBSD's gcc (4.2.1) does not support -mssse3
--          'cflags!': [
--            '-mssse3',
-           ],
-         }],
-         [ 'OS == "mac"', {

www-client/chromium/files/chromium-ppapi-r0.patch

---- ppapi/ppapi_untrusted.gyp.orig	2012-06-12 10:20:16.000000000 +0200
-+++ ppapi/ppapi_untrusted.gyp	2012-06-12 10:20:52.000000000 +0200
-@@ -80,7 +80,7 @@
-         ],
-       },
-       'conditions': [
--        ['target_arch!="arm"', {
-+        ['target_arch!="arm" and disable_glibc==0', {
-           'variables': {
-             'build_glibc': 1,
-             # NOTE: Use /lib, not /lib64 here; it is a symbolic link which

www-client/chromium/files/chromium-revert-jpeg-swizzle-r2.patch

-This reverts http://trac.webkit.org/changeset/101286
-to fix Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=393471
-
-Index: third_party/WebKit/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
-===================================================================
---- third_party/WebKit/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp	(revision 96970)
-+++ third_party/WebKit/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp	(revision 101286)
-@@ -67,24 +67,6 @@
- 
- #include <setjmp.h>
- 
--#if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)
--#define ASSUME_LITTLE_ENDIAN 0
--#else
--#define ASSUME_LITTLE_ENDIAN 1
--#endif
--
--#if defined(JCS_ALPHA_EXTENSIONS) && ASSUME_LITTLE_ENDIAN
--#define TURBO_JPEG_RGB_SWIZZLE
--#if USE(SKIA) && (!SK_R32_SHIFT && SK_G32_SHIFT == 8 && SK_B32_SHIFT == 16)
--inline J_COLOR_SPACE rgbOutputColorSpace() { return JCS_EXT_RGBA; }
--#else
--inline J_COLOR_SPACE rgbOutputColorSpace() { return JCS_EXT_BGRA; }
--#endif
--inline bool turboSwizzled(J_COLOR_SPACE colorSpace) { return colorSpace == rgbOutputColorSpace(); }
--#else
--inline J_COLOR_SPACE rgbOutputColorSpace() { return JCS_RGB; }
--#endif
--
- namespace WebCore {
- 
- struct decoder_error_mgr {
-@@ -270,7 +252,7 @@
-             case JCS_RGB:
-             case JCS_YCbCr:
-                 // libjpeg can convert GRAYSCALE and YCbCr image pixels to RGB.
--                m_info.out_color_space = rgbOutputColorSpace();
-+                m_info.out_color_space = JCS_RGB;
-                 break;
-             case JCS_CMYK:
-             case JCS_YCCK:
-@@ -525,19 +507,6 @@
-     }
- 
-     jpeg_decompress_struct* info = m_reader->info();
--
--#if !ENABLE(IMAGE_DECODER_DOWN_SAMPLING) && defined(TURBO_JPEG_RGB_SWIZZLE)
--    if (turboSwizzled(info->out_color_space)) {
--         ASSERT(!m_scaled);
--         while (info->output_scanline < info->output_height) {
--             unsigned char* row = reinterpret_cast<unsigned char*>(buffer.getAddr(0, info->output_scanline));
--             if (jpeg_read_scanlines(info, &row, 1) != 1)
--                  return false;
--         }
--         return true;
--     }
--#endif
--
-     JSAMPARRAY samples = m_reader->samples();
- 
-     while (info->output_scanline < info->output_height) {

www-client/chromium/files/chromium-selinux-r0.patch

---- content/browser/zygote_main_linux.cc.orig	2012-04-07 19:08:22.290236311 +0200
-+++ content/browser/zygote_main_linux.cc	2012-04-07 19:09:04.232233552 +0200
-@@ -807,7 +807,8 @@
- 
- static bool EnterSandbox() {
-   PreSandboxInit();
--  SkiaFontConfigUseIPCImplementation(kMagicSandboxIPCDescriptor);
-+  SkiaFontConfigSetImplementation(
-+      new FontConfigIPC(kMagicSandboxIPCDescriptor));
-   return true;
- }
- 

www-client/chromium/files/chromium-svnversion-r0.patch

---- third_party/webrtc/build/common.gypi.orig	2012-05-04 18:32:52.126703414 +0200
-+++ third_party/webrtc/build/common.gypi	2012-05-04 18:35:14.186709933 +0200
-@@ -98,7 +98,7 @@
-     'defines': [
-       # TODO(leozwang): Most of team use git-svn, need to add
-       # git-svn support as well.
--      'WEBRTC_SVNREVISION="<!(svnversion -n)"',
-+      'WEBRTC_SVNREVISION="<!(svnversion -n 2>/dev/null || echo -n 0)"',
-     ],
-     'conditions': [
-       ['build_with_chromium==1', {

www-client/chromium/files/chromium-system-icu-r0.patch

---- printing/backend/print_backend.cc.orig	2012-09-27 09:40:47.000000000 +0200
-+++ printing/backend/print_backend.cc	2012-09-27 09:41:26.000000000 +0200
-@@ -6,8 +6,8 @@
- 
- #include <algorithm>
- 
--#include "third_party/icu/public/common/unicode/uchar.h"
- #include "ui/base/text/text_elider.h"
-+#include "unicode/uchar.h"
- 
- namespace {
- 

www-client/chromium/files/chromium-system-speex-r0.patch

---- third_party/speex/speex.h.orig	2012-10-01 17:40:03.000000000 +0200
-+++ third_party/speex/speex.h	2012-10-01 17:41:30.000000000 +0200
-@@ -11,8 +11,12 @@
- 
- #if defined(USE_SYSTEM_SPEEX)
- #include <speex/speex.h>
-+#include <speex/speex_callbacks.h>
-+#include <speex/speex_stereo.h>
- #else
- #include "third_party/speex/include/speex/speex.h"
-+#include "third_party/speex/include/speex/speex_callbacks.h"
-+#include "third_party/speex/include/speex/speex_stereo.h"
- #endif
- 
- #endif  // THIRD_PARTY_SPEEX_SPEEX_H_
---- remoting/codec/audio_decoder_speex.cc.orig	2012-10-01 17:40:21.000000000 +0200
-+++ remoting/codec/audio_decoder_speex.cc	2012-10-01 17:40:44.000000000 +0200
-@@ -12,8 +12,6 @@
- #include "base/stl_util.h"
- #include "remoting/proto/audio.pb.h"
- #include "third_party/speex/speex.h"
--#include "third_party/speex/include/speex/speex_callbacks.h"
--#include "third_party/speex/include/speex/speex_stereo.h"
- 
- namespace remoting {
- 
---- remoting/codec/audio_encoder_speex.cc.orig	2012-10-01 17:56:56.000000000 +0200
-+++ remoting/codec/audio_encoder_speex.cc	2012-10-01 17:57:08.000000000 +0200
-@@ -12,7 +12,6 @@
- #include "base/stl_util.h"
- #include "remoting/proto/audio.pb.h"
- #include "third_party/speex/speex.h"
--#include "third_party/speex/include/speex/speex_stereo.h"
- 
- namespace {
- // A quality of 8 in wide band mode corresponds to 27,800 bits per second.

www-client/chromium/files/chromium-tcmalloc-r0.patch

---- chrome/renderer/chrome_render_process_observer.cc.orig	2012-05-16 11:13:01.000000000 +0200
-+++ chrome/renderer/chrome_render_process_observer.cc	2012-05-16 11:17:57.000000000 +0200
-@@ -35,7 +35,6 @@
- #include "net/base/net_errors.h"
- #include "net/base/net_module.h"
- #include "third_party/sqlite/sqlite3.h"
--#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebCrossOriginPreflightResultCache.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
-@@ -49,6 +48,10 @@
- #include "base/win/iat_patch_function.h"
- #endif
- 
-+#if defined(USE_TCMALLOC)
-+#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
-+#endif
-+
- using WebKit::WebCache;
- using WebKit::WebCrossOriginPreflightResultCache;
- using WebKit::WebFontCache;

www-client/chromium/files/chromium-tcmalloc-r1.patch

---- chrome/renderer/chrome_render_process_observer.cc.orig	2012-05-16 20:01:13.000000000 +0200
-+++ chrome/renderer/chrome_render_process_observer.cc	2012-05-16 20:01:41.000000000 +0200
-@@ -32,8 +32,6 @@
- #include "net/base/net_errors.h"
- #include "net/base/net_module.h"
- #include "third_party/sqlite/sqlite3.h"
--#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
--#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebCrossOriginPreflightResultCache.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
-@@ -47,6 +45,11 @@
- #include "base/win/iat_patch_function.h"
- #endif
- 
-+#if defined(USE_TCMALLOC)
-+#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h"
-+#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
-+#endif
-+
- using WebKit::WebCache;
- using WebKit::WebCrossOriginPreflightResultCache;
- using WebKit::WebFontCache;
---- content/renderer/render_thread_impl.cc.orig	2012-05-19 13:08:56.000000000 +0200
-+++ content/renderer/render_thread_impl.cc	2012-05-19 13:09:29.000000000 +0200
-@@ -63,7 +63,6 @@
- #include "media/base/media.h"
- #include "net/base/net_errors.h"
- #include "net/base/net_util.h"
--#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
- #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
-@@ -98,6 +97,10 @@
- #include "ipc/ipc_channel_posix.h"
- #endif
- 
-+#if defined(USE_TCMALLOC)
-+#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
-+#endif
-+
- using WebKit::WebDocument;
- using WebKit::WebFrame;
- using WebKit::WebNetworkStateNotifier;
---- chrome/browser/memory_purger.cc.orig	2012-05-19 16:02:27.000000000 +0200
-+++ chrome/browser/memory_purger.cc	2012-05-19 16:02:50.000000000 +0200
-@@ -22,7 +22,10 @@
- #include "net/proxy/proxy_service.h"
- #include "net/url_request/url_request_context.h"
- #include "net/url_request/url_request_context_getter.h"
-+
-+#if defined(USE_TCMALLOC)
- #include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
-+#endif
- 
- using content::BrowserContext;
- using content::BrowserThread;

www-client/chromium/files/chromium-unistd-r0.patch

-Index: base/message_pump_libevent.cc
-===================================================================
---- base/message_pump_libevent.cc	(revision 136854)
-+++ base/message_pump_libevent.cc	(working copy)
-@@ -6,6 +6,7 @@
- 
- #include <errno.h>
- #include <fcntl.h>
-+#include <unistd.h>
- 
- #include "base/auto_reset.h"
- #include "base/compiler_specific.h"

www-client/chromium/files/chromium-webkit-zlib-r0.patch

---- webkit/support/webkit_support_gfx.cc.orig	2012-02-01 11:00:50.000000000 +0100
-+++ webkit/support/webkit_support_gfx.cc	2012-02-01 11:04:21.000000000 +0100
-@@ -14,6 +14,12 @@
- #else
- #include "third_party/libpng/png.h"
- #endif
-+
-+#if defined(USE_SYSTEM_ZLIB)
-+#include <zlib.h>
-+#else
-+#include "third_party/zlib/zlib.h"
-+#endif
- }
- 
- namespace webkit_support {
---- webkit/support/webkit_support.gypi.orig	2012-02-01 11:05:23.000000000 +0100
-+++ webkit/support/webkit_support.gypi	2012-02-01 11:06:31.000000000 +0100
-@@ -140,6 +140,7 @@
-       'variables': { 'enable_wexit_time_destructors': 1, },
-       'dependencies': [
-         '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
-+        '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
-       ],
-       'sources': [
-         'webkit_support_gfx.h',
---- webkit/support/webkit_support.gypi.orig	2012-02-01 12:46:29.000000000 +0100
-+++ webkit/support/webkit_support.gypi	2012-02-01 12:47:09.000000000 +0100
-@@ -89,6 +89,7 @@
-         '<(DEPTH)/crypto/crypto.gyp:crypto',
-         '<(DEPTH)/net/net.gyp:net',
-         '<(DEPTH)/skia/skia.gyp:skia',
-+        '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
-         '<(DEPTH)/ui/ui.gyp:ui',
-         'glue',
-         'webkit_support_gfx',
---- webkit/tools/test_shell/simple_clipboard_impl.cc.orig	2012-02-01 14:02:32.000000000 +0100
-+++ webkit/tools/test_shell/simple_clipboard_impl.cc	2012-02-01 14:03:10.000000000 +0100
-@@ -11,7 +11,11 @@
- #include "base/string16.h"
- #include "googleurl/src/gurl.h"
- #include "third_party/skia/include/core/SkBitmap.h"
-+#if defined(USE_SYSTEM_ZLIB)
-+#include <zlib.h>
-+#else
- #include "third_party/zlib/zlib.h"
-+#endif
- #include "ui/base/clipboard/clipboard.h"
- #include "ui/gfx/codec/png_codec.h"
- #include "ui/gfx/size.h"

www-client/chromium/files/chromium-zlib-r0.patch

---- chrome/chrome_browser.gypi.orig	2012-05-22 16:38:09.000000000 +0200
-+++ chrome/chrome_browser.gypi	2012-05-22 16:39:56.000000000 +0200
-@@ -54,6 +54,7 @@
-         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
-         '../third_party/libxml/libxml.gyp:libxml',
-         '../third_party/npapi/npapi.gyp:npapi',
-+        '../third_party/zlib/zlib.gyp:zlib',
-         '../ui/base/strings/ui_strings.gyp:ui_strings',
-         '../ui/surface/surface.gyp:surface',
-         '../ui/ui.gyp:ui',

www-client/chromium/files/chromium.default

-# Default settings for chromium. This file is sourced by /bin/bash from
-# the chromium launcher.
-
-# Options to pass to chromium.
-CHROMIUM_FLAGS=""

www-client/chromium/files/dot-gclient

-solutions = [
-  { "name"        : "src",
-    "url"         : "http://src.chromium.org/svn/trunk/src",
-    "custom_deps" : {
-        "src/third_party/WebKit/LayoutTests": None,
-    },
-    "safesync_url": "http://chromium-status.appspot.com/lkgr",
-  },
-]

www-client/chromium/metadata.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<herd>chromium</herd>
-	<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription>
-</pkgmetadata>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.