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-12.0.742.21.ebuild chromium-12.0.742.12.ebuild
Date: Fri, 06 May 2011 08:56:17
Message-Id: 20110506085606.01C8020054@flycatcher.gentoo.org
1 phajdan.jr 11/05/06 08:56:05
2
3 Modified: ChangeLog
4 Added: chromium-12.0.742.21.ebuild
5 Removed: chromium-12.0.742.12.ebuild
6 Log:
7 Version bump for dev channel release. Remove old ebuilds and files.
8
9 (Portage version: 2.1.9.42/cvs/Linux i686)
10
11 Revision Changes Path
12 1.350 www-client/chromium/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.350&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.350&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.349&r2=1.350
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
21 retrieving revision 1.349
22 retrieving revision 1.350
23 diff -u -r1.349 -r1.350
24 --- ChangeLog 3 May 2011 10:21:59 -0000 1.349
25 +++ ChangeLog 6 May 2011 08:56:05 -0000 1.350
26 @@ -1,6 +1,22 @@
27 # ChangeLog for www-client/chromium
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.349 2011/05/03 10:21:59 phajdan.jr Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.350 2011/05/06 08:56:05 phajdan.jr Exp $
31 +
32 +*chromium-12.0.742.21 (06 May 2011)
33 +
34 + 06 May 2011; Pawel Hajdan jr <phajdan.jr@g.o>
35 + -files/chromium-ffmpeg-build-r1.patch,
36 + -files/chromium-gecko-mediaplayer-r0.patch,
37 + -files/chromium-gecko-mediaplayer-r1.patch,
38 + -files/chromium-gssapi-heimdal-r0.patch, -files/chromium-launcher.sh,
39 + -files/chromium-net-tests-r0.patch, -files/chromium-system-flac-r0.patch,
40 + -files/chromium-system-icu-r0.patch, -files/chromium-system-speex-r0.patch,
41 + -files/chromium-system-vpx-r1.patch, -files/chromium-system-vpx-r2.patch,
42 + -files/chromium-system-xdg-utils-r0.patch,
43 + -files/chromium-webkit-version.patch, -files/experimental.gyp,
44 + -files/flac.gyp, -files/speex.gyp, -files/v8.gyp,
45 + -chromium-12.0.742.12.ebuild, +chromium-12.0.742.21.ebuild:
46 + Version bump for dev channel release. Remove old ebuilds and files.
47
48 *chromium-12.0.742.16 (03 May 2011)
49
50
51
52
53 1.1 www-client/chromium/chromium-12.0.742.21.ebuild
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.742.21.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.742.21.ebuild?rev=1.1&content-type=text/plain
57
58 Index: chromium-12.0.742.21.ebuild
59 ===================================================================
60 # Copyright 1999-2011 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-12.0.742.21.ebuild,v 1.1 2011/05/06 08:56:05 phajdan.jr Exp $
63
64 EAPI="3"
65 PYTHON_DEPEND="2:2.6"
66
67 inherit eutils fdo-mime flag-o-matic gnome2-utils linux-info multilib \
68 pax-utils portability python toolchain-funcs versionator virtualx
69
70 DESCRIPTION="Open-source version of Google Chrome web browser"
71 HOMEPAGE="http://chromium.org/"
72 SRC_URI="http://build.chromium.org/official/${P}.tar.bz2"
73
74 LICENSE="BSD"
75 SLOT="0"
76 KEYWORDS="~amd64 ~arm ~x86"
77 IUSE="cups gnome gnome-keyring kerberos xinerama"
78
79 RDEPEND="app-arch/bzip2
80 dev-libs/dbus-glib
81 >=dev-libs/icu-4.4.1
82 >=dev-libs/libevent-1.4.13
83 dev-libs/libxml2[icu]
84 dev-libs/libxslt
85 >=dev-libs/nss-3.12.3
86 gnome? ( >=gnome-base/gconf-2.24.0 )
87 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
88 >=media-libs/alsa-lib-1.0.19
89 media-libs/flac
90 virtual/jpeg
91 media-libs/libpng
92 >=media-libs/libvpx-0.9.5
93 >=media-libs/libwebp-0.1.2
94 media-libs/speex
95 cups? ( >=net-print/cups-1.3.11 )
96 sys-libs/pam
97 sys-libs/zlib
98 >=virtual/ffmpeg-0.6.90[threads]
99 x11-libs/gtk+:2
100 x11-libs/libXScrnSaver
101 x11-libs/libXtst"
102 DEPEND="${RDEPEND}
103 dev-lang/perl
104 >=dev-util/gperf-3.0.3
105 >=dev-util/pkgconfig-0.23
106 sys-devel/flex
107 >=sys-devel/make-3.81-r2
108 x11-libs/libXinerama
109 test? ( dev-python/simplejson virtual/krb5 )"
110 RDEPEND+="
111 kerberos? ( virtual/krb5 )
112 xinerama? ( x11-libs/libXinerama )
113 x11-misc/xdg-utils
114 virtual/ttf-fonts"
115
116 gyp_use() {
117 if [[ $# -lt 2 ]]; then
118 echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2
119 return 1
120 fi
121 if use "$1"; then echo "-D$2=1"; else echo "-D$2=0"; fi
122 }
123
124 egyp() {
125 set -- build/gyp_chromium --depth=. "${@}"
126 echo "${@}" >&2
127 "${@}"
128 }
129
130 pkg_setup() {
131 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
132
133 # Make sure the build system will use the right tools, bug #340795.
134 tc-export AR CC CXX RANLIB
135
136 # Make sure the build system will use the right python, bug #344367.
137 python_set_active_version 2
138 python_pkg_setup
139
140 # Prevent user problems like bug #299777.
141 if ! grep -q /dev/shm <<< $(get_mounts); then
142 ewarn "You don't have tmpfs mounted at /dev/shm."
143 ewarn "${PN} may fail to start in that configuration."
144 ewarn "Please uncomment the /dev/shm entry in /etc/fstab,"
145 ewarn "and run 'mount /dev/shm'."
146 fi
147 if [ `stat -c %a /dev/shm` -ne 1777 ]; then
148 ewarn "/dev/shm does not have correct permissions."
149 ewarn "${PN} may fail to start in that configuration."
150 ewarn "Please run 'chmod 1777 /dev/shm'."
151 fi
152
153 # Prevent user problems like bug #348235.
154 eshopts_push -s extglob
155 if is-flagq '-g?(gdb)?([1-9])'; then
156 ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)."
157 ewarn "You may experience really long compilation times and/or increased memory usage."
158 ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug."
159 fi
160 eshopts_pop
161
162 # Warn if the kernel doesn't support features useful for sandboxing,
163 # bug #363907.
164 CONFIG_CHECK="~PID_NS ~NET_NS"
165 PID_NS_WARNING="PID (process id) namespaces are needed for sandboxing."
166 NET_NS_WARNING="Network namespaces are needed for sandboxing."
167 check_extra_config
168 }
169
170 src_prepare() {
171 # Make sure we don't use bundled libvpx headers.
172 epatch "${FILESDIR}/${PN}-system-vpx-r4.patch"
173
174 # Fix compilation with system zlib, bug #364205. To be upstreamed.
175 epatch "${FILESDIR}/${PN}-system-zlib-r0.patch"
176
177 # Fix compilation without CUPS, bug #364525. To be upstreamed.
178 epatch "${FILESDIR}/${PN}-cups-r0.patch"
179
180 # Remove most bundled libraries. Some are still needed.
181 find third_party -type f \! -iname '*.gyp*' \
182 \! -path 'third_party/WebKit/*' \
183 \! -path 'third_party/angle/*' \
184 \! -path 'third_party/cacheinvalidation/*' \
185 \! -path 'third_party/cld/*' \
186 \! -path 'third_party/expat/*' \
187 \! -path 'third_party/ffmpeg/*' \
188 \! -path 'third_party/flac/flac.h' \
189 \! -path 'third_party/gpsd/*' \
190 \! -path 'third_party/harfbuzz/*' \
191 \! -path 'third_party/hunspell/*' \
192 \! -path 'third_party/iccjpeg/*' \
193 \! -path 'third_party/launchpad_translations/*' \
194 \! -path 'third_party/leveldb/*' \
195 \! -path 'third_party/libjingle/*' \
196 \! -path 'third_party/libsrtp/*' \
197 \! -path 'third_party/libvpx/libvpx.h' \
198 \! -path 'third_party/mesa/*' \
199 \! -path 'third_party/modp_b64/*' \
200 \! -path 'third_party/npapi/*' \
201 \! -path 'third_party/openmax/*' \
202 \! -path 'third_party/ots/*' \
203 \! -path 'third_party/protobuf/*' \
204 \! -path 'third_party/pyftpdlib/*' \
205 \! -path 'third_party/skia/*' \
206 \! -path 'third_party/speex/speex.h' \
207 \! -path 'third_party/sqlite/*' \
208 \! -path 'third_party/tcmalloc/*' \
209 \! -path 'third_party/tlslite/*' \
210 \! -path 'third_party/undoview/*' \
211 \! -path 'third_party/zlib/contrib/minizip/*' \
212 -delete || die
213
214 # Make sure the build system will use the right python, bug #344367.
215 # Only convert directories that need it, to save time.
216 python_convert_shebangs -q -r 2 build tools
217 }
218
219 src_configure() {
220 local myconf=""
221
222 # Never tell the build system to "enable" SSE2, it has a few unexpected
223 # additions, bug #336871.
224 myconf+=" -Ddisable_sse2=1"
225
226 # Use system-provided libraries.
227 # TODO: use_system_hunspell (upstream changes needed).
228 # TODO: use_system_ssl (http://crbug.com/58087).
229 # TODO: use_system_sqlite (http://crbug.com/22208).
230 myconf+="
231 -Duse_system_bzip2=1
232 -Duse_system_flac=1
233 -Duse_system_ffmpeg=1
234 -Duse_system_icu=1
235 -Duse_system_libevent=1
236 -Duse_system_libjpeg=1
237 -Duse_system_libpng=1
238 -Duse_system_libwebp=1
239 -Duse_system_libxml=1
240 -Duse_system_speex=1
241 -Duse_system_vpx=1
242 -Duse_system_xdg_utils=1
243 -Duse_system_zlib=1"
244
245 # Optional dependencies.
246 myconf+="
247 $(gyp_use cups use_cups)
248 $(gyp_use gnome use_gconf)
249 $(gyp_use gnome-keyring use_gnome_keyring)
250 $(gyp_use gnome-keyring linux_link_gnome_keyring)"
251
252 # Enable sandbox.
253 myconf+="
254 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
255 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
256
257 if host-is-pax; then
258 # Prevent the build from failing (bug #301880). The performance
259 # difference is very small.
260 myconf+=" -Dv8_use_snapshot=0"
261 fi
262
263 # Our system ffmpeg should support more codecs than the bundled one
264 # for Chromium.
265 myconf+=" -Dproprietary_codecs=1"
266
267 # Use target arch detection logic from bug #354601.
268 case ${CHOST} in
269 i?86-*) myarch=x86 ;;
270 x86_64-*)
271 if [[ $ABI = "" ]] ; then
272 myarch=amd64
273 else
274 myarch="$ABI"
275 fi ;;
276 arm*-*) myarch=arm ;;
277 *) die "Unrecognized CHOST: ${CHOST}"
278 esac
279
280 if [[ $myarch = amd64 ]] ; then
281 myconf+=" -Dtarget_arch=x64"
282 elif [[ $myarch = x86 ]] ; then
283 myconf+=" -Dtarget_arch=ia32"
284 elif [[ $myarch = arm ]] ; then
285 # TODO: check this again after
286 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
287 append-flags -fno-tree-sink
288
289 myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
290 else
291 die "Failed to determine target arch, got '$myarch'."
292 fi
293
294 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
295 # Depending on GCC version the warnings are different and we don't want
296 # the build to fail because of that.
297 myconf+=" -Dwerror="
298
299 # Avoid a build error with -Os, bug #352457.
300 replace-flags "-Os" "-O2"
301
302 egyp ${myconf} || die
303 }
304
305 src_compile() {
306 emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die
307 pax-mark m out/Release/chrome
308 if use test; then
309 emake {base,crypto,googleurl,net}_unittests BUILDTYPE=Release V=1 || die
310 pax-mark m out/Release/{base,crypto,googleurl,net}_unittests
311 fi
312 }
313
314 src_test() {
315 # For more info see bug #350349.
316 local mylocale='en_US.utf8'
317 if ! locale -a | grep -q "$mylocale"; then
318 eerror "${PN} requires ${mylocale} locale for tests"
319 eerror "Please read the following guides for more information:"
320 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
321 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
322 die "locale ${mylocale} is not supported"
323 fi
324
325 # For more info see bug #350347.
326 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \
327 '--gtest_filter=-ICUStringConversionsTest.*'
328
329 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/crypto_unittests virtualmake
330 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/googleurl_unittests virtualmake
331
332 # NetUtilTest: bug #361885.
333 # UDP: unstable, active development. We should revisit this later.
334 LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/net_unittests virtualmake \
335 '--gtest_filter=-NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:*UDP*'
336 }
337
338 src_install() {
339 exeinto "${CHROMIUM_HOME}"
340 doexe out/Release/chrome
341 doexe out/Release/chrome_sandbox || die
342 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
343 newexe "${FILESDIR}"/chromium-launcher-r1.sh chromium-launcher.sh || die
344
345 # It is important that we name the target "chromium-browser",
346 # xdg-utils expect it; bug #355517.
347 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser || die
348 # keep the old symlink around for consistency
349 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die
350
351 insinto "${CHROMIUM_HOME}"
352 doins out/Release/chrome.pak || die
353 doins out/Release/resources.pak || die
354
355 doins -r out/Release/locales || die
356 doins -r out/Release/resources || die
357
358 newman out/Release/chrome.1 chromium.1 || die
359 newman out/Release/chrome.1 chromium-browser.1 || die
360
361 # Chromium looks for these in its folder
362 # See media_posix.cc and base_paths_linux.cc
363 dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die
364 dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die
365 dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die
366
367 # Install icons and desktop entry.
368 for SIZE in 16 22 24 32 48 64 128 256 ; do
369 insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps
370 newins chrome/app/theme/chromium/product_logo_${SIZE}.png \
371 chromium-browser.png || die
372 done
373 local mime_types="text/html;text/xml;application/xhtml+xml;"
374 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
375 make_desktop_entry chromium-browser "Chromium" chromium-browser \
376 "Network;WebBrowser" "MimeType=${mime_types}"
377 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die
378
379 # Install GNOME default application entry (bug #303100).
380 if use gnome; then
381 dodir /usr/share/gnome-control-center/default-apps || die
382 insinto /usr/share/gnome-control-center/default-apps
383 doins "${FILESDIR}"/chromium-browser.xml || die
384 fi
385 }
386
387 pkg_preinst() {
388 gnome2_icon_savelist
389 }
390
391 pkg_postinst() {
392 fdo-mime_desktop_database_update
393 gnome2_icon_cache_update
394
395 # For more info see bug #292201, bug #352263, bug #361859.
396 elog
397 elog "Depending on your desktop environment, you may need"
398 elog "to install additional packages to get icons on the Downloads page."
399 elog
400 elog "For KDE, the required package is kde-base/oxygen-icons."
401 elog
402 elog "For other desktop environments, try one of the following:"
403 elog " - x11-themes/gnome-icon-theme"
404 elog " - x11-themes/tango-icon-theme"
405
406 # For more info see bug #359153.
407 elog
408 elog "Some web pages may require additional fonts to display properly."
409 elog "Try installing some of the following packages if some characters"
410 elog "are not displayed properly:"
411 elog " - media-fonts/arphicfonts"
412 elog " - media-fonts/bitstream-cyberbit"
413 elog " - media-fonts/droid"
414 elog " - media-fonts/ipamonafont"
415 elog " - media-fonts/ja-ipafonts"
416 elog " - media-fonts/takao-fonts"
417 elog " - media-fonts/wqy-microhei"
418 elog " - media-fonts/wqy-zenhei"
419 }
420
421 pkg_postrm() {
422 gnome2_icon_cache_update
423 }