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 |
|
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 |