1 |
commit: e7b214d802b93e71f715298bcaffc1590541bca6 |
2 |
Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 21:42:01 2017 +0000 |
4 |
Commit: Paweł Hajdan <phajdan.jr <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 21:45:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7b214d8 |
7 |
|
8 |
www-client/chromium: add support for component build |
9 |
|
10 |
This addresses bug #601590 by David Kredba . |
11 |
|
12 |
www-client/chromium/chromium-57.0.2950.4.ebuild | 9 +++++++-- |
13 |
www-client/chromium/metadata.xml | 1 + |
14 |
2 files changed, 8 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/www-client/chromium/chromium-57.0.2950.4.ebuild b/www-client/chromium/chromium-57.0.2950.4.ebuild |
17 |
index 1da0e2c..04ae77e 100644 |
18 |
--- a/www-client/chromium/chromium-57.0.2950.4.ebuild |
19 |
+++ b/www-client/chromium/chromium-57.0.2950.4.ebuild |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Copyright 1999-2017 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
# $Id$ |
25 |
|
26 |
@@ -18,7 +18,7 @@ SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P} |
27 |
LICENSE="BSD" |
28 |
SLOT="0" |
29 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
30 |
-IUSE="cups gnome gnome-keyring gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +tcmalloc widevine" |
31 |
+IUSE="component-build cups gnome gnome-keyring gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +tcmalloc widevine" |
32 |
RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" |
33 |
|
34 |
# Native Client binaries are compiled with different set of flags, bug #452066. |
35 |
@@ -340,6 +340,10 @@ src_configure() { |
36 |
# GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
37 |
myconf_gn+=" is_debug=false" |
38 |
|
39 |
+ # Component build isn't generally intended for use by end users. It's mostly useful |
40 |
+ # for development and debugging. |
41 |
+ myconf_gn+=" is_component_build=$(usex component-build true false)" |
42 |
+ |
43 |
# Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
44 |
myconf_gn+=" enable_nacl=false" |
45 |
|
46 |
@@ -579,6 +583,7 @@ src_install() { |
47 |
insinto "${CHROMIUM_HOME}" |
48 |
doins out/Release/*.bin |
49 |
doins out/Release/*.pak |
50 |
+ doins out/Release/*.so |
51 |
|
52 |
# Needed by bundled icu |
53 |
doins out/Release/icudtl.dat |
54 |
|
55 |
diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml |
56 |
index 008a4e4..cbab844 100644 |
57 |
--- a/www-client/chromium/metadata.xml |
58 |
+++ b/www-client/chromium/metadata.xml |
59 |
@@ -7,6 +7,7 @@ |
60 |
</maintainer> |
61 |
<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription> |
62 |
<use> |
63 |
+ <flag name="component-build">Split build into more shared libraries to speed up linking. Mostly intended for debugging and development, NOT RECOMMENDED for general use.</flag> |
64 |
<flag name="gn">Use GN (generate ninja) instead of GYP for building</flag> |
65 |
<flag name="gtk3">Use gtk3 instead of gtk2</flag> |
66 |
<flag name="hangouts">Enable support for Google Hangouts features such as screen sharing</flag> |