Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 547630 | Differences between
and this patch

Collapse All | Expand All

(-)chromium-44.0.2403.30.ebuild (-3 / +34 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2015 Gentoo Foundation
1
# Copyright 1999-2015 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/www-client/chromium/chromium-44.0.2403.30.ebuild,v 1.1 2015/06/09 02:17:33 floppym Exp $
3
# $Header: $
4
4
5
EAPI="5"
5
EAPI="5"
6
PYTHON_COMPAT=( python2_7 )
6
PYTHON_COMPAT=( python2_7 )
Lines 19-25 SRC_URI="https://commondatastorage.googl Link Here
19
LICENSE="BSD"
19
LICENSE="BSD"
20
SLOT="0"
20
SLOT="0"
21
KEYWORDS="~amd64 ~arm ~x86"
21
KEYWORDS="~amd64 ~arm ~x86"
22
IUSE="cups gnome gnome-keyring hidpi kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc"
22
IUSE="cups gnome gnome-keyring hidpi kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc widevine"
23
RESTRICT="proprietary-codecs? ( bindist )"
23
RESTRICT="proprietary-codecs? ( bindist )"
24
24
25
# Native Client binaries are compiled with different set of flags, bug #452066.
25
# Native Client binaries are compiled with different set of flags, bug #452066.
Lines 91-97 DEPEND="${RDEPEND} Link Here
91
	sys-apps/hwids[usb(+)]
91
	sys-apps/hwids[usb(+)]
92
	>=sys-devel/bison-2.4.3
92
	>=sys-devel/bison-2.4.3
93
	sys-devel/flex
93
	sys-devel/flex
94
	virtual/pkgconfig"
94
	virtual/pkgconfig
95
	widevine? ( www-plugins/chrome-binary-plugins[widevine] )"
95
96
96
# For nvidia-drivers blocker, see bug #413637 .
97
# For nvidia-drivers blocker, see bug #413637 .
97
RDEPEND+="
98
RDEPEND+="
Lines 188-193 src_prepare() { Link Here
188
189
189
	epatch "${FILESDIR}/${PN}-system-jinja-r7.patch"
190
	epatch "${FILESDIR}/${PN}-system-jinja-r7.patch"
190
191
192
	if use widevine; then
193
		local WIDEVINE_VERSION="$(< "${ROOT}/usr/$(get_libdir)/chromium-browser/widevine.version")"
194
		[[ -z $WIDEVINE_VERSION ]] && die "Could not determine Widevine version."
195
		local sedscript='$i#include "third_party/widevine/cdm/widevine_cdm_common.h"\n'
196
		sedscript+='#define WIDEVINE_CDM_AVAILABLE\n'
197
		sedscript+="#define WIDEVINE_CDM_VERSION_STRING \"${WIDEVINE_VERSION}\"\\n"
198
		sed -e "${sedscript}" -i third_party/widevine/cdm/widevine_cdm_version.h || die
199
	fi
200
201
	# build widevine_cdm as appropriate (even though it's "unsupported")
202
	# but don't build the license-server test ever.
203
	sed -e '1,/widevine_test_license_server/ s/"Chrome"/"Chromium"/g' \
204
		-i third_party/widevine/cdm/widevine_cdm.gyp || die
205
191
	epatch_user
206
	epatch_user
192
207
193
	# Remove most bundled libraries. Some are still needed.
208
	# Remove most bundled libraries. Some are still needed.
Lines 289-294 src_prepare() { Link Here
289
}
304
}
290
305
291
src_configure() {
306
src_configure() {
307
308
	if use widevine; then
309
		local WIDEVINE_SUPPORTED_ARCHS="x64 ia32"
310
		local arch
311
		for arch in $WIDEVINE_SUPPORTED_ARCHS; do
312
			mkdir -p third_party/widevine/cdm/linux/$arch
313
			cp "${ROOT}/usr/$(get_libdir)/chromium-browser/libwidevinecdm.so" \
314
				third_party/widevine/cdm/widevine_cdm_*.h \
315
				third_party/widevine/cdm/linux/$arch/ \
316
					|| die "Could not copy headers for Widevine."
317
		done
318
	fi
292
	local myconf=""
319
	local myconf=""
293
320
294
	# Never tell the build system to "enable" SSE2, it has a few unexpected
321
	# Never tell the build system to "enable" SSE2, it has a few unexpected
Lines 582-587 src_install() { Link Here
582
609
583
	doexe out/Release/libffmpegsumo.so || die
610
	doexe out/Release/libffmpegsumo.so || die
584
611
612
	if use widevine; then
613
		doexe out/Release/libwidevinecdmadapter.so
614
	fi
615
585
	# Install icons and desktop entry.
616
	# Install icons and desktop entry.
586
	local branding size
617
	local branding size
587
	for size in 16 22 24 32 48 64 128 256 ; do
618
	for size in 16 22 24 32 48 64 128 256 ; do

Return to bug 547630