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: chromium-10.0.648.6.ebuild ChangeLog chromium-10.0.634.0-r1.ebuild chromium-10.0.642.2.ebuild
Date: Thu, 27 Jan 2011 10:46:35
Message-Id: 20110127104625.D9C7920054@flycatcher.gentoo.org
1 phajdan.jr 11/01/27 10:46:25
2
3 Modified: ChangeLog
4 Added: chromium-10.0.648.6.ebuild
5 Removed: chromium-10.0.634.0-r1.ebuild
6 chromium-10.0.642.2.ebuild
7 Log:
8 Version bump for dev channel release. Remove old.
9
10 (Portage version: 2.1.9.25/cvs/Linux i686)
11
12 Revision Changes Path
13 1.268 www-client/chromium/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.268&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.268&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.267&r2=1.268
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
22 retrieving revision 1.267
23 retrieving revision 1.268
24 diff -u -r1.267 -r1.268
25 --- ChangeLog 26 Jan 2011 10:56:06 -0000 1.267
26 +++ ChangeLog 27 Jan 2011 10:46:25 -0000 1.268
27 @@ -1,6 +1,13 @@
28 # ChangeLog for www-client/chromium
29 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.267 2011/01/26 10:56:06 phajdan.jr Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.268 2011/01/27 10:46:25 phajdan.jr Exp $
32 +
33 +*chromium-10.0.648.6 (27 Jan 2011)
34 +
35 + 27 Jan 2011; Pawel Hajdan jr <phajdan.jr@g.o>
36 + -chromium-10.0.634.0-r1.ebuild, -chromium-10.0.642.2.ebuild,
37 + +chromium-10.0.648.6.ebuild, +files/chromium-webkit-version.patch:
38 + Version bump for dev channel release. Remove old.
39
40 *chromium-9.0.597.83 (26 Jan 2011)
41
42
43
44
45 1.1 www-client/chromium/chromium-10.0.648.6.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-10.0.648.6.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-10.0.648.6.ebuild?rev=1.1&content-type=text/plain
49
50 Index: chromium-10.0.648.6.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-10.0.648.6.ebuild,v 1.1 2011/01/27 10:46:25 phajdan.jr Exp $
55
56 EAPI="3"
57 PYTHON_DEPEND="2:2.6"
58 V8_DEPEND="3.0.9"
59
60 inherit eutils flag-o-matic multilib pax-utils portability python \
61 toolchain-funcs versionator virtualx
62
63 DESCRIPTION="Open-source version of Google Chrome web browser"
64 HOMEPAGE="http://chromium.org/"
65 SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="cups +gecko-mediaplayer gnome gnome-keyring system-sqlite"
71
72 RDEPEND="app-arch/bzip2
73 system-sqlite? (
74 >=dev-db/sqlite-3.7.2[fts3,icu,secure-delete,threadsafe]
75 )
76 >=dev-lang/v8-${V8_DEPEND}
77 dev-libs/dbus-glib
78 >=dev-libs/icu-4.4.1
79 >=dev-libs/libevent-1.4.13
80 dev-libs/libxml2
81 dev-libs/libxslt
82 >=dev-libs/nss-3.12.3
83 gnome? ( >=gnome-base/gconf-2.24.0 )
84 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
85 >=media-libs/alsa-lib-1.0.19
86 media-libs/flac
87 virtual/jpeg
88 media-libs/libpng
89 media-libs/libvpx
90 media-libs/speex
91 >=media-video/ffmpeg-0.6_p25767[threads]
92 cups? ( >=net-print/cups-1.3.11 )
93 sys-libs/zlib
94 >=x11-libs/gtk+-2.14.7
95 x11-libs/libXScrnSaver
96 x11-libs/libXtst"
97 DEPEND="${RDEPEND}
98 dev-lang/perl
99 >=dev-util/chromium-tools-0.1.4
100 >=dev-util/gperf-3.0.3
101 >=dev-util/pkgconfig-0.23
102 sys-devel/flex
103 >=sys-devel/make-3.81-r2"
104 RDEPEND+="
105 || (
106 x11-themes/gnome-icon-theme
107 x11-themes/oxygen-molecule
108 x11-themes/tango-icon-theme
109 x11-themes/xfce4-icon-theme
110 )
111 x11-misc/xdg-utils
112 virtual/ttf-fonts
113 gecko-mediaplayer? ( !www-plugins/gecko-mediaplayer[gnome] )"
114
115 egyp() {
116 set -- build/gyp_chromium --depth=. "${@}"
117 echo "${@}" >&2
118 "${@}"
119 }
120
121 pkg_setup() {
122 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
123
124 # Make sure the build system will use the right tools, bug #340795.
125 tc-export AR CC CXX RANLIB
126
127 # Make sure the build system will use the right python, bug #344367.
128 python_set_active_version 2
129 python_pkg_setup
130
131 # Prevent user problems like bug #299777.
132 if ! grep -q /dev/shm <<< $(get_mounts); then
133 ewarn "You don't have tmpfs mounted at /dev/shm."
134 ewarn "${PN} may fail to start in that configuration."
135 ewarn "Please uncomment the /dev/shm entry in /etc/fstab,"
136 ewarn "and run 'mount /dev/shm'."
137 fi
138 if [ `stat -c %a /dev/shm` -ne 1777 ]; then
139 ewarn "/dev/shm does not have correct permissions."
140 ewarn "${PN} may fail to start in that configuration."
141 ewarn "Please run 'chmod 1777 /dev/shm'."
142 fi
143
144 # Prevent user problems like bug #348235.
145 eshopts_push -s extglob
146 if is-flagq '-g?(gdb)?([1-9])'; then
147 ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)."
148 ewarn "You may experience really long compilation times and/or increased memory usage."
149 ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug."
150 fi
151 eshopts_pop
152 }
153
154 src_prepare() {
155 # Enable optional support for gecko-mediaplayer.
156 epatch "${FILESDIR}"/${PN}-gecko-mediaplayer-r1.patch
157
158 # Make sure we don't use bundled libvpx headers.
159 epatch "${FILESDIR}"/${PN}-system-vpx-r2.patch
160
161 # Make sure we don't use bundled FLAC.
162 epatch "${FILESDIR}"/${PN}-system-flac-r0.patch
163
164 # Fix build, http://crbug.com/70606.
165 epatch "${FILESDIR}"/${PN}-webkit-version.patch
166
167 # Remove most bundled libraries. Some are still needed.
168 find third_party -type f \! -iname '*.gyp*' \
169 \! -path 'third_party/WebKit/*' \
170 \! -path 'third_party/angle/*' \
171 \! -path 'third_party/cacheinvalidation/*' \
172 \! -path 'third_party/cld/*' \
173 \! -path 'third_party/expat/*' \
174 \! -path 'third_party/ffmpeg/*' \
175 \! -path 'third_party/flac/flac.h' \
176 \! -path 'third_party/gpsd/*' \
177 \! -path 'third_party/harfbuzz/*' \
178 \! -path 'third_party/hunspell/*' \
179 \! -path 'third_party/iccjpeg/*' \
180 \! -path 'third_party/libjingle/*' \
181 \! -path 'third_party/libsrtp/*' \
182 \! -path 'third_party/libwebp/*' \
183 \! -path 'third_party/mesa/*' \
184 \! -path 'third_party/modp_b64/*' \
185 \! -path 'third_party/npapi/*' \
186 \! -path 'third_party/openmax/*' \
187 \! -path 'third_party/ots/*' \
188 \! -path 'third_party/protobuf/*' \
189 \! -path 'third_party/skia/*' \
190 \! -path 'third_party/speex/speex.h' \
191 \! -path 'third_party/sqlite/*' \
192 \! -path 'third_party/tcmalloc/*' \
193 \! -path 'third_party/undoview/*' \
194 \! -path 'third_party/zlib/contrib/minizip/*' \
195 -delete || die
196
197 # Provide our own gyp file to use system flac.
198 # TODO: move this upstream.
199 cp "${FILESDIR}/flac.gyp" "third_party/flac" || die
200
201 # Check for the maintainer to ensure that the dependencies
202 # are up-to-date.
203 local v8_bundled="$(v8-extract-version v8/src/version.cc)"
204 if [ "${V8_DEPEND}" != "${v8_bundled}" ]; then
205 die "update v8 dependency to ${v8_bundled}"
206 fi
207
208 # Remove bundled v8.
209 find v8 -type f \! -iname '*.gyp*' -delete || die
210
211 # The implementation files include v8 headers with full path,
212 # like #include "v8/include/v8.h". Make sure the system headers
213 # will be used.
214 # TODO: find a solution that can be upstreamed.
215 rmdir v8/include || die
216 ln -s /usr/include v8/include || die
217
218 if use system-sqlite; then
219 # Remove bundled sqlite, preserving the shim header.
220 find third_party/sqlite -type f \! -iname '*.gyp*' \
221 \! -path 'third_party/sqlite/sqlite3.h' \
222 -delete || die
223 fi
224
225 # Make sure the build system will use the right python, bug #344367.
226 # Only convert directories that need it, to save time.
227 python_convert_shebangs -q -r 2 build tools
228 }
229
230 src_configure() {
231 local myconf=""
232
233 # Never tell the build system to "enable" SSE2, it has a few unexpected
234 # additions, bug #336871.
235 myconf+=" -Ddisable_sse2=1"
236
237 # Use system-provided libraries.
238 # TODO: use_system_hunspell (upstream changes needed).
239 # TODO: use_system_ssl (need to consult upstream).
240 myconf+="
241 -Duse_system_bzip2=1
242 -Duse_system_ffmpeg=1
243 -Duse_system_icu=1
244 -Duse_system_libevent=1
245 -Duse_system_libjpeg=1
246 -Duse_system_libpng=1
247 -Duse_system_libxml=1
248 -Duse_system_speex=1
249 -Duse_system_v8=1
250 -Duse_system_vpx=1
251 -Duse_system_xdg_utils=1
252 -Duse_system_zlib=1"
253
254 if use system-sqlite; then
255 myconf+=" -Duse_system_sqlite=1"
256 fi
257
258 # The dependency on cups is optional, see bug #324105.
259 if use cups; then
260 myconf+=" -Duse_cups=1"
261 else
262 myconf+=" -Duse_cups=0"
263 fi
264
265 # Make GConf dependency optional, http://crbug.com/13322.
266 if use gnome; then
267 myconf+=" -Duse_gconf=1"
268 else
269 myconf+=" -Duse_gconf=0"
270 fi
271
272 if use "gnome-keyring"; then
273 myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1"
274 else
275 # TODO: we should also disable code trying to dlopen
276 # gnome-keyring in that case.
277 myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0"
278 fi
279
280 # Enable sandbox.
281 myconf+="
282 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
283 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
284
285 if use gecko-mediaplayer; then
286 # Disable hardcoded blacklist for gecko-mediaplayer.
287 # When www-plugins/gecko-mediaplayer is compiled with USE=gnome, it causes
288 # the browser to hang. We can handle the situation via dependencies,
289 # thus making it possible to use gecko-mediaplayer.
290 append-flags -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER
291 fi
292
293 # Our system ffmpeg should support more codecs than the bundled one
294 # for Chromium.
295 myconf+=" -Dproprietary_codecs=1"
296
297 # Use target arch detection logic from bug #296917.
298 local myarch="$ABI"
299 [[ $myarch = "" ]] && myarch="$ARCH"
300
301 if [[ $myarch = amd64 ]] ; then
302 myconf+=" -Dtarget_arch=x64"
303 elif [[ $myarch = x86 ]] ; then
304 myconf+=" -Dtarget_arch=ia32"
305 elif [[ $myarch = arm ]] ; then
306 # TODO: check this again after
307 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
308 append-flags -fno-tree-sink
309
310 myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
311 else
312 die "Failed to determine target arch, got '$myarch'."
313 fi
314
315 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
316 # Depending on GCC version the warnings are different and we don't want
317 # the build to fail because of that.
318 myconf+=" -Dwerror="
319
320 egyp ${myconf} || die
321 }
322
323 src_compile() {
324 emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die
325 pax-mark m out/Release/chrome
326 if use test; then
327 emake base_unittests BUILDTYPE=Release V=1 || die
328 pax-mark m out/Release/base_unittests
329 fi
330 }
331
332 src_test() {
333 # For more info see bug #350349.
334 local mylocale='en_US.utf8'
335 if ! locale -a | grep -q "$mylocale"; then
336 eerror "${PN} requires ${mylocale} locale for tests"
337 eerror "Please read the following guides for more information:"
338 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
339 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
340 die "locale ${mylocale} is not supported"
341 fi
342
343 # For more info see bug #350347.
344 LC_ALL="${mylocale}" maketype=out/Release/base_unittests virtualmake \
345 '--gtest_filter=-ICUStringConversionsTest.*' || die
346 }
347
348 src_install() {
349 exeinto "${CHROMIUM_HOME}"
350 doexe out/Release/chrome
351 doexe out/Release/chrome_sandbox || die
352 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
353 doexe "${FILESDIR}"/chromium-launcher.sh || die
354
355 insinto "${CHROMIUM_HOME}"
356 doins out/Release/chrome.pak || die
357 doins out/Release/resources.pak || die
358
359 doins -r out/Release/locales || die
360 doins -r out/Release/resources || die
361
362 # chrome.1 is for chromium --help
363 newman out/Release/chrome.1 chrome.1 || die
364 newman out/Release/chrome.1 chromium.1 || die
365
366 # Chromium looks for these in its folder
367 # See media_posix.cc and base_paths_linux.cc
368 dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die
369 dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die
370 dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die
371
372 # Install icon and desktop entry.
373 newicon chrome/app/theme/chromium/product_logo_48.png ${PN}-browser.png || die
374 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die
375 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \
376 "MimeType=text/html;text/xml;application/xhtml+xml;"
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.xml || die
384 fi
385 }