Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 392347 | Differences between
and this patch

Collapse All | Expand All

(-)metadata.xml (+3 lines)
Lines 3-6 Link Here
3
<pkgmetadata>
3
<pkgmetadata>
4
	<herd>chromium</herd>
4
	<herd>chromium</herd>
5
	<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription>
5
	<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription>
6
	<use>
7
		<flag name="nacl">Enable Google Native Client support</flag>
8
	</use>
6
</pkgmetadata>
9
</pkgmetadata>
(-)chromium-17.0.963.56.ebuild (-2 / +13 lines)
Lines 15-21 Link Here
15
LICENSE="BSD"
15
LICENSE="BSD"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="amd64 x86"
17
KEYWORDS="amd64 x86"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos pulseaudio"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos +nacl pulseaudio"
19
19
20
# en_US is ommitted on purpose from the list below. It must always be available.
20
# en_US is ommitted on purpose from the list below. It must always be available.
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
Lines 54-60 Link Here
54
	x11-libs/libXtst
54
	x11-libs/libXtst
55
	kerberos? ( virtual/krb5 )"
55
	kerberos? ( virtual/krb5 )"
56
DEPEND="${RDEPEND}
56
DEPEND="${RDEPEND}
57
	nacl? (
57
	>=dev-lang/nacl-toolchain-newlib-0_p7311
58
	>=dev-lang/nacl-toolchain-newlib-0_p7311
59
	)
58
	dev-lang/perl
60
	dev-lang/perl
59
	dev-lang/yasm
61
	dev-lang/yasm
60
	dev-python/simplejson
62
	dev-python/simplejson
Lines 69-74 Link Here
69
	x11-misc/xdg-utils
71
	x11-misc/xdg-utils
70
	virtual/ttf-fonts"
72
	virtual/ttf-fonts"
71
73
74
REQUIRED_USE="
75
	arm? ( !nacl )
76
"
77
72
gyp_use() {
78
gyp_use() {
73
	if [[ $# -lt 2 ]]; then
79
	if [[ $# -lt 2 ]]; then
74
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
80
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
Lines 177-184 Link Here
177
}
183
}
178
184
179
src_prepare() {
185
src_prepare() {
186
	if use nacl; then
180
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
187
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
181
		native_client/toolchain/linux_x86_newlib || die
188
		native_client/toolchain/linux_x86_newlib || die
189
	fi
182
190
183
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
191
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
184
	sed -i '1i#define OF(x) x' \
192
	sed -i '1i#define OF(x) x' \
Lines 296-301 Link Here
296
		$(gyp_use gnome-keyring use_gnome_keyring)
304
		$(gyp_use gnome-keyring use_gnome_keyring)
297
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
305
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
298
		$(gyp_use kerberos use_kerberos)
306
		$(gyp_use kerberos use_kerberos)
307
		$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi)
299
		$(gyp_use pulseaudio use_pulseaudio)"
308
		$(gyp_use pulseaudio use_pulseaudio)"
300
309
301
	# Enable sandbox.
310
	# Enable sandbox.
Lines 328-334 Link Here
328
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
337
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
329
		append-flags -fno-tree-sink
338
		append-flags -fno-tree-sink
330
339
331
		myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
340
		myconf+=" -Dtarget_arch=arm -Dlinux_use_tcmalloc=0"
332
	else
341
	else
333
		die "Failed to determine target arch, got '$myarch'."
342
		die "Failed to determine target arch, got '$myarch'."
334
	fi
343
	fi
Lines 404-409 Link Here
404
413
405
	# Install Native Client files on platforms that support it.
414
	# Install Native Client files on platforms that support it.
406
	insinto "${CHROMIUM_HOME}"
415
	insinto "${CHROMIUM_HOME}"
416
	if use nacl; then
407
	case "$(tc-arch)" in
417
	case "$(tc-arch)" in
408
		amd64)
418
		amd64)
409
			doexe out/Release/nacl_helper{,_bootstrap} || die
419
			doexe out/Release/nacl_helper{,_bootstrap} || die
Lines 416-421 Link Here
416
			doins out/Release/libppGoogleNaClPluginChrome.so || die
426
			doins out/Release/libppGoogleNaClPluginChrome.so || die
417
		;;
427
		;;
418
	esac
428
	esac
429
	fi
419
430
420
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
431
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
421
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
432
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
(-)chromium-19.0.1055.1.ebuild (-2 / +13 lines)
Lines 15-21 Link Here
15
LICENSE="BSD"
15
LICENSE="BSD"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos pulseaudio"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos +nacl pulseaudio"
19
19
20
# en_US is ommitted on purpose from the list below. It must always be available.
20
# en_US is ommitted on purpose from the list below. It must always be available.
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
Lines 55-61 Link Here
55
	x11-libs/libXtst
55
	x11-libs/libXtst
56
	kerberos? ( virtual/krb5 )"
56
	kerberos? ( virtual/krb5 )"
57
DEPEND="${RDEPEND}
57
DEPEND="${RDEPEND}
58
	nacl? (
58
	>=dev-lang/nacl-toolchain-newlib-0_p7311
59
	>=dev-lang/nacl-toolchain-newlib-0_p7311
60
	)
59
	dev-lang/perl
61
	dev-lang/perl
60
	dev-lang/yasm
62
	dev-lang/yasm
61
	dev-python/simplejson
63
	dev-python/simplejson
Lines 73-78 Link Here
73
	x11-misc/xdg-utils
75
	x11-misc/xdg-utils
74
	virtual/ttf-fonts"
76
	virtual/ttf-fonts"
75
77
78
REQUIRED_USE="
79
	arm? ( !nacl )
80
"
81
76
gyp_use() {
82
gyp_use() {
77
	if [[ $# -lt 2 ]]; then
83
	if [[ $# -lt 2 ]]; then
78
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
84
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
Lines 181-188 Link Here
181
}
187
}
182
188
183
src_prepare() {
189
src_prepare() {
190
	if use nacl; then
184
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
191
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
185
		native_client/toolchain/linux_x86_newlib || die
192
		native_client/toolchain/linux_x86_newlib || die
193
	fi
186
194
187
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
195
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
188
	sed -i '1i#define OF(x) x' \
196
	sed -i '1i#define OF(x) x' \
Lines 293-298 Link Here
293
		$(gyp_use gnome-keyring use_gnome_keyring)
301
		$(gyp_use gnome-keyring use_gnome_keyring)
294
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
302
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
295
		$(gyp_use kerberos use_kerberos)
303
		$(gyp_use kerberos use_kerberos)
304
		$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi)
296
		$(gyp_use pulseaudio use_pulseaudio)"
305
		$(gyp_use pulseaudio use_pulseaudio)"
297
306
298
	# Enable sandbox.
307
	# Enable sandbox.
Lines 330-336 Link Here
330
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
339
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
331
		append-flags -fno-tree-sink
340
		append-flags -fno-tree-sink
332
341
333
		myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
342
		myconf+=" -Dtarget_arch=arm -Dlinux_use_tcmalloc=0"
334
	else
343
	else
335
		die "Failed to determine target arch, got '$myarch'."
344
		die "Failed to determine target arch, got '$myarch'."
336
	fi
345
	fi
Lines 404-409 Link Here
404
413
405
	# Install Native Client files on platforms that support it.
414
	# Install Native Client files on platforms that support it.
406
	insinto "${CHROMIUM_HOME}"
415
	insinto "${CHROMIUM_HOME}"
416
	if use nacl; then
407
	case "$(tc-arch)" in
417
	case "$(tc-arch)" in
408
		amd64)
418
		amd64)
409
			doexe out/Release/nacl_helper{,_bootstrap} || die
419
			doexe out/Release/nacl_helper{,_bootstrap} || die
Lines 416-421 Link Here
416
			doins out/Release/libppGoogleNaClPluginChrome.so || die
426
			doins out/Release/libppGoogleNaClPluginChrome.so || die
417
		;;
427
		;;
418
	esac
428
	esac
429
	fi
419
430
420
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
431
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
421
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
432
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
(-)chromium-9999-r1.ebuild (-2 / +13 lines)
Lines 15-21 Link Here
15
LICENSE="BSD"
15
LICENSE="BSD"
16
SLOT="live"
16
SLOT="live"
17
KEYWORDS=""
17
KEYWORDS=""
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos pulseaudio"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos +nacl pulseaudio"
19
19
20
# en_US is ommitted on purpose from the list below. It must always be available.
20
# en_US is ommitted on purpose from the list below. It must always be available.
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
Lines 55-61 Link Here
55
	x11-libs/libXtst
55
	x11-libs/libXtst
56
	kerberos? ( virtual/krb5 )"
56
	kerberos? ( virtual/krb5 )"
57
DEPEND="${RDEPEND}
57
DEPEND="${RDEPEND}
58
	nacl? (
58
	>=dev-lang/nacl-toolchain-newlib-0_p7311
59
	>=dev-lang/nacl-toolchain-newlib-0_p7311
60
	)
59
	dev-lang/perl
61
	dev-lang/perl
60
	dev-lang/yasm
62
	dev-lang/yasm
61
	dev-python/simplejson
63
	dev-python/simplejson
Lines 129-134 Link Here
129
	elog "Installing/updating to version ${MAJOR}.${MINOR}.${BUILD}.${PATCH} (Developer Build ${ESVN_WC_REVISION})"
131
	elog "Installing/updating to version ${MAJOR}.${MINOR}.${BUILD}.${PATCH} (Developer Build ${ESVN_WC_REVISION})"
130
}
132
}
131
133
134
REQUIRED_USE="
135
	arm? ( !nacl )
136
"
137
132
gyp_use() {
138
gyp_use() {
133
	if [[ $# -lt 2 ]]; then
139
	if [[ $# -lt 2 ]]; then
134
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
140
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
Lines 237-244 Link Here
237
}
243
}
238
244
239
src_prepare() {
245
src_prepare() {
246
	if use nacl; then
240
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
247
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
241
		native_client/toolchain/linux_x86_newlib || die
248
		native_client/toolchain/linux_x86_newlib || die
249
	fi
242
250
243
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
251
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
244
	sed -i '1i#define OF(x) x' \
252
	sed -i '1i#define OF(x) x' \
Lines 349-354 Link Here
349
		$(gyp_use gnome-keyring use_gnome_keyring)
357
		$(gyp_use gnome-keyring use_gnome_keyring)
350
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
358
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
351
		$(gyp_use kerberos use_kerberos)
359
		$(gyp_use kerberos use_kerberos)
360
		$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi)
352
		$(gyp_use pulseaudio use_pulseaudio)"
361
		$(gyp_use pulseaudio use_pulseaudio)"
353
362
354
	# Enable sandbox.
363
	# Enable sandbox.
Lines 386-392 Link Here
386
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
395
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
387
		append-flags -fno-tree-sink
396
		append-flags -fno-tree-sink
388
397
389
		myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
398
		myconf+=" -Dtarget_arch=arm -Dlinux_use_tcmalloc=0"
390
	else
399
	else
391
		die "Failed to determine target arch, got '$myarch'."
400
		die "Failed to determine target arch, got '$myarch'."
392
	fi
401
	fi
Lines 460-465 Link Here
460
469
461
	# Install Native Client files on platforms that support it.
470
	# Install Native Client files on platforms that support it.
462
	insinto "${CHROMIUM_HOME}"
471
	insinto "${CHROMIUM_HOME}"
472
	if use nacl; then
463
	case "$(tc-arch)" in
473
	case "$(tc-arch)" in
464
		amd64)
474
		amd64)
465
			doexe out/Release/nacl_helper{,_bootstrap} || die
475
			doexe out/Release/nacl_helper{,_bootstrap} || die
Lines 472-477 Link Here
472
			doins out/Release/libppGoogleNaClPluginChrome.so || die
482
			doins out/Release/libppGoogleNaClPluginChrome.so || die
473
		;;
483
		;;
474
	esac
484
	esac
485
	fi
475
486
476
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
487
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
477
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
488
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
(-)chromium-18.0.1025.45.ebuild (-2 / +13 lines)
Lines 15-21 Link Here
15
LICENSE="BSD"
15
LICENSE="BSD"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos pulseaudio"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos +nacl pulseaudio"
19
19
20
# en_US is ommitted on purpose from the list below. It must always be available.
20
# en_US is ommitted on purpose from the list below. It must always be available.
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
Lines 55-61 Link Here
55
	x11-libs/libXtst
55
	x11-libs/libXtst
56
	kerberos? ( virtual/krb5 )"
56
	kerberos? ( virtual/krb5 )"
57
DEPEND="${RDEPEND}
57
DEPEND="${RDEPEND}
58
	nacl? (
58
	>=dev-lang/nacl-toolchain-newlib-0_p7311
59
	>=dev-lang/nacl-toolchain-newlib-0_p7311
60
	)
59
	dev-lang/perl
61
	dev-lang/perl
60
	dev-lang/yasm
62
	dev-lang/yasm
61
	dev-python/simplejson
63
	dev-python/simplejson
Lines 70-75 Link Here
70
	x11-misc/xdg-utils
72
	x11-misc/xdg-utils
71
	virtual/ttf-fonts"
73
	virtual/ttf-fonts"
72
74
75
REQUIRED_USE="
76
	arm? ( !nacl )
77
"
78
73
gyp_use() {
79
gyp_use() {
74
	if [[ $# -lt 2 ]]; then
80
	if [[ $# -lt 2 ]]; then
75
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
81
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
Lines 178-185 Link Here
178
}
184
}
179
185
180
src_prepare() {
186
src_prepare() {
187
	if use nacl; then
181
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
188
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
182
		native_client/toolchain/linux_x86_newlib || die
189
		native_client/toolchain/linux_x86_newlib || die
190
	fi
183
191
184
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
192
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
185
	sed -i '1i#define OF(x) x' \
193
	sed -i '1i#define OF(x) x' \
Lines 306-311 Link Here
306
		$(gyp_use gnome-keyring use_gnome_keyring)
314
		$(gyp_use gnome-keyring use_gnome_keyring)
307
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
315
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
308
		$(gyp_use kerberos use_kerberos)
316
		$(gyp_use kerberos use_kerberos)
317
		$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi)
309
		$(gyp_use pulseaudio use_pulseaudio)"
318
		$(gyp_use pulseaudio use_pulseaudio)"
310
319
311
	# Enable sandbox.
320
	# Enable sandbox.
Lines 338-344 Link Here
338
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
347
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
339
		append-flags -fno-tree-sink
348
		append-flags -fno-tree-sink
340
349
341
		myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
350
		myconf+=" -Dtarget_arch=arm -Dlinux_use_tcmalloc=0"
342
	else
351
	else
343
		die "Failed to determine target arch, got '$myarch'."
352
		die "Failed to determine target arch, got '$myarch'."
344
	fi
353
	fi
Lines 412-417 Link Here
412
421
413
	# Install Native Client files on platforms that support it.
422
	# Install Native Client files on platforms that support it.
414
	insinto "${CHROMIUM_HOME}"
423
	insinto "${CHROMIUM_HOME}"
424
	if use nacl; then
415
	case "$(tc-arch)" in
425
	case "$(tc-arch)" in
416
		amd64)
426
		amd64)
417
			doexe out/Release/nacl_helper{,_bootstrap} || die
427
			doexe out/Release/nacl_helper{,_bootstrap} || die
Lines 424-429 Link Here
424
			doins out/Release/libppGoogleNaClPluginChrome.so || die
434
			doins out/Release/libppGoogleNaClPluginChrome.so || die
425
		;;
435
		;;
426
	esac
436
	esac
437
	fi
427
438
428
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
439
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
429
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
440
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
(-)chromium-19.0.1049.3.ebuild (-2 / +13 lines)
Lines 15-21 Link Here
15
LICENSE="BSD"
15
LICENSE="BSD"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos pulseaudio"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos +nacl pulseaudio"
19
19
20
# en_US is ommitted on purpose from the list below. It must always be available.
20
# en_US is ommitted on purpose from the list below. It must always be available.
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
Lines 55-61 Link Here
55
	x11-libs/libXtst
55
	x11-libs/libXtst
56
	kerberos? ( virtual/krb5 )"
56
	kerberos? ( virtual/krb5 )"
57
DEPEND="${RDEPEND}
57
DEPEND="${RDEPEND}
58
	nacl? (
58
	>=dev-lang/nacl-toolchain-newlib-0_p7311
59
	>=dev-lang/nacl-toolchain-newlib-0_p7311
60
	)
59
	dev-lang/perl
61
	dev-lang/perl
60
	dev-lang/yasm
62
	dev-lang/yasm
61
	dev-python/simplejson
63
	dev-python/simplejson
Lines 70-75 Link Here
70
	x11-misc/xdg-utils
72
	x11-misc/xdg-utils
71
	virtual/ttf-fonts"
73
	virtual/ttf-fonts"
72
74
75
REQUIRED_USE="
76
	arm? ( !nacl )
77
"
78
73
gyp_use() {
79
gyp_use() {
74
	if [[ $# -lt 2 ]]; then
80
	if [[ $# -lt 2 ]]; then
75
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
81
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
Lines 178-185 Link Here
178
}
184
}
179
185
180
src_prepare() {
186
src_prepare() {
187
	if use nacl; then
181
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
188
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
182
		native_client/toolchain/linux_x86_newlib || die
189
		native_client/toolchain/linux_x86_newlib || die
190
	fi
183
191
184
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
192
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
185
	sed -i '1i#define OF(x) x' \
193
	sed -i '1i#define OF(x) x' \
Lines 291-296 Link Here
291
		$(gyp_use gnome-keyring use_gnome_keyring)
299
		$(gyp_use gnome-keyring use_gnome_keyring)
292
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
300
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
293
		$(gyp_use kerberos use_kerberos)
301
		$(gyp_use kerberos use_kerberos)
302
		$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi)
294
		$(gyp_use pulseaudio use_pulseaudio)"
303
		$(gyp_use pulseaudio use_pulseaudio)"
295
304
296
	# Enable sandbox.
305
	# Enable sandbox.
Lines 328-334 Link Here
328
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
337
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
329
		append-flags -fno-tree-sink
338
		append-flags -fno-tree-sink
330
339
331
		myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
340
		myconf+=" -Dtarget_arch=arm -Dlinux_use_tcmalloc=0"
332
	else
341
	else
333
		die "Failed to determine target arch, got '$myarch'."
342
		die "Failed to determine target arch, got '$myarch'."
334
	fi
343
	fi
Lines 402-407 Link Here
402
411
403
	# Install Native Client files on platforms that support it.
412
	# Install Native Client files on platforms that support it.
404
	insinto "${CHROMIUM_HOME}"
413
	insinto "${CHROMIUM_HOME}"
414
	if use nacl; then
405
	case "$(tc-arch)" in
415
	case "$(tc-arch)" in
406
		amd64)
416
		amd64)
407
			doexe out/Release/nacl_helper{,_bootstrap} || die
417
			doexe out/Release/nacl_helper{,_bootstrap} || die
Lines 414-419 Link Here
414
			doins out/Release/libppGoogleNaClPluginChrome.so || die
424
			doins out/Release/libppGoogleNaClPluginChrome.so || die
415
		;;
425
		;;
416
	esac
426
	esac
427
	fi
417
428
418
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
429
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
419
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
430
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
(-)chromium-18.0.1025.39.ebuild (-2 / +13 lines)
Lines 15-21 Link Here
15
LICENSE="BSD"
15
LICENSE="BSD"
16
SLOT="0"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
17
KEYWORDS="~amd64 ~x86"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos pulseaudio"
18
IUSE="bindist cups custom-cflags gnome gnome-keyring kerberos +nacl pulseaudio"
19
19
20
# en_US is ommitted on purpose from the list below. It must always be available.
20
# en_US is ommitted on purpose from the list below. It must always be available.
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
21
LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr
Lines 55-61 Link Here
55
	x11-libs/libXtst
55
	x11-libs/libXtst
56
	kerberos? ( virtual/krb5 )"
56
	kerberos? ( virtual/krb5 )"
57
DEPEND="${RDEPEND}
57
DEPEND="${RDEPEND}
58
	nacl? (
58
	>=dev-lang/nacl-toolchain-newlib-0_p7311
59
	>=dev-lang/nacl-toolchain-newlib-0_p7311
60
	)
59
	dev-lang/perl
61
	dev-lang/perl
60
	dev-lang/yasm
62
	dev-lang/yasm
61
	dev-python/simplejson
63
	dev-python/simplejson
Lines 70-75 Link Here
70
	x11-misc/xdg-utils
72
	x11-misc/xdg-utils
71
	virtual/ttf-fonts"
73
	virtual/ttf-fonts"
72
74
75
REQUIRED_USE="
76
	arm? ( !nacl )
77
"
78
73
gyp_use() {
79
gyp_use() {
74
	if [[ $# -lt 2 ]]; then
80
	if [[ $# -lt 2 ]]; then
75
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
81
		echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
Lines 178-185 Link Here
178
}
184
}
179
185
180
src_prepare() {
186
src_prepare() {
187
	if use nacl; then
181
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
188
	ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \
182
		native_client/toolchain/linux_x86_newlib || die
189
		native_client/toolchain/linux_x86_newlib || die
190
	fi
183
191
184
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
192
	# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371.
185
	sed -i '1i#define OF(x) x' \
193
	sed -i '1i#define OF(x) x' \
Lines 303-308 Link Here
303
		$(gyp_use gnome-keyring use_gnome_keyring)
311
		$(gyp_use gnome-keyring use_gnome_keyring)
304
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
312
		$(gyp_use gnome-keyring linux_link_gnome_keyring)
305
		$(gyp_use kerberos use_kerberos)
313
		$(gyp_use kerberos use_kerberos)
314
		$(if use nacl; then echo "-Ddisable_nacl=0"; else echo "-Ddisable_nacl=1"; fi)
306
		$(gyp_use pulseaudio use_pulseaudio)"
315
		$(gyp_use pulseaudio use_pulseaudio)"
307
316
308
	# Enable sandbox.
317
	# Enable sandbox.
Lines 335-341 Link Here
335
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
344
		# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
336
		append-flags -fno-tree-sink
345
		append-flags -fno-tree-sink
337
346
338
		myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
347
		myconf+=" -Dtarget_arch=arm -Dlinux_use_tcmalloc=0"
339
	else
348
	else
340
		die "Failed to determine target arch, got '$myarch'."
349
		die "Failed to determine target arch, got '$myarch'."
341
	fi
350
	fi
Lines 408-413 Link Here
408
417
409
	# Install Native Client files on platforms that support it.
418
	# Install Native Client files on platforms that support it.
410
	insinto "${CHROMIUM_HOME}"
419
	insinto "${CHROMIUM_HOME}"
420
	if use nacl; then
411
	case "$(tc-arch)" in
421
	case "$(tc-arch)" in
412
		amd64)
422
		amd64)
413
			doexe out/Release/nacl_helper{,_bootstrap} || die
423
			doexe out/Release/nacl_helper{,_bootstrap} || die
Lines 420-425 Link Here
420
			doins out/Release/libppGoogleNaClPluginChrome.so || die
430
			doins out/Release/libppGoogleNaClPluginChrome.so || die
421
		;;
431
		;;
422
	esac
432
	esac
433
	fi
423
434
424
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
435
	newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
425
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
436
	if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then

Return to bug 392347