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 187-192
src_prepare() {
Link Here
|
187 |
# fi |
188 |
# fi |
188 |
|
189 |
|
189 |
epatch "${FILESDIR}/${PN}-system-jinja-r7.patch" |
190 |
epatch "${FILESDIR}/${PN}-system-jinja-r7.patch" |
|
|
191 |
epatch "${FILESDIR}/${PN}-backport-blink-r195908.patch" |
192 |
epatch "${FILESDIR}/${PN}-backport-webrtc-7272a2ba.patch" |
193 |
|
194 |
if use widevine; then |
195 |
local WIDEVINE_VERSION="$(< "${ROOT}/usr/$(get_libdir)/chromium-browser/widevine.version")" |
196 |
[[ -z $WIDEVINE_VERSION ]] && die "Could not determine Widevine version." |
197 |
local sedscript='$i#include "third_party/widevine/cdm/widevine_cdm_common.h"\n' |
198 |
sedscript+='#define WIDEVINE_CDM_AVAILABLE\n' |
199 |
sedscript+="#define WIDEVINE_CDM_VERSION_STRING \"${WIDEVINE_VERSION}\"\\n" |
200 |
sed -e "${sedscript}" -i third_party/widevine/cdm/widevine_cdm_version.h || die |
201 |
fi |
202 |
|
203 |
# build widevine_cdm as appropriate (even though it's "unsupported") |
204 |
# but don't build the license-server test ever. |
205 |
sed -e '1,/widevine_test_license_server/ s/"Chrome"/"Chromium"/g' \ |
206 |
-i third_party/widevine/cdm/widevine_cdm.gyp || die |
190 |
|
207 |
|
191 |
epatch_user |
208 |
epatch_user |
192 |
|
209 |
|
Lines 289-294
src_prepare() {
Link Here
|
289 |
} |
306 |
} |
290 |
|
307 |
|
291 |
src_configure() { |
308 |
src_configure() { |
|
|
309 |
|
310 |
if use widevine; then |
311 |
local WIDEVINE_SUPPORTED_ARCHS="x64 ia32" |
312 |
local arch |
313 |
for arch in $WIDEVINE_SUPPORTED_ARCHS; do |
314 |
mkdir -p third_party/widevine/cdm/linux/$arch |
315 |
cp "${ROOT}/usr/$(get_libdir)/chromium-browser/libwidevinecdm.so" \ |
316 |
third_party/widevine/cdm/widevine_cdm_*.h \ |
317 |
third_party/widevine/cdm/linux/$arch/ \ |
318 |
|| die "Could not copy headers for Widevine." |
319 |
done |
320 |
fi |
292 |
local myconf="" |
321 |
local myconf="" |
293 |
|
322 |
|
294 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
323 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
Lines 582-587
src_install() {
Link Here
|
582 |
|
611 |
|
583 |
doexe out/Release/libffmpegsumo.so || die |
612 |
doexe out/Release/libffmpegsumo.so || die |
584 |
|
613 |
|
|
|
614 |
if use widevine; then |
615 |
doexe out/Release/libwidevinecdmadapter.so || die |
616 |
fi |
617 |
|
585 |
# Install icons and desktop entry. |
618 |
# Install icons and desktop entry. |
586 |
local branding size |
619 |
local branding size |
587 |
for size in 16 22 24 32 48 64 128 256 ; do |
620 |
for size in 16 22 24 32 48 64 128 256 ; do |