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 hotwording? ( no-source-code )"
19
LICENSE="BSD hotwording? ( no-source-code )"
20
SLOT="0"
20
SLOT="0"
21
KEYWORDS="~amd64 ~arm ~x86"
21
KEYWORDS="~amd64 ~arm ~x86"
22
IUSE="cups gnome gnome-keyring hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +tcmalloc"
22
IUSE="cups gnome gnome-keyring hidpi hotwording 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 189-194 src_prepare() { Link Here
189
	epatch "${FILESDIR}/${PN}-system-jinja-r7.patch"
190
	epatch "${FILESDIR}/${PN}-system-jinja-r7.patch"
190
	epatch "${FILESDIR}/${PN}-hotwording-2403.patch"
191
	epatch "${FILESDIR}/${PN}-hotwording-2403.patch"
191
192
193
	if use widevine; then
194
		local WIDEVINE_VERSION="$(< "${ROOT}/usr/$(get_libdir)/chromium-browser/widevine.version")"
195
		[[ -z $WIDEVINE_VERSION ]] && die "Could not determine Widevine version."
196
		local sedscript='$i#include "third_party/widevine/cdm/widevine_cdm_common.h"\n'
197
		sedscript+='#define WIDEVINE_CDM_AVAILABLE\n'
198
		sedscript+="#define WIDEVINE_CDM_VERSION_STRING \"${WIDEVINE_VERSION}\"\\n"
199
		sed -e "${sedscript}" -i third_party/widevine/cdm/widevine_cdm_version.h || die
200
201
		# build widevine_cdm but skip the license-server test
202
		sed -e '1,/widevine_test_license_server/ s/"Chrome"/"Chromium"/g' \
203
			-i third_party/widevine/cdm/widevine_cdm.gyp || die
204
	fi
205
192
	epatch_user
206
	epatch_user
193
207
194
	# Remove most bundled libraries. Some are still needed.
208
	# Remove most bundled libraries. Some are still needed.
Lines 286-295 src_prepare() { Link Here
286
		'v8/src/third_party/fdlibm' \
300
		'v8/src/third_party/fdlibm' \
287
		'v8/src/third_party/kernel' \
301
		'v8/src/third_party/kernel' \
288
		'v8/src/third_party/valgrind' \
302
		'v8/src/third_party/valgrind' \
303
		'third_party/devscripts' \
289
		--do-remove || die
304
		--do-remove || die
290
}
305
}
291
306
292
src_configure() {
307
src_configure() {
308
309
	if use widevine; then
310
		local WIDEVINE_SUPPORTED_ARCHS="x64 ia32"
311
		local arch
312
		for arch in $WIDEVINE_SUPPORTED_ARCHS; do
313
			mkdir -p third_party/widevine/cdm/linux/$arch
314
			cp "${ROOT}/usr/$(get_libdir)/chromium-browser/libwidevinecdm.so" \
315
				third_party/widevine/cdm/widevine_cdm_*.h \
316
				third_party/widevine/cdm/linux/$arch/ \
317
					|| die "Could not copy headers for Widevine."
318
		done
319
	fi
293
	local myconf=""
320
	local myconf=""
294
321
295
	# Never tell the build system to "enable" SSE2, it has a few unexpected
322
	# Never tell the build system to "enable" SSE2, it has a few unexpected
Lines 582-588 src_install() { Link Here
582
	newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
609
	newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
583
	newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
610
	newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
584
611
585
	doexe out/Release/libffmpegsumo.so || die
612
	if use widevine; then
613
		doexe out/Release/libwidevinecdmadapter.so || die
614
	fi
586
615
587
	# Install icons and desktop entry.
616
	# Install icons and desktop entry.
588
	local branding size
617
	local branding size

Return to bug 547630