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

(-)a/chromium-44.0.2403.61.ebuild (-3 / +32 lines)
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
200
		# build widevine_cdm but skip the license-server test
201
		sed -e '1,/widevine_test_license_server/ s/"Chrome"/"Chromium"/g' \
202
			-i third_party/widevine/cdm/widevine_cdm.gyp || die
203
	fi
204
191
	epatch_user
205
	epatch_user
192
206
193
	# Remove most bundled libraries. Some are still needed.
207
	# Remove most bundled libraries. Some are still needed.
Lines 285-294 src_prepare() { Link Here
285
		'v8/src/third_party/fdlibm' \
299
		'v8/src/third_party/fdlibm' \
286
		'v8/src/third_party/kernel' \
300
		'v8/src/third_party/kernel' \
287
		'v8/src/third_party/valgrind' \
301
		'v8/src/third_party/valgrind' \
302
		'third_party/devscripts' \
288
		--do-remove || die
303
		--do-remove || die
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 580-586 src_install() { Link Here
580
	newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
607
	newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
581
	newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
608
	newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
582
609
583
	doexe out/Release/libffmpegsumo.so || die
610
	if use widevine; then
611
		doexe out/Release/libwidevinecdmadapter.so || die
612
	fi
584
613
585
	# Install icons and desktop entry.
614
	# Install icons and desktop entry.
586
	local branding size
615
	local branding size

Return to bug 547630