Lines 19-25
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}
Link Here
|
19 |
LICENSE="BSD" |
19 |
LICENSE="BSD" |
20 |
SLOT="0" |
20 |
SLOT="0" |
21 |
KEYWORDS="~amd64 ~x86" |
21 |
KEYWORDS="~amd64 ~x86" |
22 |
IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux system-ffmpeg tcmalloc" |
22 |
IUSE="bindist cups gnome gnome-keyring kerberos +nacl pulseaudio selinux system-ffmpeg tcmalloc" |
23 |
|
23 |
|
24 |
RDEPEND="app-accessibility/speech-dispatcher |
24 |
RDEPEND="app-accessibility/speech-dispatcher |
25 |
app-arch/bzip2 |
25 |
app-arch/bzip2 |
Lines 64-70
RDEPEND="app-accessibility/speech-dispatcher
Link Here
|
64 |
sys-libs/libselinux |
64 |
sys-libs/libselinux |
65 |
)" |
65 |
)" |
66 |
DEPEND="${RDEPEND} |
66 |
DEPEND="${RDEPEND} |
67 |
!arm? ( |
67 |
nacl? ( |
68 |
>=dev-lang/nacl-toolchain-newlib-0_p9093 |
68 |
>=dev-lang/nacl-toolchain-newlib-0_p9093 |
69 |
dev-lang/yasm |
69 |
dev-lang/yasm |
70 |
) |
70 |
) |
Lines 83-88
RDEPEND+="
Link Here
|
83 |
x11-misc/xdg-utils |
83 |
x11-misc/xdg-utils |
84 |
virtual/ttf-fonts" |
84 |
virtual/ttf-fonts" |
85 |
|
85 |
|
|
|
86 |
REQUIRED_USE=" |
87 |
arm? ( !nacl ) |
88 |
" |
89 |
|
86 |
if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
90 |
if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
87 |
EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
91 |
EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
88 |
fi |
92 |
fi |
Lines 115-121
pkg_setup() {
Link Here
|
115 |
} |
119 |
} |
116 |
|
120 |
|
117 |
src_prepare() { |
121 |
src_prepare() { |
118 |
if ! use arm; then |
122 |
if use nacl; then |
119 |
ebegin "Preparing NaCl newlib toolchain" |
123 |
ebegin "Preparing NaCl newlib toolchain" |
120 |
pushd "${T}" >/dev/null || die |
124 |
pushd "${T}" >/dev/null || die |
121 |
mkdir sdk || die |
125 |
mkdir sdk || die |
Lines 147-152
src_prepare() {
Link Here
|
147 |
die "tarball fixed, please remove workaround" |
151 |
die "tarball fixed, please remove workaround" |
148 |
fi |
152 |
fi |
149 |
|
153 |
|
|
|
154 |
if use nacl; then |
150 |
mkdir -p chrome/test/data/nacl |
155 |
mkdir -p chrome/test/data/nacl |
151 |
cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF |
156 |
cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF |
152 |
{ |
157 |
{ |
Lines 158-163
src_prepare() {
Link Here
|
158 |
], |
163 |
], |
159 |
} |
164 |
} |
160 |
EOF |
165 |
EOF |
|
|
166 |
fi |
161 |
|
167 |
|
162 |
epatch "${FILESDIR}/${PN}-system-ffmpeg-r0.patch" |
168 |
epatch "${FILESDIR}/${PN}-system-ffmpeg-r0.patch" |
163 |
|
169 |
|
Lines 289-294
src_configure() {
Link Here
|
289 |
$(gyp_use gnome-keyring use_gnome_keyring) |
295 |
$(gyp_use gnome-keyring use_gnome_keyring) |
290 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
296 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
291 |
$(gyp_use kerberos) |
297 |
$(gyp_use kerberos) |
|
|
298 |
$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi) |
292 |
$(gyp_use pulseaudio) |
299 |
$(gyp_use pulseaudio) |
293 |
$(gyp_use selinux selinux)" |
300 |
$(gyp_use selinux selinux)" |
294 |
|
301 |
|
Lines 338-344
src_configure() {
Link Here
|
338 |
myconf+=" -Dtarget_arch=arm |
345 |
myconf+=" -Dtarget_arch=arm |
339 |
-Darmv7=0 |
346 |
-Darmv7=0 |
340 |
-Darm_neon=0 |
347 |
-Darm_neon=0 |
341 |
-Ddisable_nacl=1" |
348 |
" |
342 |
else |
349 |
else |
343 |
die "Failed to determine target arch, got '$myarch'." |
350 |
die "Failed to determine target arch, got '$myarch'." |
344 |
fi |
351 |
fi |
Lines 452-458
src_install() {
Link Here
|
452 |
|
459 |
|
453 |
doexe out/Release/chromedriver || die |
460 |
doexe out/Release/chromedriver || die |
454 |
|
461 |
|
455 |
if ! use arm; then |
462 |
if use nacl; then |
456 |
doexe out/Release/nacl_helper{,_bootstrap} || die |
463 |
doexe out/Release/nacl_helper{,_bootstrap} || die |
457 |
insinto "${CHROMIUM_HOME}" |
464 |
insinto "${CHROMIUM_HOME}" |
458 |
doins out/Release/nacl_irt_*.nexe || die |
465 |
doins out/Release/nacl_irt_*.nexe || die |