Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium: ChangeLog chromium-5.0.396.0.ebuild chromium-5.0.375.38.ebuild chromium-9999.ebuild chromium-5.0.375.23.ebuild chromium-5.0.342.9.ebuild
Date: Tue, 11 May 2010 11:23:58
Message-Id: 20100511112348.AC12E2C4F8@corvid.gentoo.org
1 phajdan.jr 10/05/11 11:23:48
2
3 Modified: ChangeLog chromium-5.0.396.0.ebuild
4 chromium-9999.ebuild
5 Added: chromium-5.0.375.38.ebuild
6 Removed: chromium-5.0.375.23.ebuild
7 chromium-5.0.342.9.ebuild
8 Log:
9 Version bump for beta channel relase. Fix bug #315667 by Joel
10 <Joel7987@×××××.com>, used suggestion by Constantine D. Kardaris
11 <ckardaris@×××××.com>. Fix bug #318511 by cyrillic
12 <cyrilmaley@×××××××.com>, used suggestion by truedfx. Fix bug #318573 by
13 flameeyes, also note useful comment there by Reimar Doeffinger
14 <Reimar.Doeffinger@×××.de>.
15 (Portage version: 2.1.8.3/cvs/Linux i686)
16
17 Revision Changes Path
18 1.97 www-client/chromium/ChangeLog
19
20 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.97&view=markup
21 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.97&content-type=text/plain
22 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.96&r2=1.97
23
24 Index: ChangeLog
25 ===================================================================
26 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
27 retrieving revision 1.96
28 retrieving revision 1.97
29 diff -u -r1.96 -r1.97
30 --- ChangeLog 7 May 2010 08:37:53 -0000 1.96
31 +++ ChangeLog 11 May 2010 11:23:48 -0000 1.97
32 @@ -1,6 +1,20 @@
33 # ChangeLog for www-client/chromium
34 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
35 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.96 2010/05/07 08:37:53 phajdan.jr Exp $
36 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.97 2010/05/11 11:23:48 phajdan.jr Exp $
37 +
38 +*chromium-5.0.375.38 (11 May 2010)
39 +
40 + 11 May 2010; Pawel Hajdan jr <phajdan.jr@g.o>
41 + -chromium-5.0.342.9.ebuild, -chromium-5.0.375.23.ebuild,
42 + +chromium-5.0.375.38.ebuild, chromium-5.0.396.0.ebuild,
43 + chromium-9999.ebuild, -files/chromium-fix-make-build.patch,
44 + -files/chromium-gcc45.patch, files/chromium-launcher.sh:
45 + Version bump for beta channel relase. Fix bug #315667 by Joel
46 + <Joel7987@×××××.com>, used suggestion by Constantine D. Kardaris
47 + <ckardaris@×××××.com>. Fix bug #318511 by cyrillic
48 + <cyrilmaley@×××××××.com>, used suggestion by truedfx. Fix bug #318573 by
49 + flameeyes, also note useful comment there by Reimar Doeffinger
50 + <Reimar.Doeffinger@×××.de>. Remove old and clean up patches.
51
52 *chromium-5.0.396.0 (07 May 2010)
53
54 @@ -218,7 +232,7 @@
55 -chromium-5.0.307.5.ebuild, +chromium-5.0.335.0.ebuild:
56 Version bump for dev channel release. Remove old.
57
58 - 23 Feb 2010; Raúl Porcel <armin76@g.o> chromium-5.0.322.2.ebuild,
59 + 23 Feb 2010; Raúl Porcel <armin76@g.o> chromium-5.0.322.2.ebuild,
60 chromium-9999.ebuild:
61 Add fix for arm build
62
63 @@ -289,7 +303,7 @@
64 Dev channel release bump, also include gnome default-apps file from pacho
65 in bug #303100
66
67 - 01 Feb 2010; Raúl Porcel <armin76@g.o> chromium-4.0.302.2.ebuild,
68 + 01 Feb 2010; Raúl Porcel <armin76@g.o> chromium-4.0.302.2.ebuild,
69 chromium-9999.ebuild:
70 Fix build on arm
71
72 @@ -338,11 +352,11 @@
73 +chromium-4.0.302.2.ebuild:
74 Version bump for dev channel release. Remove old.
75
76 - 22 Jan 2010; Raúl Porcel <armin76@g.o>
77 + 22 Jan 2010; Raúl Porcel <armin76@g.o>
78 -files/chromium-drop_armel_m32.patch, chromium-9999.ebuild:
79 Drop unneded arm patch
80
81 - 18 Jan 2010; Raúl Porcel <armin76@g.o> chromium-4.0.266.0.ebuild,
82 + 18 Jan 2010; Raúl Porcel <armin76@g.o> chromium-4.0.266.0.ebuild,
83 chromium-4.0.288.1.ebuild, chromium-4.0.295.0.ebuild:
84 Add ~arm
85
86 @@ -371,11 +385,11 @@
87 +chromium-4.0.288.1.ebuild:
88 Version bump for dev channel release.
89
90 - 07 Jan 2010; Raúl Porcel <armin76@g.o>
91 + 07 Jan 2010; Raúl Porcel <armin76@g.o>
92 +files/chromium-drop_armel_m32.patch, chromium-9999.ebuild:
93 Add patch to fix build on ARM, enable v8 build on ARM
94
95 - 25 Dec 2009; Raúl Porcel <armin76@g.o> chromium-4.0.266.0.ebuild,
96 + 25 Dec 2009; Raúl Porcel <armin76@g.o> chromium-4.0.266.0.ebuild,
97 chromium-9999.ebuild:
98 Add arm support, but don't keyword it as its still a big buggy
99
100 @@ -440,7 +454,7 @@
101 Version bump, enables bookmarks sync (with --enable-sync), and fix menu
102 location for adblock+ extension
103
104 - 15 Nov 2009; Tomáš Chvátal <scarabeus@g.o> chromium-9999.ebuild:
105 + 15 Nov 2009; Tomáš Chvátal <scarabeus@g.o> chromium-9999.ebuild:
106 QA: Drop keywords on live ebuilds.
107
108 09 Nov 2009; Bernard Cafarelli <voyageur@g.o>
109
110
111
112 1.2 www-client/chromium/chromium-5.0.396.0.ebuild
113
114 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.396.0.ebuild?rev=1.2&view=markup
115 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.396.0.ebuild?rev=1.2&content-type=text/plain
116 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.396.0.ebuild?r1=1.1&r2=1.2
117
118 Index: chromium-5.0.396.0.ebuild
119 ===================================================================
120 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.396.0.ebuild,v
121 retrieving revision 1.1
122 retrieving revision 1.2
123 diff -u -r1.1 -r1.2
124 --- chromium-5.0.396.0.ebuild 7 May 2010 08:37:53 -0000 1.1
125 +++ chromium-5.0.396.0.ebuild 11 May 2010 11:23:48 -0000 1.2
126 @@ -1,9 +1,10 @@
127 # Copyright 1999-2010 Gentoo Foundation
128 # Distributed under the terms of the GNU General Public License v2
129 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.396.0.ebuild,v 1.1 2010/05/07 08:37:53 phajdan.jr Exp $
130 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.396.0.ebuild,v 1.2 2010/05/11 11:23:48 phajdan.jr Exp $
131
132 EAPI="2"
133 -inherit eutils flag-o-matic multilib portability toolchain-funcs
134 +
135 +inherit eutils flag-o-matic multilib pax-utils toolchain-funcs
136
137 DESCRIPTION="Open-source version of Google Chrome web browser"
138 HOMEPAGE="http://chromium.org/"
139 @@ -12,7 +13,7 @@
140 LICENSE="BSD"
141 SLOT="0"
142 KEYWORDS="~amd64 ~arm ~x86"
143 -IUSE="mp3 +plugins-symlink x264"
144 +IUSE="+plugins-symlink"
145
146 RDEPEND="app-arch/bzip2
147 >=dev-libs/libevent-1.4.13
148 @@ -23,7 +24,7 @@
149 >=media-libs/alsa-lib-1.0.19
150 media-libs/jpeg:0
151 media-libs/libpng
152 - >=media-video/ffmpeg-0.5_p21602[mp3=,threads,x264=]
153 + >=media-video/ffmpeg-0.5_p21602[threads]
154 sys-libs/zlib
155 >=x11-libs/gtk+-2.14.7
156 x11-libs/libXScrnSaver"
157 @@ -40,6 +41,7 @@
158 x11-themes/tango-icon-theme
159 x11-themes/xfce4-icon-theme
160 )
161 + x11-apps/xmessage
162 x11-misc/xdg-utils
163 virtual/ttf-fonts"
164
165 @@ -50,32 +52,9 @@
166 !www-plugins/gecko-mediaplayer[gnome]
167 )"
168
169 -pkg_setup() {
170 - if [[ "${ROOT}" == "/" ]]; then
171 - # Prevent user problems like bug 299777.
172 - if ! grep -q /dev/shm <<< $(get_mounts); then
173 - eerror "You don't have tmpfs mounted at /dev/shm."
174 - eerror "${PN} isn't going to work in that configuration."
175 - eerror "Please uncomment the /dev/shm entry in /etc/fstab,"
176 - eerror "run 'mount /dev/shm' and try again."
177 - die "/dev/shm is not mounted"
178 - fi
179 - if [ `stat -c %a /dev/shm` -ne 1777 ]; then
180 - eerror "/dev/shm does not have correct permissions."
181 - eerror "${PN} isn't going to work in that configuration."
182 - eerror "Please run chmod 1777 /dev/shm and try again."
183 - die "/dev/shm has incorrect permissions"
184 - fi
185 - fi
186 -
187 - elog "${PN} might crash occasionally. To get more useful backtraces"
188 - elog "and submit better bug reports, please read"
189 - elog "http://www.gentoo.org/proj/en/qa/backtraces.xml"
190 -}
191 -
192 src_prepare() {
193 - # Allow supporting more media types provided system ffmpeg supports them.
194 - epatch "${FILESDIR}"/${PN}-supported-media-mime-types.patch
195 + # Allow supporting more media types.
196 + epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch
197 }
198
199 src_configure() {
200 @@ -84,14 +63,6 @@
201 # Fails to build on arm if we don't do this
202 use arm && append-flags -fno-tree-sink
203
204 - if use mp3 ; then
205 - append-cflags -DGENTOO_CHROMIUM_MP3_ENABLED
206 - fi
207 -
208 - if use x264 ; then
209 - append-cflags -DGENTOO_CHROMIUM_H264_ENABLED
210 - fi
211 -
212 # CFLAGS/LDFLAGS
213 mkdir -p "${S}"/.gyp || die "cflags mkdir failed"
214 cat << EOF > "${S}"/.gyp/include.gypi || die "cflags cat failed"
215 @@ -159,6 +130,7 @@
216 dodir ${CHROMIUM_HOME}
217
218 exeinto ${CHROMIUM_HOME}
219 + pax-mark m out/Release/chrome
220 doexe out/Release/chrome
221 doexe out/Release/chrome_sandbox
222 fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox
223
224
225
226 1.50 www-client/chromium/chromium-9999.ebuild
227
228 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.50&view=markup
229 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.50&content-type=text/plain
230 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.49&r2=1.50
231
232 Index: chromium-9999.ebuild
233 ===================================================================
234 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v
235 retrieving revision 1.49
236 retrieving revision 1.50
237 diff -u -r1.49 -r1.50
238 --- chromium-9999.ebuild 5 May 2010 12:33:26 -0000 1.49
239 +++ chromium-9999.ebuild 11 May 2010 11:23:48 -0000 1.50
240 @@ -1,9 +1,10 @@
241 # Copyright 1999-2010 Gentoo Foundation
242 # Distributed under the terms of the GNU General Public License v2
243 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.49 2010/05/05 12:33:26 voyageur Exp $
244 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.50 2010/05/11 11:23:48 phajdan.jr Exp $
245
246 EAPI="2"
247 -inherit eutils flag-o-matic multilib portability subversion toolchain-funcs
248 +
249 +inherit eutils flag-o-matic multilib pax-utils subversion toolchain-funcs
250
251 DESCRIPTION="Open-source version of Google Chrome web browser"
252 HOMEPAGE="http://chromium.org/"
253 @@ -14,7 +15,7 @@
254 LICENSE="BSD"
255 SLOT="0"
256 KEYWORDS=""
257 -IUSE="mp3 +plugins-symlink x264"
258 +IUSE="+plugins-symlink"
259
260 RDEPEND="app-arch/bzip2
261 >=dev-libs/libevent-1.4.13
262 @@ -25,7 +26,7 @@
263 >=media-libs/alsa-lib-1.0.19
264 media-libs/jpeg:0
265 media-libs/libpng
266 - >=media-video/ffmpeg-0.5_p21602[mp3=,threads,x264=]
267 + >=media-video/ffmpeg-0.5_p21602[threads]
268 sys-libs/zlib
269 >=x11-libs/gtk+-2.14.7
270 x11-libs/libXScrnSaver"
271 @@ -42,6 +43,7 @@
272 x11-themes/tango-icon-theme
273 x11-themes/xfce4-icon-theme
274 )
275 + x11-apps/xmessage
276 x11-misc/xdg-utils
277 virtual/ttf-fonts"
278
279 @@ -52,29 +54,6 @@
280 !www-plugins/gecko-mediaplayer[gnome]
281 )"
282
283 -pkg_setup() {
284 - if [[ "${ROOT}" == "/" ]]; then
285 - # Prevent user problems like bug 299777.
286 - if ! grep -q /dev/shm <<< $(get_mounts); then
287 - eerror "You don't have tmpfs mounted at /dev/shm."
288 - eerror "${PN} isn't going to work in that configuration."
289 - eerror "Please uncomment the /dev/shm entry in /etc/fstab,"
290 - eerror "run 'mount /dev/shm' and try again."
291 - die "/dev/shm is not mounted"
292 - fi
293 - if [ `stat -c %a /dev/shm` -ne 1777 ]; then
294 - eerror "/dev/shm does not have correct permissions."
295 - eerror "${PN} isn't going to work in that configuration."
296 - eerror "Please run chmod 1777 /dev/shm and try again."
297 - die "/dev/shm has incorrect permissions"
298 - fi
299 - fi
300 -
301 - elog "${PN} might crash occasionally. To get more useful backtraces"
302 - elog "and submit better bug reports, please read"
303 - elog "http://www.gentoo.org/proj/en/qa/backtraces.xml"
304 -}
305 -
306 src_unpack() {
307 subversion_src_unpack
308 mv "${S}" "${WORKDIR}"/depot_tools
309 @@ -119,8 +98,8 @@
310 }
311
312 src_prepare() {
313 - # Allow supporting more media types provided system ffmpeg supports them.
314 - epatch "${FILESDIR}"/${PN}-supported-media-mime-types.patch
315 + # Allow supporting more media types.
316 + epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch
317 }
318
319 src_configure() {
320 @@ -128,14 +107,6 @@
321 # Fails to build on arm if we don't do this
322 use arm && append-flags -fno-tree-sink
323
324 - if use mp3 ; then
325 - append-cflags -DGENTOO_CHROMIUM_MP3_ENABLED
326 - fi
327 -
328 - if use x264 ; then
329 - append-cflags -DGENTOO_CHROMIUM_H264_ENABLED
330 - fi
331 -
332 # CFLAGS/LDFLAGS
333 mkdir -p "${S}"/.gyp || die "cflags mkdir failed"
334 cat << EOF > "${S}"/.gyp/include.gypi || die "cflags cat failed"
335 @@ -203,6 +174,7 @@
336 dodir ${CHROMIUM_HOME}
337
338 exeinto ${CHROMIUM_HOME}
339 + pax-mark m out/Release/chrome
340 doexe out/Release/chrome
341 doexe out/Release/chrome_sandbox
342 fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox
343
344
345
346 1.1 www-client/chromium/chromium-5.0.375.38.ebuild
347
348 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.375.38.ebuild?rev=1.1&view=markup
349 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.375.38.ebuild?rev=1.1&content-type=text/plain
350
351 Index: chromium-5.0.375.38.ebuild
352 ===================================================================
353 # Copyright 1999-2010 Gentoo Foundation
354 # Distributed under the terms of the GNU General Public License v2
355 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.375.38.ebuild,v 1.1 2010/05/11 11:23:48 phajdan.jr Exp $
356
357 EAPI="2"
358
359 inherit eutils flag-o-matic multilib pax-utils toolchain-funcs
360
361 DESCRIPTION="Open-source version of Google Chrome web browser"
362 HOMEPAGE="http://chromium.org/"
363 SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2"
364
365 LICENSE="BSD"
366 SLOT="0"
367 KEYWORDS="~amd64 ~arm ~x86"
368 IUSE="+plugins-symlink"
369
370 RDEPEND="app-arch/bzip2
371 >=dev-libs/libevent-1.4.13
372 dev-libs/libxml2
373 dev-libs/libxslt
374 >=dev-libs/nss-3.12.3
375 >=gnome-base/gconf-2.24.0
376 >=media-libs/alsa-lib-1.0.19
377 media-libs/jpeg:0
378 media-libs/libpng
379 >=media-video/ffmpeg-0.5_p21602[threads]
380 sys-libs/zlib
381 >=x11-libs/gtk+-2.14.7
382 x11-libs/libXScrnSaver"
383 # dev-db/sqlite:3
384 DEPEND="${RDEPEND}
385 dev-lang/perl
386 >=dev-util/gperf-3.0.3
387 >=dev-util/pkgconfig-0.23
388 sys-devel/flex"
389 RDEPEND+="
390 || (
391 x11-themes/gnome-icon-theme
392 x11-themes/oxygen-molecule
393 x11-themes/tango-icon-theme
394 x11-themes/xfce4-icon-theme
395 )
396 x11-apps/xmessage
397 x11-misc/xdg-utils
398 virtual/ttf-fonts"
399
400 # Incompatible system plugins:
401 # www-plugins/gecko-mediaplayer, bug #309231.
402 RDEPEND+="
403 plugins-symlink? (
404 !www-plugins/gecko-mediaplayer[gnome]
405 )"
406
407 src_prepare() {
408 # Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007
409 epatch "${FILESDIR}"/${PN}-drop_sse2-r0.patch
410
411 # Allow supporting more media types.
412 epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch
413
414 # Fix build failure with libpng-1.4, bug 310959.
415 epatch "${FILESDIR}"/${PN}-libpng-1.4.patch
416 }
417
418 src_configure() {
419 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
420
421 # Fails to build on arm if we don't do this
422 use arm && append-flags -fno-tree-sink
423
424 # CFLAGS/LDFLAGS
425 mkdir -p "${S}"/.gyp || die "cflags mkdir failed"
426 cat << EOF > "${S}"/.gyp/include.gypi || die "cflags cat failed"
427 {
428 'target_defaults': {
429 'cflags': [ '${CFLAGS// /','}' ],
430 'ldflags': [ '${LDFLAGS// /','}' ],
431 },
432 }
433 EOF
434 export HOME="${S}"
435
436 # Configuration options (system libraries)
437 local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_ffmpeg=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1"
438 # -Duse_system_sqlite=1 : http://crbug.com/22208
439 # Others still bundled: icu (not possible?), hunspell (changes required for sandbox support)
440
441 # Sandbox paths
442 myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
443
444 # Disable the V8 snapshot. It breaks the build on hardened (bug #301880),
445 # and the performance gain isn't worth it.
446 myconf="${myconf} -Dv8_use_snapshot=0"
447
448 # Use target arch detection logic from bug #296917.
449 local myarch="$ABI"
450 [[ $myarch = "" ]] && myarch="$ARCH"
451
452 if [[ $myarch = amd64 ]] ; then
453 myconf="${myconf} -Dtarget_arch=x64"
454 elif [[ $myarch = x86 ]] ; then
455 myconf="${myconf} -Dtarget_arch=ia32"
456 elif [[ $myarch = arm ]] ; then
457 myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
458 else
459 die "Failed to determine target arch, got '$myarch'."
460 fi
461
462 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
463 myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
464 fi
465
466 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
467 # Depending on GCC version the warnings are different and we don't want
468 # the build to fail because of that.
469 myconf="${myconf} -Dwerror="
470
471 build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
472 }
473
474 src_compile() {
475 emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
476 rootdir="${S}" \
477 CC=$(tc-getCC) \
478 CXX=$(tc-getCXX) \
479 AR=$(tc-getAR) \
480 RANLIB=$(tc-getRANLIB) \
481 || die "compilation failed"
482 }
483
484 src_install() {
485 # Chromium does not have "install" target in the build system.
486 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
487
488 dodir ${CHROMIUM_HOME}
489
490 exeinto ${CHROMIUM_HOME}
491 pax-mark m out/Release/chrome
492 doexe out/Release/chrome
493 doexe out/Release/chrome_sandbox
494 fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox
495 doexe out/Release/xdg-settings
496 doexe "${FILESDIR}"/chromium-launcher.sh
497
498 insinto ${CHROMIUM_HOME}
499 doins out/Release/chrome.pak
500
501 doins -r out/Release/locales
502 doins -r out/Release/resources
503
504 # chrome.1 is for chromium --help
505 newman out/Release/chrome.1 chrome.1
506 newman out/Release/chrome.1 chromium.1
507
508 # Chromium looks for these in its folder
509 # See media_posix.cc and base_paths_linux.cc
510 dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME}
511 dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME}
512 dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME}
513
514 # Plugins symlink, optional wrt bug #301911
515 if use plugins-symlink; then
516 dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins
517 fi
518
519 # Icon and desktop entry
520 newicon out/Release/product_logo_48.png ${PN}-browser.png
521 dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium
522 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser"
523 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
524 || die "desktop file sed failed"
525 # Gnome default application entry
526 dodir /usr/share/gnome-control-center/default-apps
527 insinto /usr/share/gnome-control-center/default-apps
528 doins "${FILESDIR}"/chromium.xml
529 }