1 |
phajdan.jr 10/10/01 08:34:59 |
2 |
|
3 |
Modified: metadata.xml ChangeLog chromium-9999.ebuild |
4 |
Added: chromium-7.0.536.2.ebuild |
5 |
Removed: chromium-7.0.517.13.ebuild |
6 |
chromium-6.0.472.59.ebuild |
7 |
chromium-6.0.472.63-r1.ebuild |
8 |
chromium-6.0.472.62-r1.ebuild |
9 |
Log: |
10 |
Version bump for dev channel release. Add an option to build with system-provided sqlite library. Re-enable tcmalloc support. Minor ebuild cleanups. Remove old versions. |
11 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
12 |
|
13 |
Revision Changes Path |
14 |
1.9 www-client/chromium/metadata.xml |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/metadata.xml?rev=1.9&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/metadata.xml?rev=1.9&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/metadata.xml?r1=1.8&r2=1.9 |
19 |
|
20 |
Index: metadata.xml |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/metadata.xml,v |
23 |
retrieving revision 1.8 |
24 |
retrieving revision 1.9 |
25 |
diff -u -r1.8 -r1.9 |
26 |
--- metadata.xml 20 Sep 2010 16:21:23 -0000 1.8 |
27 |
+++ metadata.xml 1 Oct 2010 08:34:59 -0000 1.9 |
28 |
@@ -3,4 +3,8 @@ |
29 |
<pkgmetadata> |
30 |
<herd>chromium</herd> |
31 |
<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription> |
32 |
+ <use> |
33 |
+ <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg> |
34 |
+ installation with secure-delete enabled</flag> |
35 |
+ </use> |
36 |
</pkgmetadata> |
37 |
|
38 |
|
39 |
|
40 |
1.192 www-client/chromium/ChangeLog |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.192&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.192&content-type=text/plain |
44 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.191&r2=1.192 |
45 |
|
46 |
Index: ChangeLog |
47 |
=================================================================== |
48 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
49 |
retrieving revision 1.191 |
50 |
retrieving revision 1.192 |
51 |
diff -u -r1.191 -r1.192 |
52 |
--- ChangeLog 29 Sep 2010 09:54:08 -0000 1.191 |
53 |
+++ ChangeLog 1 Oct 2010 08:34:59 -0000 1.192 |
54 |
@@ -1,6 +1,17 @@ |
55 |
# ChangeLog for www-client/chromium |
56 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
57 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.191 2010/09/29 09:54:08 phajdan.jr Exp $ |
58 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.192 2010/10/01 08:34:59 phajdan.jr Exp $ |
59 |
+ |
60 |
+*chromium-7.0.536.2 (01 Oct 2010) |
61 |
+ |
62 |
+ 01 Oct 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
63 |
+ +files/chromium-system-sqlite-r0.patch, -chromium-6.0.472.59.ebuild, |
64 |
+ -chromium-6.0.472.62-r1.ebuild, -chromium-6.0.472.63-r1.ebuild, |
65 |
+ -chromium-7.0.517.13.ebuild, +chromium-7.0.536.2.ebuild, |
66 |
+ chromium-9999.ebuild, metadata.xml: |
67 |
+ Version bump for dev channel release. Add an option to build with |
68 |
+ system-provided sqlite library. Re-enable tcmalloc support. Minor ebuild |
69 |
+ cleanups. Remove old versions. |
70 |
|
71 |
*chromium-7.0.517.24 (29 Sep 2010) |
72 |
|
73 |
|
74 |
|
75 |
|
76 |
1.87 www-client/chromium/chromium-9999.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.87&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.87&content-type=text/plain |
80 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.86&r2=1.87 |
81 |
|
82 |
Index: chromium-9999.ebuild |
83 |
=================================================================== |
84 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v |
85 |
retrieving revision 1.86 |
86 |
retrieving revision 1.87 |
87 |
diff -u -r1.86 -r1.87 |
88 |
--- chromium-9999.ebuild 23 Sep 2010 12:31:25 -0000 1.86 |
89 |
+++ chromium-9999.ebuild 1 Oct 2010 08:34:59 -0000 1.87 |
90 |
@@ -1,6 +1,6 @@ |
91 |
# Copyright 1999-2010 Gentoo Foundation |
92 |
# Distributed under the terms of the GNU General Public License v2 |
93 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.86 2010/09/23 12:31:25 phajdan.jr Exp $ |
94 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.87 2010/10/01 08:34:59 phajdan.jr Exp $ |
95 |
|
96 |
EAPI="2" |
97 |
|
98 |
@@ -15,9 +15,10 @@ |
99 |
LICENSE="BSD" |
100 |
SLOT="0" |
101 |
KEYWORDS="" |
102 |
-IUSE="cups gnome gnome-keyring" |
103 |
+IUSE="cups gnome gnome-keyring system-sqlite" |
104 |
|
105 |
RDEPEND="app-arch/bzip2 |
106 |
+ system-sqlite? ( >=dev-db/sqlite-3.6.23.1[fts3,secure-delete] ) |
107 |
>=dev-libs/icu-4.4.1 |
108 |
>=dev-libs/libevent-1.4.13 |
109 |
dev-libs/libxml2 |
110 |
@@ -109,6 +110,10 @@ |
111 |
# Add Gentoo plugin paths. |
112 |
epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch |
113 |
|
114 |
+ # Small fixes to the system-provided sqlite support, |
115 |
+ # to be upstreamed. |
116 |
+ epatch "${FILESDIR}"/${PN}-system-sqlite-r0.patch |
117 |
+ |
118 |
remove_bundled_lib "third_party/bzip2" |
119 |
remove_bundled_lib "third_party/codesighs" |
120 |
remove_bundled_lib "third_party/cros" |
121 |
@@ -128,6 +133,11 @@ |
122 |
remove_bundled_lib "third_party/tlslite" |
123 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
124 |
# remove it (minizip-related). |
125 |
+ |
126 |
+ if use system-sqlite; then |
127 |
+ remove_bundled_lib "third_party/sqlite/src" |
128 |
+ remove_bundled_lib "third_party/sqlite/preprocessed" |
129 |
+ fi |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
@@ -139,7 +149,6 @@ |
134 |
|
135 |
# Use system-provided libraries. |
136 |
# TODO: use_system_ffmpeg (http://crbug.com/50678). |
137 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
138 |
# TODO: use_system_hunspell (upstream changes needed). |
139 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
140 |
myconf+=" |
141 |
@@ -151,6 +160,10 @@ |
142 |
-Duse_system_libxml=1 |
143 |
-Duse_system_zlib=1" |
144 |
|
145 |
+ if use system-sqlite; then |
146 |
+ myconf+=" -Duse_system_sqlite=1" |
147 |
+ fi |
148 |
+ |
149 |
# The dependency on cups is optional, see bug #324105. |
150 |
if use cups; then |
151 |
myconf+=" -Duse_cups=1" |
152 |
@@ -175,10 +188,6 @@ |
153 |
# and the performance gain isn't worth it. |
154 |
myconf+=" -Dv8_use_snapshot=0" |
155 |
|
156 |
- # Disable tcmalloc memory allocator. It causes problems, |
157 |
- # for example bug #320419. |
158 |
- myconf+=" -Dlinux_use_tcmalloc=0" |
159 |
- |
160 |
# Use target arch detection logic from bug #296917. |
161 |
local myarch="$ABI" |
162 |
[[ $myarch = "" ]] && myarch="$ARCH" |
163 |
@@ -211,16 +220,11 @@ |
164 |
# the build to fail because of that. |
165 |
myconf+=" -Dwerror=" |
166 |
|
167 |
- build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die |
168 |
+ build/gyp_chromium --depth=. ${myconf} || die |
169 |
} |
170 |
|
171 |
src_compile() { |
172 |
- emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
173 |
- CC="$(tc-getCC)" \ |
174 |
- CXX="$(tc-getCXX)" \ |
175 |
- AR="$(tc-getAR)" \ |
176 |
- RANLIB="$(tc-getRANLIB)" \ |
177 |
- || die |
178 |
+ emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die |
179 |
} |
180 |
|
181 |
src_install() { |
182 |
|
183 |
|
184 |
|
185 |
1.1 www-client/chromium/chromium-7.0.536.2.ebuild |
186 |
|
187 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.536.2.ebuild?rev=1.1&view=markup |
188 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.536.2.ebuild?rev=1.1&content-type=text/plain |
189 |
|
190 |
Index: chromium-7.0.536.2.ebuild |
191 |
=================================================================== |
192 |
# Copyright 1999-2010 Gentoo Foundation |
193 |
# Distributed under the terms of the GNU General Public License v2 |
194 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-7.0.536.2.ebuild,v 1.1 2010/10/01 08:34:59 phajdan.jr Exp $ |
195 |
|
196 |
EAPI="2" |
197 |
|
198 |
inherit eutils flag-o-matic multilib pax-utils toolchain-funcs |
199 |
|
200 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
201 |
HOMEPAGE="http://chromium.org/" |
202 |
SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" |
203 |
|
204 |
LICENSE="BSD" |
205 |
SLOT="0" |
206 |
KEYWORDS="~amd64 ~arm ~x86" |
207 |
IUSE="cups gnome gnome-keyring system-sqlite" |
208 |
|
209 |
RDEPEND="app-arch/bzip2 |
210 |
system-sqlite? ( >=dev-db/sqlite-3.6.23.1[fts3,secure-delete] ) |
211 |
>=dev-libs/icu-4.4.1 |
212 |
>=dev-libs/libevent-1.4.13 |
213 |
dev-libs/libxml2 |
214 |
dev-libs/libxslt |
215 |
>=dev-libs/nss-3.12.3 |
216 |
>=gnome-base/gconf-2.24.0 |
217 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
218 |
>=media-libs/alsa-lib-1.0.19 |
219 |
media-libs/jpeg:0 |
220 |
media-libs/libpng |
221 |
cups? ( >=net-print/cups-1.4.4 ) |
222 |
sys-libs/zlib |
223 |
>=x11-libs/gtk+-2.14.7 |
224 |
x11-libs/libXScrnSaver" |
225 |
DEPEND="${RDEPEND} |
226 |
dev-lang/perl |
227 |
>=dev-util/gperf-3.0.3 |
228 |
>=dev-util/pkgconfig-0.23 |
229 |
sys-devel/flex" |
230 |
RDEPEND+=" |
231 |
|| ( |
232 |
x11-themes/gnome-icon-theme |
233 |
x11-themes/oxygen-molecule |
234 |
x11-themes/tango-icon-theme |
235 |
x11-themes/xfce4-icon-theme |
236 |
) |
237 |
x11-apps/xmessage |
238 |
x11-misc/xdg-utils |
239 |
virtual/ttf-fonts" |
240 |
|
241 |
remove_bundled_lib() { |
242 |
einfo "Removing bundled library $1 ..." |
243 |
local out |
244 |
out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \ |
245 |
|| die "failed to remove bundled library $1" |
246 |
if [[ -z $out ]]; then |
247 |
die "no files matched when removing bundled library $1" |
248 |
fi |
249 |
} |
250 |
|
251 |
pkg_setup() { |
252 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
253 |
} |
254 |
|
255 |
src_prepare() { |
256 |
# Add Gentoo plugin paths. |
257 |
epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch |
258 |
|
259 |
# Small fixes to the system-provided sqlite support, |
260 |
# to be upstreamed. |
261 |
epatch "${FILESDIR}"/${PN}-system-sqlite-r0.patch |
262 |
|
263 |
remove_bundled_lib "third_party/bzip2" |
264 |
remove_bundled_lib "third_party/codesighs" |
265 |
remove_bundled_lib "third_party/cros" |
266 |
remove_bundled_lib "third_party/icu" |
267 |
remove_bundled_lib "third_party/jemalloc" |
268 |
remove_bundled_lib "third_party/lcov" |
269 |
remove_bundled_lib "third_party/libevent" |
270 |
remove_bundled_lib "third_party/libjpeg" |
271 |
remove_bundled_lib "third_party/libpng" |
272 |
remove_bundled_lib "third_party/libxml" |
273 |
remove_bundled_lib "third_party/libxslt" |
274 |
remove_bundled_lib "third_party/lzma_sdk" |
275 |
remove_bundled_lib "third_party/molokocacao" |
276 |
remove_bundled_lib "third_party/ocmock" |
277 |
remove_bundled_lib "third_party/pyftpdlib" |
278 |
remove_bundled_lib "third_party/simplejson" |
279 |
remove_bundled_lib "third_party/tlslite" |
280 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
281 |
# remove it (minizip-related). |
282 |
|
283 |
if use system-sqlite; then |
284 |
remove_bundled_lib "third_party/sqlite/src" |
285 |
remove_bundled_lib "third_party/sqlite/preprocessed" |
286 |
fi |
287 |
} |
288 |
|
289 |
src_configure() { |
290 |
local myconf="" |
291 |
|
292 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
293 |
# additions, bug #336871. |
294 |
myconf+=" -Ddisable_sse2=1" |
295 |
|
296 |
# Use system-provided libraries. |
297 |
# TODO: use_system_ffmpeg (http://crbug.com/50678). |
298 |
# TODO: use_system_hunspell (upstream changes needed). |
299 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
300 |
myconf+=" |
301 |
-Duse_system_bzip2=1 |
302 |
-Duse_system_icu=1 |
303 |
-Duse_system_libevent=1 |
304 |
-Duse_system_libjpeg=1 |
305 |
-Duse_system_libpng=1 |
306 |
-Duse_system_libxml=1 |
307 |
-Duse_system_zlib=1" |
308 |
|
309 |
if use system-sqlite; then |
310 |
myconf+=" -Duse_system_sqlite=1" |
311 |
fi |
312 |
|
313 |
# The dependency on cups is optional, see bug #324105. |
314 |
if use cups; then |
315 |
myconf+=" -Duse_cups=1" |
316 |
else |
317 |
myconf+=" -Duse_cups=0" |
318 |
fi |
319 |
|
320 |
if use "gnome-keyring"; then |
321 |
myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1" |
322 |
else |
323 |
# TODO: we should also disable code trying to dlopen |
324 |
# gnome-keyring in that case. |
325 |
myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0" |
326 |
fi |
327 |
|
328 |
# Enable sandbox. |
329 |
myconf+=" |
330 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
331 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
332 |
|
333 |
# Disable the V8 snapshot. It breaks the build on hardened (bug #301880), |
334 |
# and the performance gain isn't worth it. |
335 |
myconf+=" -Dv8_use_snapshot=0" |
336 |
|
337 |
# Use target arch detection logic from bug #296917. |
338 |
local myarch="$ABI" |
339 |
[[ $myarch = "" ]] && myarch="$ARCH" |
340 |
|
341 |
if [[ $myarch = amd64 ]] ; then |
342 |
myconf+=" -Dtarget_arch=x64" |
343 |
elif [[ $myarch = x86 ]] ; then |
344 |
myconf+=" -Dtarget_arch=ia32" |
345 |
elif [[ $myarch = arm ]] ; then |
346 |
# TODO: check this again after |
347 |
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. |
348 |
append-flags -fno-tree-sink |
349 |
|
350 |
myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
351 |
else |
352 |
die "Failed to determine target arch, got '$myarch'." |
353 |
fi |
354 |
|
355 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
356 |
myconf+=" -Dno_strict_aliasing=1 -Dgcc_version=44" |
357 |
fi |
358 |
|
359 |
# Work around a likely GCC bug, see bug #331945. |
360 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then |
361 |
append-flags -fno-ipa-cp |
362 |
fi |
363 |
|
364 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
365 |
# Depending on GCC version the warnings are different and we don't want |
366 |
# the build to fail because of that. |
367 |
myconf+=" -Dwerror=" |
368 |
|
369 |
build/gyp_chromium --depth=. ${myconf} || die |
370 |
} |
371 |
|
372 |
src_compile() { |
373 |
emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die |
374 |
} |
375 |
|
376 |
src_install() { |
377 |
exeinto "${CHROMIUM_HOME}" |
378 |
pax-mark m out/Release/chrome |
379 |
doexe out/Release/chrome |
380 |
doexe out/Release/chrome_sandbox || die |
381 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
382 |
doexe out/Release/xdg-settings || die |
383 |
doexe "${FILESDIR}"/chromium-launcher.sh || die |
384 |
|
385 |
insinto "${CHROMIUM_HOME}" |
386 |
doins out/Release/chrome.pak || die |
387 |
doins out/Release/resources.pak || die |
388 |
|
389 |
doins -r out/Release/locales || die |
390 |
doins -r out/Release/resources || die |
391 |
|
392 |
# chrome.1 is for chromium --help |
393 |
newman out/Release/chrome.1 chrome.1 || die |
394 |
newman out/Release/chrome.1 chromium.1 || die |
395 |
|
396 |
doexe out/Release/ffmpegsumo_nolink || die |
397 |
doexe out/Release/libffmpegsumo.so || die |
398 |
|
399 |
# Install icon and desktop entry. |
400 |
newicon out/Release/product_logo_48.png ${PN}-browser.png || die |
401 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die |
402 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \ |
403 |
"MimeType=text/html;text/xml;application/xhtml+xml;" |
404 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
405 |
|
406 |
# Install GNOME default application entry (bug #303100). |
407 |
if use gnome; then |
408 |
dodir /usr/share/gnome-control-center/default-apps || die |
409 |
insinto /usr/share/gnome-control-center/default-apps |
410 |
doins "${FILESDIR}"/chromium.xml || die |
411 |
fi |
412 |
} |